Class PingState

java.lang.Object
org.cdlib.mrt.core.PingState
All Implemented Interfaces:
Serializable, StateInf

public class PingState extends Object implements Serializable, StateInf
Return general runtime information about this servlet
Author:
dloy
See Also:
  • Field Details

  • Constructor Details

    • PingState

      public PingState(String serviceName, boolean doGC) throws TException
      Initialize Ping state
      Parameters:
      doGC - true=garbage collect; false=no garbage collect
      Throws:
      TException
    • PingState

      public PingState(String serviceName) throws TException
      Throws:
      TException
  • Method Details

    • set

      public void set(boolean doGC) throws TException
      Set system values in ping response
      Parameters:
      doGC - true=garbage collect; false=no garbage collect
      Throws:
      TException
    • bumpCmd

      public void bumpCmd(String key, long startTime)
    • getLocalStatistics

      public Map<String,Long> getLocalStatistics()
      Get locally set statistic values in Tally
      Returns:
      statistic values
    • getLocalProperties

      public Map<String,String> getLocalProperties()
      Get locally set property values
      Returns:
      local property values
    • getFreeMemory

      public long getFreeMemory()
    • getMaxMemory

      public long getMaxMemory()
    • getTotalMemory

      public long getTotalMemory()
    • getThreadCnt

      public long getThreadCnt()
    • getPeakThreadCnt

      public long getPeakThreadCnt()
    • getDateTime

      public String getDateTime()
    • getServiceName

      public String getServiceName()