Package com.streambase.sb.monitor
Class StatsUtil.StatEncoder
java.lang.Object
com.streambase.sb.monitor.StatsUtil.StatEncoder
- Enclosing class:
- com.streambase.sb.monitor.StatsUtil
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionPut data in StatBuffer into the tuple; after marshaling, the stat buffer is recycled.com.streambase.sb.monitor.StatTuplev3
Get a tuple from cache.com.streambase.sb.monitor.StatTuplev3
newStatTuple
(int cycle, long time) void
recycle
(com.streambase.sb.monitor.StatTuplev3 data) com.streambase.sb.monitor.StatTuplev3
Retrieve data from tuple and returns a StatBuffer
-
Field Details
-
keys
-
-
Constructor Details
-
StatEncoder
-
-
Method Details
-
marshal
Put data in StatBuffer into the tuple; after marshaling, the stat buffer is recycled.- Parameters:
t
- is the destinationdata
- is the source- Returns:
- the destination tuple
-
unmarshal
public com.streambase.sb.monitor.StatTuplev3 unmarshal(Tuple t) throws NullValueException, TupleException Retrieve data from tuple and returns a StatBuffer- Parameters:
t
-- Returns:
- a statistics tuple
- Throws:
TupleException
NullValueException
-
newStatTuple
public com.streambase.sb.monitor.StatTuplev3 newStatTuple(int cycle, long time) -
newStatTuple
public com.streambase.sb.monitor.StatTuplev3 newStatTuple()Get a tuple from cache. It should be thread-safe- Returns:
- a statistics tuple
-
recycle
public void recycle(com.streambase.sb.monitor.StatTuplev3 data)
-