Interface OperatorStatReceiver


public interface OperatorStatReceiver
Interface for updating a statistic. Provides just the methods to add to or update a statistic, hiding implementation. Allows a test-time implementation that differs from the run-time version.
  • Method Details

    • addLongStat

      void addLongStat(MetricDef metric, long value)
      Add a long value to the existing value. Creates the stat (with an initial value of zero) if the stat does not yet exist.
      Parameters:
      metric - the metric to update
      value - the value to add to the existing value
    • addDoubleStat

      void addDoubleStat(MetricDef metric, double value)
      Add a double value to the existing value. Creates the stat (with an initial value of zero) if the stat does not yet exist.
      Parameters:
      metric - the metric to update
      value - the value to add to the existing value
    • setLongStat

      void setLongStat(MetricDef metric, long value)
      Set a stat to the specified long value. Creates the stat if the stat does not yet exist.
      Parameters:
      metric - the metric to update
      value - the value to set
    • setDoubleStat

      void setDoubleStat(MetricDef metric, double value)
      Set a stat to the specified double value. Creates the stat if the stat does not yet exist.
      Parameters:
      metric - the metric to update
      value - the value to set
    • startWait

      void startWait()
    • stopWait

      void stopWait()