Class Statistics

java.lang.Object
org.serviceconnector.util.Statistics

public final class Statistics extends Object
The Class Statistics.
  • Method Details

    • getInstance

      public static Statistics getInstance()
      Gets the single instance of Statistics.
      Returns:
      single instance of Statistics
    • incrementMessagesInCache

      public void incrementMessagesInCache()
      Increment messages in cache.
    • decrementMessagesInCache

      public void decrementMessagesInCache()
      Decrement messages in cache.
    • incrementTotalMessages

      public void incrementTotalMessages(long msgLength)
      Increment total messages.
      Parameters:
      msgLength - the msg length
    • getTotalMessages

      public double getTotalMessages()
      Gets the total messages.
      Returns:
      the total messages
    • getTotalBytes

      public double getTotalBytes()
      Gets the total bytes.
      Returns:
      the total bytes
    • getStartupDateTime

      public Timestamp getStartupDateTime()
      Gets the startup date time.
      Returns:
      the startup date time
    • getRuntimeSinceStartupSeconds

      public long getRuntimeSinceStartupSeconds()
      Gets the runtime since startup millis.
      Returns:
      the runtime since startup millis
    • setStartupDateTime

      public void setStartupDateTime(Timestamp startupDateTime)
      Sets the startup date time.
      Parameters:
      startupDateTime - the new startup date time
    • getMessagesInCache

      public int getMessagesInCache()
      Gets the messages in cache.
      Returns:
      the messages in cache