Enum StatsUtil.What

    • Method Detail

      • values

        public static StatsUtil.What[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (StatsUtil.What c : StatsUtil.What.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static StatsUtil.What valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
        NullPointerException - if the argument is null
      • fromOrdinal

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

        public Tuple marshal​(Tuple t,
                             StatTuplev3 data)
        Marshal data into tuple, data would be recycled
        Parameters:
        t -
        data -
        Returns:
        a statistics tuple
      • recycle

        public void recycle​(StatTuplev3 st)
        Recycle the stat tuple
        Parameters:
        st -
      • newStatTuple

        public StatTuplev3 newStatTuple​(int cycle,
                                        long time)
        Create a new StatTuple with given cycle and time
        Parameters:
        cycle -
        time -
        Returns:
        statistics data
      • newStatTuple

        public 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