Class LoadStepServiceImpl

    • 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 
      Constructor Description
      LoadStepServiceImpl​(int port, java.util.List<Extension> extensions, java.lang.String stepType, com.github.akurilov.confuse.Config baseConfig, java.util.List<com.github.akurilov.confuse.Config> ctxConfigs, 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 doStart()  
      protected void doStop()  
      java.lang.String getTypeName()  
      java.lang.String loadStepId()  
      java.util.List<? extends AllMetricsSnapshot> metricsSnapshots()  
      java.lang.String name()  
      long runId()  
      • Methods inherited from class com.github.akurilov.commons.concurrent.AsyncRunnableBase

        await, close, 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
      • Methods inherited from interface java.lang.AutoCloseable

        close
    • Constructor Detail

      • LoadStepServiceImpl

        public LoadStepServiceImpl​(int port,
                                   java.util.List<Extension> extensions,
                                   java.lang.String stepType,
                                   com.github.akurilov.confuse.Config baseConfig,
                                   java.util.List<com.github.akurilov.confuse.Config> ctxConfigs,
                                   MetricsManager metricsManager)
    • Method Detail

      • doClose

        protected final void doClose()
                              throws java.io.IOException
        Overrides:
        doClose in class com.github.akurilov.commons.concurrent.AsyncRunnableBase
        Throws:
        java.io.IOException
      • name

        public java.lang.String name()
        Specified by:
        name in interface Service
      • loadStepId

        public final java.lang.String loadStepId()
                                          throws java.rmi.RemoteException
        Specified by:
        loadStepId in interface LoadStep
        Returns:
        the step id
        Throws:
        java.rmi.RemoteException
      • runId

        public long runId()
                   throws java.rmi.RemoteException
        Specified by:
        runId in interface LoadStep
        Throws:
        java.rmi.RemoteException
      • getTypeName

        public final java.lang.String getTypeName()
                                           throws java.rmi.RemoteException
        Specified by:
        getTypeName in interface LoadStep
        Throws:
        java.rmi.RemoteException
      • metricsSnapshots

        public final java.util.List<? extends AllMetricsSnapshot> metricsSnapshots()
                                                                            throws java.rmi.RemoteException
        Specified by:
        metricsSnapshots in interface LoadStep
        Throws:
        java.rmi.RemoteException
      • await

        public final boolean await​(long timeout,
                                   java.util.concurrent.TimeUnit timeUnit)
                            throws java.lang.IllegalStateException,
                                   java.lang.InterruptedException
        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
        java.lang.InterruptedException