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 TypeMethodDescriptionvoidaddToWorkflowList(ProcessWorkflow processWorkflow) Add process to Workflow
Only use on application starting to load persisted workflow (state are PAUSED or FAILED only)voidfindAllProcessWorkflow(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 ProcessDataAccessImplGet 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:ProcessDataAccessAllows a process to be initialized- Specified by:
initProcessWorkflowin 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:ProcessDataAccessGets Process Workflow by ID- Specified by:
findOneProcessWorkflowin 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:ProcessDataAccessRetrieves 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:
findAllProcessWorkflowin interfaceProcessDataAccess- Parameters:
tenantId- the working tenant- Returns:
- All the workflow process details
-
addToWorkflowList
Description copied from interface:ProcessDataAccessAdd process to Workflow
Only use on application starting to load persisted workflow (state are PAUSED or FAILED only)- Specified by:
addToWorkflowListin interfaceProcessDataAccess- Parameters:
processWorkflow- the loaded persisted process to add
-
getWorkFlowList
Description copied from interface:ProcessDataAccessgetter of WorkflowList- Specified by:
getWorkFlowListin interfaceProcessDataAccess- Returns:
-