public interface ProcessDistributor extends AutoCloseable
Modifier and Type | Field and Description |
---|---|
static String |
DISTRIBUTOR_INDEX |
static String |
ELEMENT_UNITS |
static String |
EXCEPTION_MESSAGE |
static String |
INGEST_LEVEL_STACK |
static String |
JSON_EXTENSION |
static String |
NOLEVEL |
static String |
OBJECTS_LIST_EMPTY |
static String |
UNITS_LEVEL |
static String |
WORKER_CALL_EXCEPTION |
Modifier and Type | Method and Description |
---|---|
boolean |
cancel(String operationId)
Get the current step if the processWorkflow corresponding to the operationId
and update his pauseCancelAction parameter to be PauseOrCancelAction.ACTION_CANCEL
WorkerTask check this parameter and can cancel the not yet running tasks
|
ItemStatus |
distribute(WorkerParameters workParams,
Step step,
String operationId,
PauseRecover pauseRecover)
Distribute different steps (execute a workflow actions step by step)
|
boolean |
pause(String operationId)
Get the current step of the processWorkflow corresponding to the operationId
and update his pauseCancelAction parameter to be PauseOrCancelAction.ACTION_PAUSE
WorkerTask check this parameter and can pause the not yet running tasks
|
close
static final String UNITS_LEVEL
static final String JSON_EXTENSION
static final String EXCEPTION_MESSAGE
static final String INGEST_LEVEL_STACK
static final String OBJECTS_LIST_EMPTY
static final String ELEMENT_UNITS
static final String DISTRIBUTOR_INDEX
static final String NOLEVEL
static final String WORKER_CALL_EXCEPTION
ItemStatus distribute(WorkerParameters workParams, Step step, String operationId, PauseRecover pauseRecover)
workParams
- WorkerParameters
null not allowedstep
- ProcessStep
null not allowedoperationId
- operationIdpauseRecover
- prevent recover from pause actionboolean pause(String operationId)
operationId
- concerning operation idboolean cancel(String operationId)
operationId
- concerning operation idCopyright © 2018 Vitam. All rights reserved.