Class ProcessDataAccessImpl
java.lang.Object
fr.gouv.vitam.processing.data.core.ProcessDataAccessImpl
- All Implemented Interfaces:
ProcessDataAccess
ProcessMonitoringImpl class implementing the ProcessMonitoring Persists processWorkflow object (to json) at each step
in process/ name as .json Remove this file at the end (completed, failed state)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addToWorkflowList
(ProcessWorkflow processWorkflow) Add process to Workflow
Only use on application starting to load persisted workflow (state are PAUSED or FAILED only)void
findAllProcessWorkflow
(Integer tenantId) Retrieves All the workflow process for monitoring purpose The final business scope of this feature is likely to be redefined, to match the future needfindOneProcessWorkflow
(String processId, Integer tenantId) Gets Process Workflow by IDstatic ProcessDataAccessImpl
Get the Process Monitoring instancegetter of WorkflowListinitProcessWorkflow
(WorkFlow workflow, String containerName) Allows a process to be initialized
-
Method Details
-
getInstance
Get the Process Monitoring instance- Returns:
- the ProcessMonitoring instance
-
initProcessWorkflow
Description copied from interface:ProcessDataAccess
Allows a process to be initialized- Specified by:
initProcessWorkflow
in interfaceProcessDataAccess
- Parameters:
workflow
- the workflow to initcontainerName
- : null not allowed , the name of the container to be processed- Returns:
LogbookTypeProcess
-
findOneProcessWorkflow
public ProcessWorkflow findOneProcessWorkflow(String processId, Integer tenantId) throws WorkflowNotFoundException Description copied from interface:ProcessDataAccess
Gets Process Workflow by ID- Specified by:
findOneProcessWorkflow
in interfaceProcessDataAccess
- Parameters:
processId
- the process idtenantId
- the working tenant- Returns:
ProcessWorkflow
- Throws:
WorkflowNotFoundException
- thrown when process workflow not found
-
clearWorkflow
public void clearWorkflow() -
findAllProcessWorkflow
Description copied from interface:ProcessDataAccess
Retrieves All the workflow process for monitoring purpose The final business scope of this feature is likely to be redefined, to match the future need- Specified by:
findAllProcessWorkflow
in interfaceProcessDataAccess
- Parameters:
tenantId
- the working tenant- Returns:
- All the workflow process details
-
addToWorkflowList
Description copied from interface:ProcessDataAccess
Add process to Workflow
Only use on application starting to load persisted workflow (state are PAUSED or FAILED only)- Specified by:
addToWorkflowList
in interfaceProcessDataAccess
- Parameters:
processWorkflow
- the loaded persisted process to add
-
getWorkFlowList
Description copied from interface:ProcessDataAccess
getter of WorkflowList- Specified by:
getWorkFlowList
in interfaceProcessDataAccess
- Returns:
-