Class ActivityRuntimeInfo
java.lang.Object
io.nosqlbench.engine.core.lifecycle.activity.ActivityRuntimeInfo
- All Implemented Interfaces:
ProgressCapable
-
Constructor Summary
ConstructorsConstructorDescriptionActivityRuntimeInfo(Activity activity, Future<ExecutionResult> result, ActivityExecutor executor) -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitAllThreadsOnline(long timeoutMs) awaitResult(long timeoutMillis) Wait until the execution is complete and return the result.voidbooleanvoid
-
Constructor Details
-
ActivityRuntimeInfo
public ActivityRuntimeInfo(Activity activity, Future<ExecutionResult> result, ActivityExecutor executor)
-
-
Method Details
-
getProgressMeter
- Specified by:
getProgressMeterin interfaceProgressCapable
-
getFuture
-
awaitResult
Wait until the execution is complete and return the result.- Parameters:
timeoutMillis-- Returns:
- null, or an ExecutionResult if the execution completed
- Throws:
RuntimeException- if there was an execution exception
-
getActivity
-
isRunning
public boolean isRunning() -
getRunState
-
stopActivity
public void stopActivity() -
forceStopActivity
public void forceStopActivity() -
getActivityExecutor
-
awaitAllThreadsOnline
public boolean awaitAllThreadsOnline(long timeoutMs)
-