public static class StatsUtil.StatEncoder
extends java.lang.Object
| Modifier and Type | Class and Description | 
|---|---|
protected static class  | 
StatsUtil.StatEncoder.KeyType  | 
| Modifier and Type | Field and Description | 
|---|---|
protected com.streambase.sb.monitor.KeyRegistry | 
keys  | 
| Constructor and Description | 
|---|
StatEncoder(StatsUtil.What what,
           com.streambase.sb.monitor.KeyRegistry keys)  | 
| Modifier and Type | Method and Description | 
|---|---|
Tuple | 
marshal(Tuple t,
       StatTuplev3 data)
Put data in StatBuffer into the tuple; after marshaling the stat buffer is recycled. 
 | 
StatTuplev3 | 
newStatTuple()
Get a tuple from cache. 
 | 
StatTuplev3 | 
newStatTuple(int cycle,
            long time)  | 
void | 
recycle(StatTuplev3 data)  | 
StatTuplev3 | 
unmarshal(Tuple t)
Retrieve data from tuple and returns a StatBuffer 
 | 
public StatEncoder(StatsUtil.What what, com.streambase.sb.monitor.KeyRegistry keys)
public Tuple marshal(Tuple t, StatTuplev3 data)
t - is the destdata - is the srcpublic StatTuplev3 unmarshal(Tuple t) throws NullValueException, TupleException
t - TupleExceptionNullValueExceptionpublic StatTuplev3 newStatTuple(int cycle, long time)
public StatTuplev3 newStatTuple()
public void recycle(StatTuplev3 data)