Class AbstractProbe<E,​C extends ProbeConfiguration>

    • Constructor Detail

      • AbstractProbe

        public AbstractProbe​(MeasuringPoint<E> p,
                             C configuration)
    • Method Detail

      • getLastMeasurementOf

        public Measurement<E> getLastMeasurementOf​(Object who)
        Description copied from interface: IProbe
        Returns the latest measurement caused by the given trigger.
        Specified by:
        getLastMeasurementOf in interface IProbe<E>
        Parameters:
        who - the trigger
        Returns:
        the most recent measurement caused by the given trigger, or null, if there is no such measurement.
      • enableCaching

        public void enableCaching()
        Enables caching of measurements for this probe. If caching is already enabled, this method has no effect.
        Specified by:
        enableCaching in interface IProbe<E>
      • disableCaching

        public void disableCaching()
        Disables caching of measurements for this probe and removes cached measurements, if any. If caching is already disabled, this method has no effect.
        Specified by:
        disableCaching in interface IProbe<E>
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object