Class LoadStepLocalBase
- java.lang.Object
-
- com.github.akurilov.commons.concurrent.AsyncRunnableBase
-
- com.emc.mongoose.base.concurrent.DaemonBase
-
- com.emc.mongoose.base.load.step.LoadStepBase
-
- com.emc.mongoose.base.load.step.local.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
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<LoadStepContext>stepContexts-
Fields inherited from class com.emc.mongoose.base.load.step.LoadStepBase
config, ctxConfigs, extensions, metricsContexts, metricsMgr
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedLoadStepLocalBase(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 booleanawait(long timeout, java.util.concurrent.TimeUnit timeUnit)protected voiddoClose()protected voiddoShutdown()protected voiddoStartWrapped()protected voiddoStop()protected voidinitMetrics(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.emc.mongoose.base.load.step.LoadStepBase
avgPeriod, doStart, init, loadStepId, metricsSnapshots, run, runId
-
Methods inherited from class com.emc.mongoose.base.concurrent.DaemonBase
close, closeAll
-
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
-
-
-
-
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
-
doStartWrapped
protected void doStartWrapped()
- Specified by:
doStartWrappedin classLoadStepBase
-
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:
initMetricsin classLoadStepBase
-
doShutdown
protected final void doShutdown()
- Overrides:
doShutdownin classcom.github.akurilov.commons.concurrent.AsyncRunnableBase
-
await
public final boolean await(long timeout, java.util.concurrent.TimeUnit timeUnit) throws java.lang.IllegalStateException
-
doStop
protected final void doStop()
- Overrides:
doStopin classLoadStepBase
-
doClose
protected final void doClose() throws java.io.IOException- Overrides:
doClosein classLoadStepBase- Throws:
java.io.IOException
-
-