Class AccessorBucketApiClient
java.lang.Object
io.clonecloudstore.common.quarkus.client.SimpleClientAbstract<AccessorBucketApi>
io.clonecloudstore.accessor.client.AccessorBucketApiClient
- All Implemented Interfaces:
Closeable
,AutoCloseable
Client for Accessor Bucket
-
Field Summary
Fields inherited from class io.clonecloudstore.common.quarkus.client.SimpleClientAbstract
exceptionMapper, MDC_COMPRESSED_CONTENT, MDC_COMPRESSED_RESPONSE, MDC_QUERY_HEADERS
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Constructor used by the Factory -
Method Summary
Modifier and TypeMethodDescriptioncheckBucket
(String bucketName, String clientId) createBucket
(String bucketName, String clientId) boolean
deleteBucket
(String bucketName, String clientId) getBuckets
(String clientId) Methods inherited from class io.clonecloudstore.common.quarkus.client.SimpleClientAbstract
acceptCompression, bodyCompressed, close, getCompressionStatusFromHeaders, getDtoFromHeaders, getFactory, getHeadersMap, getMdcOpId, getOpId, getService, getUri, isAcceptCompression, isBodyCompressed, reopen, resetMdcOpId, resetQueryContext, setCompressionStatusFromHeaders, setDtoFromHeaders, setHeadersMap, setMdcOpId, setOpId
-
Constructor Details
-
AccessorBucketApiClient
Constructor used by the Factory
-
-
Method Details
-
getBuckets
- Returns:
- the collection of Buckets
- Throws:
CcsWithStatusException
-
checkBucket
- Returns:
- the StorageType for this Bucket
- Throws:
CcsWithStatusException
-
getBucket
- Returns:
- the Bucket Metadata
- Throws:
CcsWithStatusException
-
createBucket
public AccessorBucket createBucket(String bucketName, String clientId) throws CcsWithStatusException - Returns:
- the DTO if the Bucket is created
- Throws:
CcsWithStatusException
-
deleteBucket
- Returns:
- True if deleted (or already deleted), else False or an exception
- Throws:
CcsWithStatusException
-