@InterfaceAudience.Private public class FileSystemCounterGroup.FSCounter extends AbstractCounter
Constructor and Description |
---|
FileSystemCounterGroup.FSCounter(java.lang.String scheme,
FileSystemCounter ref) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDisplayName()
Get the display name of the counter.
|
java.lang.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
|
protected java.lang.String |
localizeCounterName(java.lang.String counterName) |
void |
readFields(java.io.DataInput in) |
void |
setValue(long value)
Set this counter by the given value
|
void |
write(java.io.DataOutput out) |
equals, hashCode, setDisplayName
public FileSystemCounterGroup.FSCounter(java.lang.String scheme, FileSystemCounter ref)
public java.lang.String getName()
public java.lang.String getDisplayName()
Counter
protected java.lang.String localizeCounterName(java.lang.String counterName)
public long getValue()
Counter
public void setValue(long value)
Counter
value
- the value to setpublic void increment(long incr)
Counter
incr
- the value to increase this counter bypublic void write(java.io.DataOutput out) throws java.io.IOException
java.io.IOException
public void readFields(java.io.DataInput in) throws java.io.IOException
java.io.IOException
Copyright © 2009 The Apache Software Foundation