public interface StorageClient extends BasicClient
STATUS_URL| Modifier and Type | Method and Description |
|---|---|
boolean |
delete(String strategyId,
DataCategory type,
String guid,
String digest,
DigestType digestAlgorithm)
Delete an object of given type in the storage offer strategy
|
boolean |
deleteContainer(String strategyId)
Delete a container in the storage offer strategy A non-empty container CANNOT be deleted !
|
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
|
javax.ws.rs.core.Response |
getContainerAsync(String strategyId,
String guid,
DataCategory type)
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)
Get object information from objects in storage
|
RequestResponse<OfferLog> |
getOfferLogs(String strategyId,
DataCategory type,
Long offset,
int limit,
Order order)
Get offer log .
|
com.fasterxml.jackson.databind.JsonNode |
getStorageInformation(String strategyId)
Check if the storage of objects could be done, knowing a required size
|
VitamRequestIterator<com.fasterxml.jackson.databind.JsonNode> |
listContainer(String strategyId,
DataCategory type)
List object type in container
|
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 errorStoredInfoResult 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 errorboolean existsContainer(String strategyId) throws StorageServerClientException
strategyId - the storage strategy idStorageServerClientException - if the Server got an internal errorboolean 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 deleteContainer(String strategyId) throws StorageServerClientException
strategyId - the storage strategy idStorageServerClientException - if the Server got an internal errorboolean delete(String strategyId, DataCategory type, String guid, String digest, DigestType digestAlgorithm) throws StorageServerClientException
strategyId - the storage strategy idtype - the type of object collectionguid - vitam guiddigest - the digest to be compared withdigestAlgorithm - the digest AlgorithmStorageServerClientException - if the Server got an internal errorjavax.ws.rs.core.Response getContainerAsync(String strategyId, String guid, DataCategory type) throws StorageServerClientException, StorageNotFoundException
strategyId - the storage strategy idguid - vitam guid of the object to be returnedtype - StorageServerClientException - 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 storageLogBackup() throws StorageServerClientException, InvalidParseOperationException
StorageServerClientExceptionInvalidParseOperationExceptionRequestResponseOK storageLogTraceability() throws StorageServerClientException, InvalidParseOperationException
StorageServerClientExceptionInvalidParseOperationExceptioncom.fasterxml.jackson.databind.JsonNode getInformation(String strategyId, DataCategory type, String guid, List<String> offerIds) throws StorageServerClientException, StorageNotFoundClientException
strategyId - type - guid - offerIds - StorageServerClientExceptionStorageNotFoundClientExceptionRequestResponse<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 orderStorageServerClientExceptionCopyright © 2018 Vitam. All rights reserved.