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 void
cancel()
abstract NodeRunner
createRunner()
CompletableFuture<Integer>
getProcessFuture()
void
start(ExecutorService executorService)
int
waitForResult()
-
-
-
Field Detail
-
processFuture
protected CompletableFuture<Integer> processFuture
-
-
Method Detail
-
createRunner
public abstract NodeRunner createRunner() throws IOException, InterruptedException
- Specified by:
createRunner
in interfaceRgProcess
- Throws:
IOException
InterruptedException
-
start
public void start(ExecutorService executorService) throws IllegalStateException
- Specified by:
start
in interfaceRgProcess
- Throws:
IllegalStateException
-
getProcessFuture
public CompletableFuture<Integer> getProcessFuture()
- Specified by:
getProcessFuture
in interfaceRgProcess
-
waitForResult
public int waitForResult()
- Specified by:
waitForResult
in interfaceRgProcess
-
-