|
||||||||||
| 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(String name,
String displayName,
long value)
Add a counter to this group |
void |
addCounter(T counter)
Add a counter to this group. |
T |
findCounter(String counterName)
Find a counter in the group. |
T |
findCounter(String counterName,
boolean create)
Find a counter in the group |
T |
findCounter(String counterName,
String displayName)
Find a counter in the group. |
String |
getDisplayName()
Get the display name of the group. |
String |
getName()
Get the internal name of the group |
CounterGroupBase<T> |
getUnderlyingGroup()
|
void |
incrAllCounters(CounterGroupBase<T> rightGroup)
Increment all counters by a group of counters |
void |
setDisplayName(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 |
|---|
String getName()
String getDisplayName()
void setDisplayName(String displayName)
displayName - of the groupvoid addCounter(T counter)
counter - to add
T addCounter(String name,
String displayName,
long value)
name - of the counterdisplayName - of the countervalue - of the counter
T findCounter(String counterName,
String displayName)
counterName - the name of the counterdisplayName - the display name of the counter
T findCounter(String counterName,
boolean create)
counterName - the name of the countercreate - create the counter if not found if true
T findCounter(String counterName)
counterName - the name of the counter
int size()
void incrAllCounters(CounterGroupBase<T> rightGroup)
rightGroup - the group to be added to this group@InterfaceAudience.Private CounterGroupBase<T> getUnderlyingGroup()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||