public static enum FwdJMX.MapCounter extends java.lang.Enum<FwdJMX.MapCounter> implements OptionalMapCounter
Enum Constant and Description |
---|
LegacyServiceWorkerTaskCounter
Task counter for each legacy service worker thread.
|
WidgetAttrEnqueues
Widget attribute enqueue count
|
Modifier and Type | Field and Description |
---|---|
private SimpleMapCounter |
counter
Counter instance
|
Modifier and Type | Method and Description |
---|---|
SimpleMapCounter |
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(java.lang.String valueName,
long value)
Update counter
|
static FwdJMX.MapCounter |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FwdJMX.MapCounter[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FwdJMX.MapCounter WidgetAttrEnqueues
public static final FwdJMX.MapCounter LegacyServiceWorkerTaskCounter
private final SimpleMapCounter counter
public static FwdJMX.MapCounter[] values()
for (FwdJMX.MapCounter c : FwdJMX.MapCounter.values()) System.out.println(c);
public static FwdJMX.MapCounter 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(java.lang.String valueName, long value)
update
in interface MapCounter
valueName
- value name to updatevalue
- new valuepublic java.lang.String toString(java.lang.String ts, java.lang.String comment) throws java.io.IOException
toString
in interface MapCounter
ts
- The measurement time stampcomment
- The commentjava.io.IOException
- If IO exception occurspublic SimpleMapCounter getCounter()