Search in sources :

Example 6 with ListOperationRequest

use of com.instaclustr.esop.impl.list.ListOperationRequest in project esop by instaclustr.

the class GoogleListingAndBackupRemovalTest method destroy.

@Override
public void destroy() throws Exception {
    try {
        FileUtils.deleteDirectory(cassandraDir);
    } catch (final Exception ex) {
        logger.error("Unable to remove Cassandra dir " + cassandraDir);
    }
    try {
        ListOperationRequest request = new ListOperationRequest();
        request.storageLocation = new StorageLocation(getStorageLocation());
        new GCPBucketService(storageFactory, request).delete(BUCKET_NAME);
    } catch (final Exception ex) {
        logger.error("Unable to remove bucket " + BUCKET_NAME);
    }
}
Also used : GCPBucketService(com.instaclustr.esop.gcp.GCPBucketService) ListOperationRequest(com.instaclustr.esop.impl.list.ListOperationRequest) StorageLocation(com.instaclustr.esop.impl.StorageLocation)

Aggregations

StorageLocation (com.instaclustr.esop.impl.StorageLocation)6 ListOperationRequest (com.instaclustr.esop.impl.list.ListOperationRequest)6 Path (java.nio.file.Path)3 AzureBucketService (com.instaclustr.esop.azure.AzureBucketService)1 GCPBucketService (com.instaclustr.esop.gcp.GCPBucketService)1 S3BucketService (com.instaclustr.esop.s3.aws.S3BucketService)1