use of com.instaclustr.esop.impl.RemoteObjectReference in project esop by instaclustr.
the class AzureRestorer method delete.
@Override
public void delete(Path objectKey, boolean nodeAware) throws Exception {
RemoteObjectReference remoteObjectReference;
if (nodeAware) {
remoteObjectReference = objectKeyToNodeAwareRemoteReference(objectKey);
} else {
remoteObjectReference = objectKeyToRemoteReference(objectKey);
}
logger.info("Non dry: " + Paths.get(request.storageLocation.bucket, remoteObjectReference.canonicalPath));
((AzureRemoteObjectReference) remoteObjectReference).blob.delete();
}
Aggregations