Class StatsUtil.StatEncoder

java.lang.Object
com.streambase.sb.monitor.StatsUtil.StatEncoder
Enclosing class:
com.streambase.sb.monitor.StatsUtil

public static class StatsUtil.StatEncoder extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • marshal

      public Tuple marshal(Tuple t, com.streambase.sb.monitor.StatTuplev3 data)
      Put data in StatBuffer into the tuple; after marshaling, the stat buffer is recycled.
      Parameters:
      t - is the destination
      data - 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)