@InterfaceAudience.Private public class FrameworkCounterGroup.FrameworkCounter extends AbstractCounter
| Constructor and Description |
|---|
FrameworkCounterGroup.FrameworkCounter(T ref) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDisplayName()
Get the display name of the counter.
|
String |
getName() |
Counter |
getUnderlyingCounter()
Return the underlying object if this is a facade.
|
long |
getValue()
What is the current value of this counter?
|
void |
increment(long incr)
Increment this counter by the given value
|
void |
readFields(DataInput in) |
void |
setValue(long value)
Set this counter by the given value
|
void |
write(DataOutput out) |
equals, hashCode, setDisplayNamepublic FrameworkCounterGroup.FrameworkCounter(T ref)
public String getName()
public String getDisplayName()
Counterpublic long getValue()
Counterpublic void setValue(long value)
Countervalue - the value to setpublic void increment(long incr)
Counterincr - the value to increase this counter bypublic void write(DataOutput out) throws IOException
IOExceptionpublic void readFields(DataInput in) throws IOException
IOExceptionCopyright © 2009 The Apache Software Foundation