Interface Measurement

  • All Known Implementing Classes:
    MeasurementImpl

    public interface Measurement
    Measurement is used in performance tests to measure the result of execution. Recorded metrics will be flushed into the storage registered.

    Author:
    Erhan Bagdemir
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void add​(long millis)  
      void commit​(java.lang.String status)  
      void commit​(java.lang.String measurement, java.lang.String status)  
      void fail​(java.lang.String message)
      Stops the measurement by committing the measurement to the dispatcher.
      void finish()
      Finishes the measurement by committing it to the dispatcher.
      java.util.List<LogEvent> getEvents()  
      long measure​(java.lang.String status)  
      long measure​(java.lang.String stepName, java.lang.String status)
      Call measure(String, int) to measure the temporal metrics.
      void purge()
      Purge the backing data structure by deleting all the events stored.
      void record​(LogEvent event)
      The LogEvent will be recorded and stored internally.
      void start()
      Starts the measurement.
    • Method Detail

      • fail

        void fail​(java.lang.String message)
        Stops the measurement by committing the measurement to the dispatcher.
        Parameters:
        message - Failure description.
      • start

        void start()
        Starts the measurement.
      • finish

        void finish()
        Finishes the measurement by committing it to the dispatcher.
      • measure

        long measure​(java.lang.String stepName,
                     java.lang.String status)
        Call measure(String, int) to measure the temporal metrics.

        Parameters:
        stepName - The name of the step.
        status - HTTP status of the load execution.
      • measure

        long measure​(java.lang.String status)
      • record

        void record​(LogEvent event)
        The LogEvent will be recorded and stored internally. The EventDispatcher will then dispatch the persisted events to the instances which process these events.

        Parameters:
        event - log event.
      • purge

        void purge()
        Purge the backing data structure by deleting all the events stored.

      • getEvents

        java.util.List<LogEvent> getEvents()
      • add

        void add​(long millis)
      • commit

        void commit​(java.lang.String measurement,
                    java.lang.String status)
      • commit

        void commit​(java.lang.String status)