public interface DistributedProcessService
| Modifier and Type | Method and Description |
|---|---|
<T extends DistributedProcessModel> |
create(ProcessCreationData data)
Creates process based on
ProcessCreationData |
default ProcessStatus |
getCurrentStatus(java.lang.String processCode)
Get current status of distributed process
|
<T extends DistributedProcessModel> |
requestToStop(java.lang.String processCode)
Mark process with given code as requested to stop.
|
<T extends DistributedProcessModel> |
start(java.lang.String processCode)
Starts process with given code
|
<T extends DistributedProcessModel> |
wait(java.lang.String processCode,
long maxWaitTimeInSeconds)
Wait for process to be finished.
|
<T extends DistributedProcessModel> T create(ProcessCreationData data)
ProcessCreationDatadata - process creation data<T extends DistributedProcessModel> T start(java.lang.String processCode)
processCode - code of process to be startedProcessConcurrentlyModifiedException - when process was modified (e.g. started) in other thread.<T extends DistributedProcessModel> T requestToStop(java.lang.String processCode)
processCode - code of process to be stoppedProcessConcurrentlyModifiedException - when process was modified in other thread.<T extends DistributedProcessModel> T wait(java.lang.String processCode, long maxWaitTimeInSeconds) throws java.lang.InterruptedException
DistributedProcessState.SUCCEEDED, DistributedProcessState.STOPPED or
DistributedProcessState.FAILED. It wait's for a given time and if it returns caller need to check whether
the process is really finished.processCode - code of process to be waited formaxWaitTimeInSeconds - time in secondsProcessConcurrentlyModifiedException - when process was modified in other thread.java.lang.InterruptedExceptiondefault ProcessStatus getCurrentStatus(java.lang.String processCode)
processCode - code of processCopyright © 2018 SAP SE. All Rights Reserved.