Class GaugeSnapshot

java.lang.Object
com.pervasive.datarush.monitoring.GaugeSnapshot
All Implemented Interfaces:
GaugeSupplier, StatisticSupplier, Serializable

public final class GaugeSnapshot extends Object implements GaugeSupplier, Serializable
A snapshot that reflects a point-in-time of a GaugeSupplier.
See Also:
  • Field Details

    • UNAVAILABLE

      public static final GaugeSnapshot UNAVAILABLE
      Constant that corresponds to a snapshot of a counter whose value is unavailable
  • Constructor Details

    • GaugeSnapshot

      public GaugeSnapshot(GaugeSupplier supplier)
      Create a snapshot of the given gauge.
      Parameters:
      supplier - the gauge
    • GaugeSnapshot

      public GaugeSnapshot(StatisticState state, long currentValue, long minAllowedValue, long maxAllowedValue)
      Create a snapshot with the specified values
      Parameters:
      state - the state of the gauge
      currentValue - the current value of the gauge
      minAllowedValue - the minimum allowed value of the gauge
      maxAllowedValue - the maximum allowed value of the gauge
  • Method Details