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,AutoCloseable
- Direct Known Subclasses:
StoreMetadataObjectActionHandler,StoreObjectGroupActionPlugin
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StoredInfoResultstoreObject(String strategyId, ObjectDescription description, ItemStatus itemStatus) The function is used for retrieving ObjectGroup in workspace and storing metaData in storage offerprotected BulkObjectStoreResponsestoreObjects(String startegy, BulkObjectStoreRequest bulkObjectStoreRequest) protected voidstoreStorageInfos(List<MapOfObjects> mapOfObjectsList, Map<String, BulkObjectStoreResponse> resultByStrategy, Map<String, String> strategiesByObjectId) protected voidupdateSubTasksAndTasksFromStorageInfos(Map<String, BulkObjectStoreResponse> resultsByStrategy, List<Map<String, ItemStatus>> itemStatusByObjectList, List<ItemStatus> itemStatusList) detailsFromStorageInfo, get storage details as JSON String from storageInfo resultMethods inherited from class fr.gouv.vitam.worker.core.handler.ActionHandler
checkMandatoryParameters, close, updateDetailItemStatusMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface fr.gouv.vitam.worker.core.api.WorkerAction
checkMandatoryIOParameter, execute, executeList
-
Constructor Details
-
StoreObjectActionHandler
-
-
Method Details
-
storeObject
protected StoredInfoResult storeObject(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(String startegy, BulkObjectStoreRequest bulkObjectStoreRequest) throws StorageNotFoundClientException, StorageServerClientException, StorageAlreadyExistsClientException -
storeStorageInfos
protected void storeStorageInfos(List<MapOfObjects> mapOfObjectsList, Map<String, BulkObjectStoreResponse> resultByStrategy, Map<String, String> strategiesByObjectId) -
updateSubTasksAndTasksFromStorageInfos
protected void updateSubTasksAndTasksFromStorageInfos(Map<String, BulkObjectStoreResponse> resultsByStrategy, List<Map<String, ItemStatus>> itemStatusByObjectList, List<ItemStatus> itemStatusList) detailsFromStorageInfo, get storage details as JSON String from storageInfo result- Parameters:
resultsByStrategy-itemStatusByObjectList-itemStatusList-
-