public static enum FwdJMX.TimeStat extends java.lang.Enum<FwdJMX.TimeStat> implements OptionalCounter
Enum Constant and Description |
---|
MessagePayloadS11n
Message.payload (de)serialization
|
objToByteArray
Protocol.objToByteArray
|
ServerStateS11n
ServerStat.widgetAttrs (de)serialization
|
Modifier and Type | Field and Description |
---|---|
private NanoCounter |
counter
Counter instance
|
Modifier and Type | Method and Description |
---|---|
NanoCounter |
getCounter()
Return counter instance
|
void |
register(BooleanConsumer agent)
Register enable/disable setter
|
java.lang.String |
toString(java.lang.String ts,
java.lang.String comment)
Return the string representation of the counter
|
void |
update(long value)
Update counter
|
static FwdJMX.TimeStat |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FwdJMX.TimeStat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
dump
public static final FwdJMX.TimeStat ServerStateS11n
public static final FwdJMX.TimeStat MessagePayloadS11n
public static final FwdJMX.TimeStat objToByteArray
private final NanoCounter counter
public static FwdJMX.TimeStat[] values()
for (FwdJMX.TimeStat c : FwdJMX.TimeStat.values()) System.out.println(c);
public static FwdJMX.TimeStat valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic void register(BooleanConsumer agent)
register
in interface AgentRegistry<BooleanConsumer>
agent
- enable/disable setterpublic void update(long value)
update
in interface LongCounter
value
- new valuepublic java.lang.String toString(java.lang.String ts, java.lang.String comment) throws java.io.IOException
toString
in interface LongCounter
ts
- The measurement time stampcomment
- The commentjava.io.IOException
- If IO exception occurspublic NanoCounter getCounter()