public static enum FwdServerJMX.Counter extends java.lang.Enum<FwdServerJMX.Counter> implements OptionalCounter
| Enum Constant and Description |
|---|
NetworkReads
Incomning network traffic
|
NetworkWrites
Outgoing network traffic
|
SpreadsheetCacheHitCount
Spreadsheet commands cache hits
|
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 FwdServerJMX.Counter |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FwdServerJMX.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, valueOfdumppublic static final FwdServerJMX.Counter NetworkReads
public static final FwdServerJMX.Counter NetworkWrites
public static final FwdServerJMX.Counter SpreadsheetCacheHitCount
public static final FwdServerJMX.Counter WidgetAttrFlushes
private final SimpleLongCounter counter
public static FwdServerJMX.Counter[] values()
for (FwdServerJMX.Counter c : FwdServerJMX.Counter.values()) System.out.println(c);
public static FwdServerJMX.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 LongCountervalue - new valuepublic java.lang.String toString(java.lang.String ts,
java.lang.String comment)
throws java.io.IOException
toString in interface LongCounterts - The measurement time stampcomment - commentjava.io.IOException - If IO exception occurspublic SimpleLongCounter getCounter()