use of com.instaclustr.esop.impl.list.ListOperationRequest in project esop by instaclustr.
the class BaseS3Restorer method listManifests.
@Override
public List<Manifest> listManifests() throws Exception {
// If skipDownload flag is not set, download manifests
if (this.request instanceof ListOperationRequest) {
if (!((ListOperationRequest) this.request).skipDownload) {
StorageLocation location = this.localFileRestorer.getStorageLocation();
Path downloadDirectory = location.fileBackupDirectory.resolve(this.localFileRestorer.getStorageLocation().bucket);
downloadManifestsToDirectory(downloadDirectory);
}
}
return localFileRestorer.listManifests();
}
use of com.instaclustr.esop.impl.list.ListOperationRequest in project esop by instaclustr.
the class GCPRestorer method listManifests.
@Override
public List<Manifest> listManifests() throws Exception {
// If skipDownload flag is not set, download manifests
if (this.request instanceof ListOperationRequest) {
if (!((ListOperationRequest) this.request).skipDownload) {
StorageLocation location = this.localFileRestorer.getStorageLocation();
Path downloadDirectory = location.fileBackupDirectory.resolve(this.localFileRestorer.getStorageLocation().bucket);
downloadManifestsToDirectory(downloadDirectory);
}
}
return localFileRestorer.listManifests();
}
use of com.instaclustr.esop.impl.list.ListOperationRequest in project esop by instaclustr.
the class AzureRestorer method listManifests.
@Override
public List<Manifest> listManifests() throws Exception {
// If skipDownload flag is not set, download manifests
if (this.request instanceof ListOperationRequest) {
if (!((ListOperationRequest) this.request).skipDownload) {
StorageLocation location = this.localFileRestorer.getStorageLocation();
Path downloadDirectory = location.fileBackupDirectory.resolve(this.localFileRestorer.getStorageLocation().bucket);
downloadManifestsToDirectory(downloadDirectory);
}
}
return localFileRestorer.listManifests();
}
use of com.instaclustr.esop.impl.list.ListOperationRequest in project esop by instaclustr.
the class S3ListingAndBackupRemovalTest 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 S3BucketService(transferManagerFactory, request).delete(BUCKET_NAME);
} catch (final Exception ex) {
logger.error("Unable to remove bucket " + BUCKET_NAME);
}
}
use of com.instaclustr.esop.impl.list.ListOperationRequest in project esop by instaclustr.
the class AzureListingAndBackupRemovalTest 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 AzureBucketService(cloudStorageAccountFactory, request).delete(BUCKET_NAME);
} catch (final Exception ex) {
logger.error("Unable to remove bucket " + BUCKET_NAME);
}
}
Aggregations