Class StatsEvent

  • All Implemented Interfaces:
    Serializable, Comparable<SysEvent>

    public class StatsEvent
    extends NamedEvent
    Event to allow us to drop statistics into jms.

    Events can be valueless, something just happened we want to count, or can take a String value or can take a Long value which can be accumulated.

    Author:
    douglm
    See Also:
    Serialized Form
    • Constructor Detail

      • StatsEvent

        public StatsEvent​(String name,
                          String strValue)
        Parameters:
        name - of event
        strValue - string value
      • StatsEvent

        public StatsEvent​(String name,
                          Long longValue)
        Parameters:
        name - of event
        longValue - long value
    • Method Detail

      • getLongValue

        public Long getLongValue()
        Returns:
        Long value
      • getStrValue

        public String getStrValue()
        Returns:
        String value
      • getStatType

        public static StatsEvent.StatType getStatType​(String name)
        Parameters:
        name - of event
        Returns:
        type or null
      • toStringSegment

        public void toStringSegment​(ToString ts)
        Description copied from class: NamedEvent
        Add our stuff to the ToString object
        Overrides:
        toStringSegment in class NamedEvent
        Parameters:
        ts - for result