Package com.streambase.sb.monitor
Enum Class StatsUtil.What
- All Implemented Interfaces:
Serializable,Comparable<StatsUtil.What>,Constable
- Enclosing class:
com.streambase.sb.monitor.StatsUtil
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic StatsUtil.WhatfromOrdinal(int ordinal) com.streambase.sb.monitor.KeyRegistrygetKeys()Marshal data into tuple, data would be recycledcom.streambase.sb.monitor.StatTuplev3newStatTuple(int cycle, long time) Create a new StatTuple with given cycle and timecom.streambase.sb.monitor.StatTuplev3newStatTuple(int cycle, long time, long id) Special form of StatTuple that has ID, should not be called if this What does not register an ID field.voidrecycle(com.streambase.sb.monitor.StatTuplev3 st) Recycle the stat tuplecom.streambase.sb.monitor.StatTuplev3Un-marshal a tuple to a StatTuplestatic StatsUtil.WhatReturns the enum constant of this class with the specified name.static StatsUtil.What[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BEGIN
-
END
-
SYSTEM
-
THREAD
-
OPERATOR
-
DECISION_TABLE
-
GC
-
STREAM
-
QUEUE
-
MODULE
-
CONTAINER
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getKeys
public com.streambase.sb.monitor.KeyRegistry getKeys() -
fromOrdinal
-
marshal
-
recycle
public void recycle(com.streambase.sb.monitor.StatTuplev3 st) Recycle the stat tuple- Parameters:
st-
-
unmarshal
public com.streambase.sb.monitor.StatTuplev3 unmarshal(Tuple t) throws NullValueException, TupleException Un-marshal a tuple to a StatTuple- Parameters:
t-- Returns:
- statistics data
- Throws:
TupleExceptionNullValueException
-
newStatTuple
public com.streambase.sb.monitor.StatTuplev3 newStatTuple(int cycle, long time) Create a new StatTuple with given cycle and time- Parameters:
cycle-time-- Returns:
- statistics data
-
newStatTuple
public com.streambase.sb.monitor.StatTuplev3 newStatTuple(int cycle, long time, long id) Special form of StatTuple that has ID, should not be called if this What does not register an ID field.- Parameters:
cycle-time-id-- Returns:
- statistics data
-