Package fr.gouv.vitam.common.model
Class ItemStatus
java.lang.Object
fr.gouv.vitam.common.model.ItemStatus
Composite Item Status
-
Field Summary
-
Constructor Summary
ConstructorDescriptionItemStatus
(String itemId) ConstructorItemStatus
(String itemId, String message, StatusCode globalStatus, List<Integer> statusMeter, Map<String, Object> data, LinkedHashMap<String, ItemStatus> itemsStatus, ProcessState globalState) -
Method Summary
Modifier and TypeMethodDescriptionvoid
getData()
Deprecated.Get the global stateprotected ItemStatus
increment
(ItemStatus itemStatus1, ItemStatus itemStatus2) increment
(StatusCode statusCode) increment
(StatusCode statusCode, int increment) boolean
void
Reinit all the values of this statusMeter to 0setEvDetailData
(String evDetailData) set EvDetailDatasetGlobalOutcomeDetailSubcode
(String globalOutcomeDetailSubcode) setGlobalState
(ProcessState globalState) setItemsStatus
(ItemStatus compositeItemStatus) setItemsStatus
(String itemId, ItemStatus statusDetails) setItemsStatus
(String itemId, ItemStatus statusDetails, StatusAggregationBehavior statusAggregationBehavior) setLogbookTypeProcess
(String logbookTypeProcess) setMasterData
(String key, Object value) setMessage
(String message) void
setStatusMeterValue
(StatusCode statusCode, Integer value) Set the value of the specified statusCode in this statusMetersetSubTasksStatus
(Map<String, ItemStatus> tasks) setSubTaskStatus
(String taskId, ItemStatus taskStatus) boolean
shallStop
(boolean blocking)
-
Field Details
-
message
-
data
-
-
Constructor Details
-
ItemStatus
public ItemStatus() -
ItemStatus
public ItemStatus(String itemId, String message, StatusCode globalStatus, List<Integer> statusMeter, Map<String, Object> data, LinkedHashMap<String, ItemStatus> itemsStatus, ProcessState globalState) -
ItemStatus
Constructor- Parameters:
itemId
-
-
-
Method Details
-
getMessage
- Returns:
- the message
-
setMessage
- Parameters:
message
- the message to set- Returns:
- this
-
getItemId
- Returns:
- the itemId
-
setItemId
- Parameters:
itemId
- the itemId to set- Returns:
- this
-
getStatusMeter
- Returns:
- the statusMeter
-
increment
- Parameters:
statusCode
- the statusCode to increment- Returns:
- this
-
increment
- Parameters:
statusCode
- the statusCode to incrementincrement
-- Returns:
- this
-
increment
- Parameters:
itemStatus1
- the statusCode to incrementitemStatus2
-- Returns:
- this
-
getGlobalStatus
- Returns:
- the globalStatus
-
getData
- Returns:
- the data
-
getData
Deprecated.- Returns:
-
setData
- Parameters:
key
-value
-- Returns:
- this
-
getMasterData
- Returns:
- masterData
-
setMasterData
-
computeStatusMeterMessage
- Returns:
- String message
-
getItemsStatus
- Returns:
- the itemsStatus
-
setItemsStatus
-
setItemsStatus
public ItemStatus setItemsStatus(String itemId, ItemStatus statusDetails, StatusAggregationBehavior statusAggregationBehavior) -
setItemsStatus
- Parameters:
compositeItemStatus
-- Returns:
- this
-
getGlobalState
Get the global state- Returns:
- globalState as type ProcessState
-
setGlobalState
- Parameters:
globalState
- the golbal state to set- Returns:
- this
-
shallStop
public boolean shallStop(boolean blocking) - Parameters:
blocking
- True if the step or handler is blocking- Returns:
- True if this item shall stop the Step or Handler
-
getSubTaskStatus
- Returns:
- the subTaskStatus
-
setSubTaskStatus
- Parameters:
taskId
- the taskId to settaskStatus
- the taskStatus to set- Returns:
- this
-
setSubTasksStatus
-
getEvDetailData
- Returns:
- evDetailData
-
setEvDetailData
set EvDetailData- Parameters:
evDetailData
-- Returns:
- this
-
getLogbookTypeProcess
-
setLogbookTypeProcess
-
getGlobalOutcomeDetailSubcode
-
setGlobalOutcomeDetailSubcode
-
isLifecycleEnable
public boolean isLifecycleEnable() -
disableLfc
-
setStatusMeterValue
Set the value of the specified statusCode in this statusMeter- Parameters:
statusCode
-value
-
-
reinitStatusMeter
public void reinitStatusMeter()Reinit all the values of this statusMeter to 0 -
clearStatusMeterFatal
public void clearStatusMeterFatal()
-