public interface Connection extends AutoCloseable
myDriver.connect(serviceUrl, parameters);
AutoCloseable so the connection implementation MUST provide a close() method which
responsibility is to cleanly close and remove.| Modifier and Type | Method and Description |
|---|---|
StorageBulkPutResult |
bulkPutObjects(StorageBulkPutRequest request)
Bulk put object files into the storage offer.
|
void |
close()
Override AutoCloseable implementation to specify the exception
|
RequestResponse<TapeReadRequestReferentialEntity> |
createReadOrderRequest(StorageObjectRequest request)
Asynchronous retrieve an object from the storage offer based on criterias defined in request argument.
|
StorageMetadataResult |
getMetadatas(StorageGetMetadataRequest request)
Get metadata of object
|
StorageGetResult |
getObject(StorageObjectRequest request)
Retrieve an object from the storage offer based on criterias defined in request argument.
|
RequestResponse<OfferLog> |
getOfferLogs(StorageOfferLogRequest request)
Get a listing of offer logs on a container type
|
RequestResponse<TapeReadRequestReferentialEntity> |
getReadOrderRequest(String readOrderRequestId,
int tenant) |
StorageCapacityResult |
getStorageCapacity(Integer tenantId)
Retrieve the remaining storage capacity available on the distant offer.
|
RequestResponse<com.fasterxml.jackson.databind.JsonNode> |
listObjects(StorageListRequest request)
List object on a container type
|
boolean |
objectExistsInOffer(StorageObjectRequest request)
Check if an object is present in the offer
|
StoragePutResult |
putObject(StoragePutRequest request)
Put the object file into the storage offer based on criterias defined in request argument and underlaying
connection parameters.
|
StorageRemoveResult |
removeObject(StorageRemoveRequest request)
Delete an object on the distant storage offer.
|
void |
removeReadOrderRequest(String readOrderRequestId,
int tenant) |
StorageCapacityResult getStorageCapacity(Integer tenantId) throws StorageDriverPreconditionFailedException, StorageDriverNotFoundException, StorageDriverException
tenantId - the tenant id needed to get storage capacityStorageDriverPreconditionFailedException - if a bad request is encounteredStorageDriverNotFoundException - if container is not foundStorageDriverException - if any problem occurs during requestStorageGetResult getObject(StorageObjectRequest request) throws StorageDriverException
request - the request to send. It contains informations needed to retrieve a given object.StorageDriverException - if any problem occurs during requestIllegalArgumentException - if request is wrongRequestResponse<TapeReadRequestReferentialEntity> createReadOrderRequest(StorageObjectRequest request) throws StorageDriverException
request - the request to send. It contains informations needed to retrieve a given object.StorageDriverException - if any problem occurs during requestIllegalArgumentException - if request is wrongRequestResponse<TapeReadRequestReferentialEntity> getReadOrderRequest(String readOrderRequestId, int tenant) throws StorageDriverException
StorageDriverExceptionvoid removeReadOrderRequest(String readOrderRequestId, int tenant) throws StorageDriverException
StorageDriverExceptionStoragePutResult putObject(StoragePutRequest request) throws StorageDriverException
request - the request to send. It may contains informations needed to store the file.StorageDriverException - if any problem occurs during requestStorageBulkPutResult bulkPutObjects(StorageBulkPutRequest request) throws StorageDriverException
StorageDriverException - if any problem occurs during requestStorageRemoveResult removeObject(StorageRemoveRequest request) throws StorageDriverException
request - the request to send, it contains information needed to delete an object on the distant storeStorageDriverException - if any problem occurs during requestboolean objectExistsInOffer(StorageObjectRequest request) throws StorageDriverException
request - the request to send. It contains informations needed to retrieve a given object.StorageDriverException - if any problem occurs during requestStorageMetadataResult getMetadatas(StorageGetMetadataRequest request) throws StorageDriverException
request - StorageDriverExceptionRequestResponse<com.fasterxml.jackson.databind.JsonNode> listObjects(StorageListRequest request) throws StorageDriverException
request - the request contains data needed to list container typeStorageDriverExceptionRequestResponse<OfferLog> getOfferLogs(StorageOfferLogRequest request) throws StorageDriverException
request - the request contains data needed to retrieve the listing of the containerStorageDriverException - to be thrown in case of any driver exceptionvoid close()
throws StorageDriverException
close in interface AutoCloseableStorageDriverException - to be thrown in case of any driver exceptionCopyright © 2019 Vitam. All rights reserved.