Class BulkAtomicUpdateProcess
- java.lang.Object
-
- fr.gouv.vitam.worker.core.handler.ActionHandler
-
- fr.gouv.vitam.worker.core.plugin.StoreObjectActionHandler
-
- fr.gouv.vitam.worker.core.plugin.StoreMetadataObjectActionHandler
-
- fr.gouv.vitam.worker.core.plugin.bulkatomicupdate.BulkAtomicUpdateProcess
-
- All Implemented Interfaces:
VitamAutoCloseable
,WorkerAction
,java.lang.AutoCloseable
- Direct Known Subclasses:
RevertUpdateUnitPlugin
public class BulkAtomicUpdateProcess extends StoreMetadataObjectActionHandler
Update from distribution :
- execute update (bulk metadata)
- compute results : if not updated (because nothing to do) => WARNING/ add batch-report line, if KO/ add batch-report line, if OK to the next
- in case of OK update and store the lfc of the unit with diff and add to batch report
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
BULK_ATOMIC_UPDATE_UNITS_PLUGIN_NAME
static java.lang.String
ORIGINAL_QUERY_ROOT_KEY
static java.lang.String
QUERY_INDEX_KEY
-
Constructor Summary
Constructors Constructor Description BulkAtomicUpdateProcess()
BulkAtomicUpdateProcess(MetaDataClientFactory metaDataClientFactory, LogbookLifeCyclesClientFactory lfcClientFactory, StorageClientFactory storageClientFactory, BatchReportClientFactory batchReportClientFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ItemStatus
execute(WorkerParameters param, HandlerIO handler)
Execute an actionjava.util.List<ItemStatus>
executeList(WorkerParameters workerParameters, HandlerIO handler)
protected java.lang.String
getPluginId()
-
Methods inherited from class fr.gouv.vitam.worker.core.plugin.StoreMetadataObjectActionHandler
getRawLogbookLifeCycleById, selectMetadataDocumentRawById
-
Methods inherited from class fr.gouv.vitam.worker.core.plugin.StoreObjectActionHandler
storeObject, storeObjects, storeStorageInfos, updateSubTasksAndTasksFromStorageInfos
-
Methods inherited from class fr.gouv.vitam.worker.core.handler.ActionHandler
checkMandatoryParameters, close, updateDetailItemStatus
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface fr.gouv.vitam.worker.core.api.WorkerAction
checkMandatoryIOParameter
-
-
-
-
Field Detail
-
BULK_ATOMIC_UPDATE_UNITS_PLUGIN_NAME
public static final java.lang.String BULK_ATOMIC_UPDATE_UNITS_PLUGIN_NAME
- See Also:
- Constant Field Values
-
ORIGINAL_QUERY_ROOT_KEY
public static final java.lang.String ORIGINAL_QUERY_ROOT_KEY
- See Also:
- Constant Field Values
-
QUERY_INDEX_KEY
public static final java.lang.String QUERY_INDEX_KEY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BulkAtomicUpdateProcess
public BulkAtomicUpdateProcess()
-
BulkAtomicUpdateProcess
public BulkAtomicUpdateProcess(MetaDataClientFactory metaDataClientFactory, LogbookLifeCyclesClientFactory lfcClientFactory, StorageClientFactory storageClientFactory, BatchReportClientFactory batchReportClientFactory)
-
-
Method Detail
-
execute
public ItemStatus execute(WorkerParameters param, HandlerIO handler) throws ProcessingException
Description copied from interface:WorkerAction
Execute an action- Parameters:
param
-WorkerParameters
handler
- the handlerIo- Returns:
- CompositeItemStatus:response contains a list of functional message and status code
- Throws:
ProcessingException
- if an error is encountered when executing the action
-
executeList
public java.util.List<ItemStatus> executeList(WorkerParameters workerParameters, HandlerIO handler) throws ProcessingException
- Returns:
- Throws:
ProcessingException
-
getPluginId
protected java.lang.String getPluginId()
-
-