Interface ExecutionStrategy
-
public interface ExecutionStrategy
This interface represents the strategy how theNodeWorker
s will be executed.- Since:
- jadice server 5.5.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
abort()
Abort the execution of the workersvoid
startWorkers(Collection<NodeWorker<?>> workers)
Let theExecutionStrategy
implementation execute the givenNodeWorker
s.void
waitForTermination()
This method blocks and waits for all workers to finish.
-
-
-
Method Detail
-
startWorkers
void startWorkers(Collection<NodeWorker<?>> workers)
Let theExecutionStrategy
implementation execute the givenNodeWorker
s. This method may either be called on an initial job start or when aSubPipeline
has been created.- Parameters:
workers
- theNodeWorker
s to execute
-
abort
void abort()
Abort the execution of the workers
-
waitForTermination
void waitForTermination() throws InterruptedException
This method blocks and waits for all workers to finish.- Throws:
InterruptedException
- if the current thread was interrupted while waiting
-
-