Interface IProcessEngine
-
- All Known Implementing Classes:
ProcessingEngineImpl
public interface IProcessEngineDefines the process engine
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddListener(IProcessingListener listener)Add aIProcessingListener.com.github.toolarium.processing.unit.runtime.runnable.IProcessingUnitRunnableexecute(java.lang.String id, java.lang.String name, java.lang.String processingUnitClass, java.util.List<com.github.toolarium.processing.unit.dto.Parameter> parameterList)Execute the process unitjava.lang.StringgetInstanceName()Get the process engine instance nameIProcessingUnitRegistrygetProcessingUnitRegistry()Get the processing unit registryIProcessingEngineStatusgetStatus()Get the status backbyte[]shutdown()Initiates an orderly shutdown in which previously submitted tasks are executed, but no new tasks will be accepted.
-
-
-
Method Detail
-
getInstanceName
java.lang.String getInstanceName()
Get the process engine instance name- Returns:
- the process engine instance name
-
getProcessingUnitRegistry
IProcessingUnitRegistry getProcessingUnitRegistry()
Get the processing unit registry- Returns:
- the processing unit registry
-
execute
com.github.toolarium.processing.unit.runtime.runnable.IProcessingUnitRunnable execute(java.lang.String id, java.lang.String name, java.lang.String processingUnitClass, java.util.List<com.github.toolarium.processing.unit.dto.Parameter> parameterList)Execute the process unit- Parameters:
id- the id of the execution or nullname- the name of the executionprocessingUnitClass- the process unit classparameterList- the parameter list- Returns:
- the added
IProcessingUnitRunnable.
-
getStatus
IProcessingEngineStatus getStatus()
Get the status back- Returns:
- the status
-
addListener
void addListener(IProcessingListener listener)
Add aIProcessingListener.- Parameters:
listener- the listener to add
-
shutdown
byte[] shutdown()
Initiates an orderly shutdown in which previously submitted tasks are executed, but no new tasks will be accepted. Invocation has no additional effect if already shut down.- Returns:
- the processing suspended state
-
-