Class AbstractRgProcess
- java.lang.Object
-
- org.jenkinsci.plugins.radargun.model.impl.AbstractRgProcess
-
- All Implemented Interfaces:
RgProcess
- Direct Known Subclasses:
RgMainProcessImpl,RgWorkerProcessImpl
public abstract class AbstractRgProcess extends Object implements RgProcess
-
-
Field Summary
Fields Modifier and Type Field Description protected CompletableFuture<Integer>processFuture
-
Constructor Summary
Constructors Constructor Description AbstractRgProcess()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidcancel()abstract NodeRunnercreateRunner()CompletableFuture<Integer>getProcessFuture()voidstart(ExecutorService executorService)intwaitForResult()
-
-
-
Field Detail
-
processFuture
protected CompletableFuture<Integer> processFuture
-
-
Method Detail
-
createRunner
public abstract NodeRunner createRunner() throws IOException, InterruptedException
- Specified by:
createRunnerin interfaceRgProcess- Throws:
IOExceptionInterruptedException
-
start
public void start(ExecutorService executorService) throws IllegalStateException
- Specified by:
startin interfaceRgProcess- Throws:
IllegalStateException
-
getProcessFuture
public CompletableFuture<Integer> getProcessFuture()
- Specified by:
getProcessFuturein interfaceRgProcess
-
waitForResult
public int waitForResult()
- Specified by:
waitForResultin interfaceRgProcess
-
-