Class LoadStepServiceImpl
- java.lang.Object
-
- com.github.akurilov.commons.concurrent.AsyncRunnableBase
-
- com.emc.mongoose.base.svc.ServiceBase
-
- com.emc.mongoose.base.load.step.service.LoadStepServiceImpl
-
- All Implemented Interfaces:
Daemon,LoadStep,LoadStepService,Service,com.github.akurilov.commons.concurrent.AsyncRunnable,java.lang.AutoCloseable,java.rmi.Remote
public final class LoadStepServiceImpl extends ServiceBase implements LoadStepService
-
-
Field Summary
-
Fields inherited from class com.emc.mongoose.base.svc.ServiceBase
port
-
Fields inherited from interface com.emc.mongoose.base.load.step.service.LoadStepService
SVC_NAME_PREFIX
-
-
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 booleanawait(long timeout, java.util.concurrent.TimeUnit timeUnit)protected voiddoClose()protected voiddoStart()protected voiddoStop()java.lang.StringgetTypeName()java.lang.StringloadStepId()java.util.List<? extends AllMetricsSnapshot>metricsSnapshots()java.lang.Stringname()longrunId()-
Methods inherited from class com.emc.mongoose.base.svc.ServiceBase
doShutdown, registryPort
-
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 com.emc.mongoose.base.svc.Service
registryPort
-
-
-
-
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
-
doStart
protected final void doStart()
- Overrides:
doStartin classServiceBase
-
doStop
protected void doStop()
- Overrides:
doStopin classServiceBase
-
doClose
protected final void doClose() throws java.io.IOException- Overrides:
doClosein classcom.github.akurilov.commons.concurrent.AsyncRunnableBase- Throws:
java.io.IOException
-
loadStepId
public final java.lang.String loadStepId() throws java.rmi.RemoteException- Specified by:
loadStepIdin interfaceLoadStep- Returns:
- the step id
- Throws:
java.rmi.RemoteException
-
runId
public long runId() throws java.rmi.RemoteException
-
getTypeName
public final java.lang.String getTypeName() throws java.rmi.RemoteException- Specified by:
getTypeNamein interfaceLoadStep- Throws:
java.rmi.RemoteException
-
metricsSnapshots
public final java.util.List<? extends AllMetricsSnapshot> metricsSnapshots() throws java.rmi.RemoteException
- Specified by:
metricsSnapshotsin interfaceLoadStep- Throws:
java.rmi.RemoteException
-
await
public final boolean await(long timeout, java.util.concurrent.TimeUnit timeUnit) throws java.lang.IllegalStateException, java.lang.InterruptedException
-
-