@InterfaceAudience.Private public static class FrameworkCounterGroup.FrameworkCounter<T extends Enum<T>> extends AbstractCounter
Constructor and Description |
---|
FrameworkCounterGroup.FrameworkCounter(T ref,
String groupName) |
Modifier and Type | Method and Description |
---|---|
String |
getDisplayName()
Get the display name of the counter.
|
String |
getName() |
TezCounter |
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, setDisplayName
public String getName()
public String getDisplayName()
TezCounter
public long getValue()
TezCounter
public void setValue(long value)
TezCounter
value
- the value to setpublic void increment(long incr)
TezCounter
incr
- the value to increase this counter bypublic void write(DataOutput out) throws IOException
IOException
public void readFields(DataInput in) throws IOException
IOException
public TezCounter getUnderlyingCounter()
TezCounter
Copyright © 2016 Apache Software Foundation. All rights reserved.