Java Code Examples for com.microsoft.azure.storage.blob.BlobRequestOptions#setUseTransactionalContentMD5()

The following examples show how to use com.microsoft.azure.storage.blob.BlobRequestOptions#setUseTransactionalContentMD5() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AzureNativeFileSystemStore.java    From hadoop with Apache License 2.0 5 votes vote down vote up
private BlobRequestOptions getUploadOptions() {
  BlobRequestOptions options = new BlobRequestOptions();
  options.setStoreBlobContentMD5(sessionConfiguration.getBoolean(
      KEY_STORE_BLOB_MD5, false));
  options.setUseTransactionalContentMD5(getUseTransactionalContentMD5());
  options.setConcurrentRequestCount(concurrentWrites);

  options.setRetryPolicyFactory(new RetryExponentialRetry(minBackoff,
      deltaBackoff, maxBackoff, maxRetries));

  return options;
}
 
Example 2
Source File: AzureNativeFileSystemStore.java    From hadoop with Apache License 2.0 5 votes vote down vote up
private BlobRequestOptions getDownloadOptions() {
  BlobRequestOptions options = new BlobRequestOptions();
  options.setRetryPolicyFactory(
        new RetryExponentialRetry(minBackoff, deltaBackoff, maxBackoff, maxRetries));
  options.setUseTransactionalContentMD5(getUseTransactionalContentMD5());
  return options;
}
 
Example 3
Source File: AzureNativeFileSystemStore.java    From big-c with Apache License 2.0 5 votes vote down vote up
private BlobRequestOptions getUploadOptions() {
  BlobRequestOptions options = new BlobRequestOptions();
  options.setStoreBlobContentMD5(sessionConfiguration.getBoolean(
      KEY_STORE_BLOB_MD5, false));
  options.setUseTransactionalContentMD5(getUseTransactionalContentMD5());
  options.setConcurrentRequestCount(concurrentWrites);

  options.setRetryPolicyFactory(new RetryExponentialRetry(minBackoff,
      deltaBackoff, maxBackoff, maxRetries));

  return options;
}
 
Example 4
Source File: AzureNativeFileSystemStore.java    From big-c with Apache License 2.0 5 votes vote down vote up
private BlobRequestOptions getDownloadOptions() {
  BlobRequestOptions options = new BlobRequestOptions();
  options.setRetryPolicyFactory(
        new RetryExponentialRetry(minBackoff, deltaBackoff, maxBackoff, maxRetries));
  options.setUseTransactionalContentMD5(getUseTransactionalContentMD5());
  return options;
}
 
Example 5
Source File: PageBlobFormatHelpers.java    From hadoop with Apache License 2.0 4 votes vote down vote up
public static BlobRequestOptions withMD5Checking() {
  BlobRequestOptions options = new BlobRequestOptions();
  options.setUseTransactionalContentMD5(true);
  return options;
}
 
Example 6
Source File: PageBlobFormatHelpers.java    From big-c with Apache License 2.0 4 votes vote down vote up
public static BlobRequestOptions withMD5Checking() {
  BlobRequestOptions options = new BlobRequestOptions();
  options.setUseTransactionalContentMD5(true);
  return options;
}