public interface StorageClient extends BasicClient
STATUS_URL| Modifier and Type | Method and Description |
|---|---|
BulkObjectStoreResponse |
bulkStoreFilesFromWorkspace(String strategyId,
BulkObjectStoreRequest bulkObjectStoreRequest)
Store objects available in workspace into offers
|
RequestResponseOK |
copyObjectToOneOfferAnother(String objectId,
DataCategory category,
String source,
String destination,
String strategyId) |
RequestResponseOK |
create(String strategyId,
String objectId,
DataCategory category,
InputStream inputStream,
Long inputStreamSize,
List<String> offerIds) |
boolean |
delete(String strategyId,
DataCategory type,
String guid)
Delete an object of given type in the storage offer strategy
|
boolean |
delete(String strategyId,
DataCategory type,
String guid,
List<String> offerIds)
Delete an object of given type in the storage offer strategy
|
Map<String,Boolean> |
exists(String strategyId,
DataCategory type,
String guid,
List<String> offerIds)
Check the existence of an object in storage by its id and type
DataCategory. |
boolean |
existsContainer(String strategyId)
Check the existance of a tenant container in storage by its id
|
RequestResponse<BatchObjectInformationResponse> |
getBatchObjectInformation(String strategyId,
DataCategory type,
Collection<String> offerIds,
Collection<String> objectIds)
Get object information from objects in storage
|
javax.ws.rs.core.Response |
getContainerAsync(String strategyId,
String guid,
DataCategory type,
AccessLogInfoModel logInfo)
Retrieves a binary object knowing its guid as an inputStream for a specific tenant/strategy
|
com.fasterxml.jackson.databind.JsonNode |
getInformation(String strategyId,
DataCategory type,
String guid,
List<String> offerIds,
boolean noCache)
Get object information from objects in storage
|
RequestResponse<OfferLog> |
getOfferLogs(String strategyId,
DataCategory type,
Long offset,
int limit,
Order order)
Get offer log .
|
List<String> |
getOffers(String strategyId)
get List of offers for a strategy
|
com.fasterxml.jackson.databind.JsonNode |
getStorageInformation(String strategyId)
Check if the storage of objects could be done, knowing a required size
|
RequestResponse<StorageStrategy> |
getStorageStrategies()
Get strategies.
|
VitamRequestIterator<com.fasterxml.jackson.databind.JsonNode> |
listContainer(String strategyId,
DataCategory type)
List object type in container
|
RequestResponseOK |
storageAccessLogBackup()
Call storage accesslog backup operation.
|
RequestResponseOK |
storageLogBackup()
Call storage log backup operation.
|
RequestResponseOK |
storageLogTraceability()
Call storage log traceability operation.
|
StoredInfoResult |
storeFileFromWorkspace(String strategyId,
DataCategory type,
String guid,
ObjectDescription description)
Store an object available in workspace by its vitam guid
|
checkStatus, checkStatus, close, consumeAnyEntityAndClose, getResourcePath, getServiceUrlcom.fasterxml.jackson.databind.JsonNode getStorageInformation(String strategyId) throws StorageNotFoundClientException, StorageServerClientException
strategyId - the storage strategy idStorageNotFoundClientException - if the Server got a NotFound resultStorageServerClientException - if the Server got an internal errorList<String> getOffers(String strategyId) throws StorageNotFoundClientException, StorageServerClientException
strategyId - strategyIdStorageNotFoundClientExceptionStorageServerClientExceptionStoredInfoResult storeFileFromWorkspace(String strategyId, DataCategory type, String guid, ObjectDescription description) throws StorageAlreadyExistsClientException, StorageNotFoundClientException, StorageServerClientException
strategyId - the storage strategy idtype - the type of object collectionguid - vitam guiddescription - object descriptionStorageAlreadyExistsClientException - if the Server got a CONFLICT status resultStorageNotFoundClientException - if the Server got a NotFound resultStorageServerClientException - if the Server got an internal errorBulkObjectStoreResponse bulkStoreFilesFromWorkspace(String strategyId, BulkObjectStoreRequest bulkObjectStoreRequest) throws StorageAlreadyExistsClientException, StorageNotFoundClientException, StorageServerClientException
strategyId - the storage strategy idbulkObjectStoreRequest - requestStorageAlreadyExistsClientException - if the Server got a CONFLICT status resultStorageNotFoundClientException - if the Server got a NotFound resultStorageServerClientException - if the Server got an internal errorboolean existsContainer(String strategyId) throws StorageServerClientException
strategyId - the storage strategy idStorageServerClientException - if the Server got an internal errorMap<String,Boolean> exists(String strategyId, DataCategory type, String guid, List<String> offerIds) throws StorageServerClientException
DataCategory.strategyId - the storage strategy idtype - the type of object collectionguid - vitam guidStorageServerClientException - if the Server got an internal errorboolean delete(String strategyId, DataCategory type, String guid) throws StorageServerClientException
strategyId - the storage strategy idtype - the type of object collectionguid - vitam guidStorageServerClientException - if the Server got an internal errorboolean delete(String strategyId, DataCategory type, String guid, List<String> offerIds) throws StorageServerClientException
strategyId - the storage strategy idtype - the type of object collectionguid - vitam guidofferIds - offers ids to deleteStorageServerClientExceptionjavax.ws.rs.core.Response getContainerAsync(String strategyId, String guid, DataCategory type, AccessLogInfoModel logInfo) throws StorageServerClientException, StorageNotFoundException
strategyId - the storage strategy idguid - vitam guid of the object to be returnedtype - the object type to listlogInfo - additional information for accessLogStorageServerClientException - if the Server got an internal errorStorageNotFoundException - if the Server got a NotFound result, if the container or the object does not
existVitamRequestIterator<com.fasterxml.jackson.databind.JsonNode> listContainer(String strategyId, DataCategory type) throws StorageServerClientException
strategyId - the strategy IDtype - the object type to listStorageServerClientException - thrown if the server got an internal errorRequestResponseOK storageAccessLogBackup() throws StorageServerClientException, InvalidParseOperationException
StorageServerClientExceptionInvalidParseOperationExceptionRequestResponseOK storageLogBackup() throws StorageServerClientException, InvalidParseOperationException
StorageServerClientException - StorageServerClientExceptionInvalidParseOperationException - InvalidParseOperationExceptionRequestResponseOK storageLogTraceability() throws StorageServerClientException, InvalidParseOperationException
StorageServerClientException - StorageServerClientExceptionInvalidParseOperationException - InvalidParseOperationExceptioncom.fasterxml.jackson.databind.JsonNode getInformation(String strategyId, DataCategory type, String guid, List<String> offerIds, boolean noCache) throws StorageServerClientException, StorageNotFoundClientException
strategyId - the storage strategy idtype - the object type to listguid - vitam guidofferIds - offers ids to deletenoCache - noCache forces digest computation.StorageServerClientException - StorageServerClientExceptionStorageNotFoundClientException - StorageNotFoundClientExceptionRequestResponse<BatchObjectInformationResponse> getBatchObjectInformation(String strategyId, DataCategory type, Collection<String> offerIds, Collection<String> objectIds) throws StorageServerClientException
strategyId - the storage strategy idtype - the object type to listofferIds - offers idsobjectIds - list of object idsStorageServerClientException - StorageServerClientExceptionRequestResponseOK copyObjectToOneOfferAnother(String objectId, DataCategory category, String source, String destination, String strategyId) throws StorageServerClientException, InvalidParseOperationException
objectId - objectIdcategory - categorysource - sourcedestination - destinationstrategyId - strategyIdStorageServerClientException - StorageServerClientExceptionInvalidParseOperationException - StorageServerClientExceptionRequestResponseOK create(String strategyId, String objectId, DataCategory category, InputStream inputStream, Long inputStreamSize, List<String> offerIds) throws StorageServerClientException, InvalidParseOperationException
strategyId - strategyIdobjectId - objectIdcategory - categoryinputStream - inputStreaminputStreamSize - inputStreamSizeofferIds - offers idsStorageServerClientException - StorageServerClientExceptionInvalidParseOperationException - InvalidParseOperationExceptionRequestResponse<OfferLog> getOfferLogs(String strategyId, DataCategory type, Long offset, int limit, Order order) throws StorageServerClientException
strategyId - the strategy to get offerstype - the object type to listoffset - offset of the last object beforelimit - the number of result wantedorder - the order orderStorageServerClientExceptionRequestResponse<StorageStrategy> getStorageStrategies() throws StorageServerClientException
StorageServerClientExceptionCopyright © 2019 Vitam. All rights reserved.