Class ProcessingManagementClientMock
java.lang.Object
fr.gouv.vitam.common.client.AbstractMockClient
fr.gouv.vitam.processing.management.client.ProcessingManagementClientMock
- All Implemented Interfaces:
MockOrRestClient,VitamAutoCloseable,ProcessingManagementClient,AutoCloseable
public class ProcessingManagementClientMock
extends AbstractMockClient
implements ProcessingManagementClient
-
Nested Class Summary
Nested classes/interfaces inherited from class fr.gouv.vitam.common.client.AbstractMockClient
AbstractMockClient.FakeInboundResponse -
Method Summary
Modifier and TypeMethodDescriptioncancelOperationProcessExecution(String id, boolean force) cancelOperationProcessExecution : cancel processing operationexecuteOperationProcess(String operationId, String workflow, String actionId) ExecuteOperationProcess : execute an operation processing Other than INIT process, only operation id and action id are requiredforcePause(ProcessPause info) Add a forced pause on the tenant and/or the type of processgetOperationProcessExecutionDetails : get operation processing execution detailsgetOperationProcessStatus: get operation process status**Retrieve all the workflow definitions.getWorkflowDetails(String WorkflowIdentifier) voidinitVitamProcess(ProcessingEntry entry) initVitamProcess woth processing entryvoidinitVitamProcess(String container, String workflowId) initVitamProcessRetrieve all the workflow operationsvoidregisterWorker(String familyId, String workerId, WorkerBean workerDescription) Register a new worker knowing its family and with a WorkerBean.removeForcePause(ProcessPause info) Removed the forced pause on the tenant and/or the type of processvoidunregisterWorker(String familyId, String workerId) Unregister a worker knowing its family and its workerId.updateOperationActionProcess(String actionId, String operationId) updateOperationActionProcess : update operation processing statusMethods inherited from class fr.gouv.vitam.common.client.AbstractMockClient
checkStatus, checkStatus, close, consumeAnyEntityAndClose, getResourcePath, getServiceUrlMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface fr.gouv.vitam.common.client.MockOrRestClient
checkStatus, checkStatus, close, consumeAnyEntityAndClose, getResourcePath, getServiceUrl
-
Method Details
-
getOperationProcessStatus
Description copied from interface:ProcessingManagementClientgetOperationProcessStatus: get operation process status**- Specified by:
getOperationProcessStatusin interfaceProcessingManagementClient- Parameters:
id- : operation identifier*- Returns:
- ItemStatus response containing message and status*
-
getOperationProcessExecutionDetails
Description copied from interface:ProcessingManagementClientgetOperationProcessExecutionDetails : get operation processing execution details- Specified by:
getOperationProcessExecutionDetailsin interfaceProcessingManagementClient- Parameters:
id- : operation identifier- Returns:
- Engine response containing message and status
-
cancelOperationProcessExecution
Description copied from interface:ProcessingManagementClientcancelOperationProcessExecution : cancel processing operation- Specified by:
cancelOperationProcessExecutionin interfaceProcessingManagementClient- Parameters:
id- : operation identifier- Returns:
- ItemStatus response containing message and status
-
updateOperationActionProcess
public RequestResponse<ItemStatus> updateOperationActionProcess(String actionId, String operationId) Description copied from interface:ProcessingManagementClientupdateOperationActionProcess : update operation processing status- Specified by:
updateOperationActionProcessin interfaceProcessingManagementClient- Parameters:
actionId- : identify the action to be executed by the workflow(next , pause,resume)operationId- : operation identifier- Returns:
- Response containing message and status
-
executeOperationProcess
public RequestResponse<ItemStatus> executeOperationProcess(String operationId, String workflow, String actionId) Description copied from interface:ProcessingManagementClientExecuteOperationProcess : execute an operation processing Other than INIT process, only operation id and action id are required- Specified by:
executeOperationProcessin interfaceProcessingManagementClient- Parameters:
operationId- id of the operation (required)workflow- id of the workflow (optional)actionId- identify the action to be executed by the workflow(next , pause,resume) (required)- Returns:
- RequestResponse
-
registerWorker
Description copied from interface:ProcessingManagementClientRegister a new worker knowing its family and with a WorkerBean. If a problem is encountered, an exception is thrown.- Specified by:
registerWorkerin interfaceProcessingManagementClient- Parameters:
familyId- the id of the family to which the worker has to be registeredworkerId- the id of the worker to be registeredworkerDescription- the description of the worker as a workerBean
-
unregisterWorker
Description copied from interface:ProcessingManagementClientUnregister a worker knowing its family and its workerId. If the familyId or the workerId is unknown, an exception is thrown.- Specified by:
unregisterWorkerin interfaceProcessingManagementClient- Parameters:
familyId- the id of the family to which the worker has to be registeredworkerId- the id of the worker to be registered
-
initVitamProcess
Description copied from interface:ProcessingManagementClientinitVitamProcess- Specified by:
initVitamProcessin interfaceProcessingManagementClient
-
listOperationsDetails
Description copied from interface:ProcessingManagementClientRetrieve all the workflow operations- Specified by:
listOperationsDetailsin interfaceProcessingManagementClient- Parameters:
query- Query model- Returns:
- All details of the operations
-
getWorkflowDefinitions
Description copied from interface:ProcessingManagementClientRetrieve all the workflow definitions.- Specified by:
getWorkflowDefinitionsin interfaceProcessingManagementClient- Returns:
- map of workflow definitions by id
-
getWorkflowDetails
- Specified by:
getWorkflowDetailsin interfaceProcessingManagementClient- Returns:
-
initVitamProcess
Description copied from interface:ProcessingManagementClientinitVitamProcess woth processing entry- Specified by:
initVitamProcessin interfaceProcessingManagementClient
-
forcePause
Description copied from interface:ProcessingManagementClientAdd a forced pause on the tenant and/or the type of process- Specified by:
forcePausein interfaceProcessingManagementClient
-
removeForcePause
Description copied from interface:ProcessingManagementClientRemoved the forced pause on the tenant and/or the type of process- Specified by:
removeForcePausein interfaceProcessingManagementClient
-