Package fr.gouv.vitam.worker.core.plugin
Class StoreObjectActionHandler
- java.lang.Object
-
- fr.gouv.vitam.worker.core.handler.ActionHandler
-
- fr.gouv.vitam.worker.core.plugin.StoreObjectActionHandler
-
- All Implemented Interfaces:
VitamAutoCloseable
,WorkerAction
,java.lang.AutoCloseable
- Direct Known Subclasses:
StoreMetadataObjectActionHandler
,StoreObjectGroupActionPlugin
public abstract class StoreObjectActionHandler extends ActionHandler
-
-
Constructor Summary
Constructors Constructor Description StoreObjectActionHandler(StorageClientFactory storageClientFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StoredInfoResult
storeObject(java.lang.String strategyId, ObjectDescription description, ItemStatus itemStatus)
The function is used for retrieving ObjectGroup in workspace and storing metaData in storage offerprotected BulkObjectStoreResponse
storeObjects(java.lang.String startegy, BulkObjectStoreRequest bulkObjectStoreRequest)
protected void
storeStorageInfos(java.util.List<MapOfObjects> mapOfObjectsList, java.util.Map<java.lang.String,BulkObjectStoreResponse> resultByStrategy, java.util.Map<java.lang.String,java.lang.String> strategiesByObjectId)
protected void
updateSubTasksAndTasksFromStorageInfos(java.util.Map<java.lang.String,BulkObjectStoreResponse> resultsByStrategy, java.util.List<java.util.Map<java.lang.String,ItemStatus>> itemStatusByObjectList, java.util.List<ItemStatus> itemStatusList)
detailsFromStorageInfo, get storage details as JSON String from storageInfo result-
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, execute, executeList
-
-
-
-
Constructor Detail
-
StoreObjectActionHandler
public StoreObjectActionHandler(StorageClientFactory storageClientFactory)
-
-
Method Detail
-
storeObject
protected StoredInfoResult storeObject(java.lang.String strategyId, ObjectDescription description, ItemStatus itemStatus)
The function is used for retrieving ObjectGroup in workspace and storing metaData in storage offer- Parameters:
strategyId
- the object's storage strategydescription
- the object descriptionitemStatus
- item status- Returns:
- StoredInfoResult
-
storeObjects
protected BulkObjectStoreResponse storeObjects(java.lang.String startegy, BulkObjectStoreRequest bulkObjectStoreRequest) throws StorageNotFoundClientException, StorageServerClientException, StorageAlreadyExistsClientException
-
storeStorageInfos
protected void storeStorageInfos(java.util.List<MapOfObjects> mapOfObjectsList, java.util.Map<java.lang.String,BulkObjectStoreResponse> resultByStrategy, java.util.Map<java.lang.String,java.lang.String> strategiesByObjectId)
-
updateSubTasksAndTasksFromStorageInfos
protected void updateSubTasksAndTasksFromStorageInfos(java.util.Map<java.lang.String,BulkObjectStoreResponse> resultsByStrategy, java.util.List<java.util.Map<java.lang.String,ItemStatus>> itemStatusByObjectList, java.util.List<ItemStatus> itemStatusList)
detailsFromStorageInfo, get storage details as JSON String from storageInfo result- Parameters:
resultsByStrategy
-itemStatusByObjectList
-itemStatusList
-
-
-