Enum Class StatsUtil.What

java.lang.Object
java.lang.Enum<StatsUtil.What>
com.streambase.sb.monitor.StatsUtil.What
All Implemented Interfaces:
Serializable, Comparable<StatsUtil.What>, Constable
Enclosing class:
com.streambase.sb.monitor.StatsUtil

public static enum StatsUtil.What extends Enum<StatsUtil.What>
  • Enum Constant Details

  • Method Details

    • values

      public static StatsUtil.What[] 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

      public static StatsUtil.What valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getKeys

      public KeyRegistry getKeys()
    • fromOrdinal

      public static StatsUtil.What fromOrdinal(int ordinal)
    • marshal

      public Tuple marshal(Tuple t, com.streambase.sb.monitor.StatTuplev3 data)
      Marshal data into tuple, data would be recycled
      Parameters:
      t -
      data -
      Returns:
      a statistics tuple
    • 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:
      TupleException
      NullValueException
    • 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