Class ControllerStatistics

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

@ThreadSafe public class ControllerStatistics extends Object implements StatisticsCollectable
Provides statistics related to the Wica Controllers.
  • Constructor Details

    • ControllerStatistics

      public ControllerStatistics(String statisticsHeader)
      Creates a new instance with the specified header.
      Parameters:
      statisticsHeader - the header.
  • 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
    • incrementRequests

      void incrementRequests()
      Increments the count of requests.
    • incrementReplies

      void incrementReplies()
      Increments the count of replies.
    • incrementErrors

      void incrementErrors()
      Increments the count of errors.
    • addClientIpAddr

      void addClientIpAddr(String clientIpAddr)
      Adds the supplied client IP to the list of collected IPs.
      Parameters:
      clientIpAddr - the IP to add.