|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tez.common.counters.AbstractCounter
org.apache.tez.common.counters.GenericCounter
@InterfaceAudience.Private public class GenericCounter
A generic counter implementation
| Constructor Summary | |
|---|---|
GenericCounter()
|
|
GenericCounter(String name,
String displayName)
|
|
GenericCounter(String name,
String displayName,
long value)
|
|
| Method Summary | |
|---|---|
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 |
setDisplayName(String displayName)
Deprecated. |
void |
setValue(long value)
Set this counter by the given value |
void |
write(DataOutput out)
GenericCounter ::= keyName isDistinctDisplayName [displayName] value |
| Methods inherited from class org.apache.tez.common.counters.AbstractCounter |
|---|
equals, hashCode |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GenericCounter()
public GenericCounter(String name,
String displayName)
public GenericCounter(String name,
String displayName,
long value)
| Method Detail |
|---|
@Deprecated public void setDisplayName(String displayName)
TezCounter
setDisplayName in interface TezCountersetDisplayName in class AbstractCounterdisplayName - of the counter
public void readFields(DataInput in)
throws IOException
IOException
public void write(DataOutput out)
throws IOException
IOExceptionpublic 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 TezCounter getUnderlyingCounter()
TezCounter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||