|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- type of the counter for the group@InterfaceAudience.Public @InterfaceStability.Evolving public interface CounterGroupBase<T extends Counter>
The common counter group interface.
Method Summary | |
---|---|
T |
addCounter(java.lang.String name,
java.lang.String displayName,
long value)
Add a counter to this group |
void |
addCounter(T counter)
Add a counter to this group. |
T |
findCounter(java.lang.String counterName)
Find a counter in the group. |
T |
findCounter(java.lang.String counterName,
boolean create)
Find a counter in the group |
T |
findCounter(java.lang.String counterName,
java.lang.String displayName)
Find a counter in the group. |
java.lang.String |
getDisplayName()
Get the display name of the group. |
java.lang.String |
getName()
Get the internal name of the group |
CounterGroupBase<T> |
getUnderlyingGroup()
Exposes the underlying group type if a facade. |
void |
incrAllCounters(CounterGroupBase<T> rightGroup)
Increment all counters by a group of counters |
void |
setDisplayName(java.lang.String displayName)
Set the display name of the group |
int |
size()
|
Methods inherited from interface org.apache.hadoop.io.Writable |
---|
readFields, write |
Methods inherited from interface java.lang.Iterable |
---|
iterator |
Method Detail |
---|
java.lang.String getName()
java.lang.String getDisplayName()
void setDisplayName(java.lang.String displayName)
displayName
- of the groupvoid addCounter(T counter)
counter
- to addT addCounter(java.lang.String name, java.lang.String displayName, long value)
name
- of the counterdisplayName
- of the countervalue
- of the counter
T findCounter(java.lang.String counterName, java.lang.String displayName)
counterName
- the name of the counterdisplayName
- the display name of the counter
T findCounter(java.lang.String counterName, boolean create)
counterName
- the name of the countercreate
- create the counter if not found if true
T findCounter(java.lang.String counterName)
counterName
- the name of the counter
int size()
void incrAllCounters(CounterGroupBase<T> rightGroup)
rightGroup
- the group to be added to this groupCounterGroupBase<T> getUnderlyingGroup()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |