Package ch.psi.wica

Class ServerStatistics

java.lang.Object
ch.psi.wica.ServerStatistics
All Implemented Interfaces:
StatisticsCollectable

@ThreadSafe public class ServerStatistics extends Object implements StatisticsCollectable
Provides the statistics directly associated with the server.
  • Constructor Details

    • ServerStatistics

      public ServerStatistics()
      Creates a new instance.
  • Method Details

    • get

      Description copied from interface: StatisticsCollectable
      Returns the statistics associated with the collectable.
      Specified by:
      get in interface StatisticsCollectable
      Returns:
      the statistics.
    • reset

      public void reset()
      Description copied from interface: StatisticsCollectable
      Resets the statistics.
      Specified by:
      reset in interface StatisticsCollectable
    • getTimeAndDateNow

      String getTimeAndDateNow()
      Returns a string representation of the current time and date.
      Returns:
      the result.
    • getServerStartTime

      String getServerStartTime()
      Returns a string representation of the server start time.
      Returns:
      the result.
    • getUpTimeInSeconds

      long getUpTimeInSeconds()
      Returns a string representation of the elapsed time since the server started.
      Returns:
      the result.