Class LoadStepLocalBase

  • All Implemented Interfaces:
    Daemon, LoadStep, com.github.akurilov.commons.concurrent.AsyncRunnable, java.lang.Runnable, java.rmi.Remote
    Direct Known Subclasses:
    LinearLoadStepLocal

    public abstract class LoadStepLocalBase
    extends LoadStepBase
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface com.github.akurilov.commons.concurrent.AsyncRunnable

        com.github.akurilov.commons.concurrent.AsyncRunnable.State
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected LoadStepLocalBase​(com.github.akurilov.confuse.Config baseConfig, java.util.List<Extension> extensions, java.util.List<com.github.akurilov.confuse.Config> contextConfigs, MetricsManager metricsManager)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean await​(long timeout, java.util.concurrent.TimeUnit timeUnit)  
      protected void doClose()  
      protected void doShutdown()  
      protected void doStartWrapped()  
      protected void doStop()  
      protected void initMetrics​(int originIndex, OpType opType, int concurrency, com.github.akurilov.confuse.Config metricsConfig, com.github.akurilov.commons.system.SizeInBytes itemDataSize, boolean outputColorFlag)  
      • Methods inherited from class com.github.akurilov.commons.concurrent.AsyncRunnableBase

        await, isClosed, isInitial, isShutdown, isStarted, isStopped, shutdown, start, state, stop
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.github.akurilov.commons.concurrent.AsyncRunnable

        isClosed, isInitial, isShutdown, isStarted, isStopped, shutdown, state
    • Field Detail

      • stepContexts

        protected final java.util.List<LoadStepContext> stepContexts
    • Constructor Detail

      • LoadStepLocalBase

        protected LoadStepLocalBase​(com.github.akurilov.confuse.Config baseConfig,
                                    java.util.List<Extension> extensions,
                                    java.util.List<com.github.akurilov.confuse.Config> contextConfigs,
                                    MetricsManager metricsManager)
    • Method Detail

      • initMetrics

        protected final void initMetrics​(int originIndex,
                                         OpType opType,
                                         int concurrency,
                                         com.github.akurilov.confuse.Config metricsConfig,
                                         com.github.akurilov.commons.system.SizeInBytes itemDataSize,
                                         boolean outputColorFlag)
        Specified by:
        initMetrics in class LoadStepBase
      • doShutdown

        protected final void doShutdown()
        Overrides:
        doShutdown in class com.github.akurilov.commons.concurrent.AsyncRunnableBase
      • await

        public final boolean await​(long timeout,
                                   java.util.concurrent.TimeUnit timeUnit)
                            throws java.lang.IllegalStateException
        Specified by:
        await in interface com.github.akurilov.commons.concurrent.AsyncRunnable
        Specified by:
        await in interface LoadStep
        Overrides:
        await in class com.github.akurilov.commons.concurrent.AsyncRunnableBase
        Throws:
        java.lang.IllegalStateException
      • doClose

        protected final void doClose()
                              throws java.io.IOException
        Overrides:
        doClose in class LoadStepBase
        Throws:
        java.io.IOException