Interface MetricsContext<S extends AllMetricsSnapshot>

    • Field Detail

      • DEFAULT_SNAPSHOT_UPDATE_PERIOD_MILLIS

        static final int DEFAULT_SNAPSHOT_UPDATE_PERIOD_MILLIS
        See Also:
        Constant Field Values
    • Method Detail

      • metadata

        java.util.Map metadata()
      • loadStepId

        java.lang.String loadStepId()
      • runId

        long runId()
      • concurrencyLimit

        int concurrencyLimit()
      • itemDataSize

        com.github.akurilov.commons.system.SizeInBytes itemDataSize()
      • markSucc

        void markSucc​(long bytes,
                      long duration,
                      long latency)
      • markPartSucc

        void markPartSucc​(long bytes,
                          long duration,
                          long latency)
      • markSucc

        void markSucc​(long count,
                      long bytes,
                      long[] durationValues,
                      long[] latencyValues)
      • markPartSucc

        void markPartSucc​(long bytes,
                          long[] durationValues,
                          long[] latencyValues)
      • markFail

        void markFail()
      • markFail

        void markFail​(long count)
      • start

        void start()
      • isStarted

        boolean isStarted()
      • startTimeStamp

        long startTimeStamp()
      • refreshLastSnapshot

        void refreshLastSnapshot()
      • lastSnapshot

        S lastSnapshot()
      • concurrencyThreshold

        int concurrencyThreshold()
      • thresholdStateEntered

        boolean thresholdStateEntered()
      • enterThresholdState

        void enterThresholdState()
                          throws java.lang.IllegalStateException
        Throws:
        java.lang.IllegalStateException
      • thresholdStateExited

        boolean thresholdStateExited()
      • exitThresholdState

        void exitThresholdState()
                         throws java.lang.IllegalStateException
        Throws:
        java.lang.IllegalStateException
      • stdOutColorEnabled

        boolean stdOutColorEnabled()
      • avgPersistEnabled

        boolean avgPersistEnabled()
      • sumPersistEnabled

        boolean sumPersistEnabled()
      • outputPeriodMillis

        long outputPeriodMillis()
      • lastOutputTs

        long lastOutputTs()
      • lastOutputTs

        void lastOutputTs​(long ts)
      • elapsedTimeMillis

        long elapsedTimeMillis()
      • comment

        java.lang.String comment()
      • close

        void close()
        Specified by:
        close in interface java.lang.AutoCloseable