Class ParallelRuntime
java.lang.Object
com.lumiomedical.flow.impl.parallel.ParallelRuntime
- All Implemented Interfaces:
FlowRuntime
public class ParallelRuntime extends Object implements FlowRuntime
- Author:
- Pierre Lecerf ([email protected]) Created on 2020/03/03
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
ParallelRuntime.NodeState
The NodeState enum represents the different states a Node can be in at runtime before its execution. -
Constructor Summary
Constructors Modifier Constructor Description protected
ParallelRuntime(List<Node> compiledNodes, ExecutorServiceProvider executorServiceProvider, boolean autoRefresh, ParallelIndexes indexes)
-
Method Summary
Modifier and Type Method Description <T> T
getSample(String name, Class<T> type)
void
run()
void
shutdownThreadPool()
-
Constructor Details
-
ParallelRuntime
protected ParallelRuntime(List<Node> compiledNodes, ExecutorServiceProvider executorServiceProvider, boolean autoRefresh, ParallelIndexes indexes)- Parameters:
compiledNodes
-executorServiceProvider
-autoRefresh
-indexes
-
-
-
Method Details
-
shutdownThreadPool
public void shutdownThreadPool() -
run
- Specified by:
run
in interfaceFlowRuntime
- Throws:
RunException
-
getSample
- Specified by:
getSample
in interfaceFlowRuntime
- Returns:
- Throws:
RunException
-