public static enum FwdJMX.Counter extends java.lang.Enum<FwdJMX.Counter> implements OptionalCounter
Enum Constant and Description |
---|
NetworkReads
Incomning network traffic
|
NetworkWrites
Outgoing network traffic
|
WidgetAttrFlushes
Widget attributes flush count
|
Modifier and Type | Field and Description |
---|---|
private SimpleLongCounter |
counter
Counter instance
|
Modifier and Type | Method and Description |
---|---|
SimpleLongCounter |
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.Counter |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FwdJMX.Counter[] |
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.Counter NetworkReads
public static final FwdJMX.Counter NetworkWrites
public static final FwdJMX.Counter WidgetAttrFlushes
private final SimpleLongCounter counter
public static FwdJMX.Counter[] values()
for (FwdJMX.Counter c : FwdJMX.Counter.values()) System.out.println(c);
public static FwdJMX.Counter 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
- commentjava.io.IOException
- If IO exception occurspublic SimpleLongCounter getCounter()