Class ProcessStep
java.lang.Object
fr.gouv.vitam.common.model.processing.Step
fr.gouv.vitam.processing.common.model.ProcessStep
Step Object in process workflow
-
Constructor Summary
ConstructorDescriptionProcessStep
(Step step, String containerName, String workflowId, int position, AtomicLong elementToProcess, AtomicLong elementProcessed) Constructor to initalize a Process Step with a Step objectProcessStep
(Step step, String id, String containerName, String workflowId, int position, AtomicLong elementToProcess, AtomicLong elementProcessed) ProcessStep
(Step step, AtomicLong elementToProcess, AtomicLong elementProcessed) Constructor to initialize a Process Step with a Step objectProcessStep
(Step step, AtomicLong elementToProcess, AtomicLong elementProcessed, String id) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Considered equal two ProcessStep with the same id, step name and worker group id.boolean
int
hashCode()
boolean
setElementProcessed
(AtomicLong elementProcessed) setElementToProcess
(AtomicLong elementToProcess) void
setLastStep
(boolean lastStep) setStepStatusCode
(StatusCode stepStatusCode) toString()
Methods inherited from class fr.gouv.vitam.common.model.processing.Step
defaultLifecycleLog, getActions, getBehavior, getDistribution, getId, getPauseOrCancelAction, getStepName, getStepResponses, getWaitFor, getWorkerGroupId, isBlocking, isFinally, setActions, setBehavior, setDistribution, setId, setPauseOrCancelAction, setStepName, setStepResponses, setWaitFor, setWorkerGroupId
-
Constructor Details
-
ProcessStep
-
ProcessStep
Constructor to initialize a Process Step with a Step object- Parameters:
step
- the Step objectelementToProcess
- number of element to processelementProcessed
- number of element processed- Throws:
IllegalArgumentException
- if the step is null
-
ProcessStep
public ProcessStep(Step step, String id, String containerName, String workflowId, int position, AtomicLong elementToProcess, AtomicLong elementProcessed) -
ProcessStep
public ProcessStep(Step step, String containerName, String workflowId, int position, AtomicLong elementToProcess, AtomicLong elementProcessed) Constructor to initalize a Process Step with a Step object- Parameters:
step
- the Step objectcontainerName
- the container name concerned by the processworkflowId
- the workflow ID concerned by the processposition
- the position of the stepelementToProcess
- number of element to processelementProcessed
- number of element processed- Throws:
IllegalArgumentException
- if the step is null
-
-
Method Details
-
isBlockingKO
public boolean isBlockingKO() -
getElementProcessed
- Returns:
- the elementProcessed
-
setElementProcessed
- Parameters:
elementProcessed
- the elementProcessed to set- Returns:
- the updated ProcessStep object
-
getElementToProcess
- Returns:
- the elementToProcess
-
setElementToProcess
- Parameters:
elementToProcess
- the elementToProcess to set- Returns:
- the updated ProcessStep object
-
getStepStatusCode
- Returns:
- the stepStatusCode
-
setStepStatusCode
- Parameters:
stepStatusCode
- the stepStatusCode to set- Returns:
- the updated ProcessStep object
-
equals
Considered equal two ProcessStep with the same id, step name and worker group id. -
hashCode
public int hashCode() -
toString
-
setLastStep
public void setLastStep(boolean lastStep) -
getLastStep
public boolean getLastStep()
-