@InterfaceAudience.Private public static class FileSystemCounterGroup.FSCounter extends AbstractCounter
Constructor and Description |
---|
FileSystemCounterGroup.FSCounter(String scheme,
FileSystemCounter ref) |
Modifier and Type | Method and Description |
---|---|
String |
getDisplayName()
Get the display name of the counter.
|
FileSystemCounter |
getFileSystemCounter() |
String |
getName() |
String |
getScheme() |
Counter |
getUnderlyingCounter() |
long |
getValue()
What is the current value of this counter?
|
void |
increment(long incr)
Increment this counter by the given value
|
protected String |
localizeCounterName(String counterName) |
void |
readFields(DataInput in) |
void |
setValue(long value)
Set this counter by the given value
|
void |
write(DataOutput out) |
equals, hashCode, setDisplayName
public FileSystemCounterGroup.FSCounter(String scheme, FileSystemCounter ref)
@InterfaceAudience.Private public String getScheme()
@InterfaceAudience.Private public FileSystemCounter getFileSystemCounter()
public String getName()
public String getDisplayName()
Counter
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(DataOutput out) throws IOException
IOException
public void readFields(DataInput in) throws IOException
IOException
public Counter getUnderlyingCounter()
Copyright © 2013 Apache Software Foundation. All Rights Reserved.