public interface StorageClient extends BasicClient
STATUS_URL| Modifier and Type | Method and Description |
|---|---|
RequestResponseOK |
copyObjectToOneOfferAnother(String objectId,
DataCategory category,
String source,
String destination) |
RequestResponseOK |
create(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
|
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,
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)
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
|
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 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 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) throws StorageServerClientException, StorageNotFoundClientException
strategyId - the storage strategy idtype - the object type to listguid - vitam guidofferIds - offers ids to deleteStorageServerClientException - StorageServerClientExceptionStorageNotFoundClientException - StorageNotFoundClientExceptionRequestResponseOK copyObjectToOneOfferAnother(String objectId, DataCategory category, String source, String destination) throws StorageServerClientException, InvalidParseOperationException
objectId - objectIdcategory - categorysource - sourcedestination - destinationStorageServerClientException - StorageServerClientExceptionInvalidParseOperationException - StorageServerClientExceptionRequestResponseOK create(String objectId, DataCategory category, InputStream inputStream, Long inputStreamSize, List<String> offerIds) throws StorageServerClientException, InvalidParseOperationException
objectId - 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 orderStorageServerClientExceptionCopyright © 2018 Vitam. All rights reserved.