/** * This implementation invokes {@link AtmosClient#headFile} */ @Override public BlobMetadata blobMetadata(String container, String key) { return object2BlobMd.apply(sync.headFile(container + "/" + key)); }
/** * This implementation invokes {@link AtmosClient#headFile} */ @Override public BlobMetadata blobMetadata(String container, String key) { return object2BlobMd.apply(sync.headFile(container + "/" + key)); }
/** * This implementation invokes {@link AtmosClient#headFile} */ @Override public BlobMetadata blobMetadata(String container, String key) { return object2BlobMd.apply(sync.headFile(container + "/" + key)); }
/** * This implementation invokes {@link AtmosClient#headFile} */ @Override public BlobMetadata blobMetadata(String container, String key) { return object2BlobMd.apply(sync.headFile(container + "/" + key)); }
/** * This implementation invokes {@link AtmosClient#headFile} */ @Override public BlobMetadata blobMetadata(String container, String key) { return object2BlobMd.apply(sync.headFile(container + "/" + key)); }
/** * This implementation invokes {@link AtmosClient#headFile} */ @Override public BlobMetadata blobMetadata(String container, String key) { return object2BlobMd.apply(sync.headFile(container + "/" + key)); }
/** * This implementation invokes {@link AtmosClient#headFile} */ @Override public BlobMetadata blobMetadata(String container, String key) { return object2BlobMd.apply(sync.headFile(container + "/" + key)); }
private static void verifyHeadObject(AtmosClient connection, String path, String metadataValue) throws InterruptedException, ExecutionException, TimeoutException, IOException { AtmosObject getBlob = connection.headFile(path); assertEquals(Strings2.toString(getBlob.getPayload()), ""); verifyMetadata(metadataValue, getBlob); }
private static void verifyHeadObject(AtmosClient connection, String path, String metadataValue) throws InterruptedException, ExecutionException, TimeoutException, IOException { AtmosObject getBlob = connection.headFile(path); assertEquals(Strings2.toStringAndClose(getBlob.getPayload().openStream()), ""); verifyMetadata(metadataValue, getBlob); }
} else if (apiMetadata instanceof AtmosApiMetadata) { AtmosClient api = context.unwrapApi(AtmosClient.class); object = api.headFile(containerName + "/" + blobName); } else if (apiMetadata instanceof GoogleCloudStorageApiMetadata) { GoogleCloudStorageApi api = context.unwrapApi(GoogleCloudStorageApi.class);