T - type of the counter for the group@InterfaceAudience.Public
@InterfaceStability.Evolving
public interface CounterGroupBase<T extends Counter>
extends org.apache.hadoop.io.Writable, java.lang.Iterable<T>
| Modifier and Type | Method and Description |
|---|---|
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() |
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 counterT findCounter(java.lang.String counterName, java.lang.String displayName)
counterName - the name of the counterdisplayName - the display name of the counterT findCounter(java.lang.String counterName, boolean create)
counterName - the name of the countercreate - create the counter if not found if trueT findCounter(java.lang.String counterName)
counterName - the name of the counterint size()
void incrAllCounters(CounterGroupBase<T> rightGroup)
rightGroup - the group to be added to this groupCounterGroupBase<T> getUnderlyingGroup()
Copyright © 2009 The Apache Software Foundation