/** * Updates the blob's properties to the storage service. * <p> * Use {@link CloudBlob#downloadAttributes} to retrieve the latest values for the blob's properties and metadata * from the Microsoft Azure storage service. * * @throws StorageException * If a storage service error occurred. */ @DoesServiceRequest public final void uploadProperties() throws StorageException { this.uploadProperties(null /* accessCondition */, null /* options */, null /*opContext */); }
public void uploadProperties(OperationContext opContext) throws StorageException { getBlob().uploadProperties(null, null, opContext); }
public void uploadProperties(OperationContext opContext) throws StorageException { getBlob().uploadProperties(null, null, opContext); }
/** * Updates the blob's properties to the storage service. * <p> * Use {@link CloudBlob#downloadAttributes} to retrieve the latest values for the blob's properties and metadata * from the Microsoft Azure storage service. * * @throws StorageException * If a storage service error occurred. */ @DoesServiceRequest public final void uploadProperties() throws StorageException { this.uploadProperties(null /* accessCondition */, null /* options */, null /*opContext */); }
public void uploadProperties(OperationContext opContext, SelfRenewingLease lease) throws StorageException { // Include lease in request if lease not null. getBlob().uploadProperties(getLeaseCondition(lease), null, opContext); }
public void uploadProperties(OperationContext opContext, SelfRenewingLease lease) throws StorageException { // Include lease in request if lease not null. getBlob().uploadProperties(getLeaseCondition(lease), null, opContext); }
/** * Commits the blob, for block blob this uploads the block list. * * @throws StorageException * An exception representing any error which occurred during the operation. */ @DoesServiceRequest private synchronized void commit() throws StorageException { if (this.options.getStoreBlobContentMD5()) { this.parentBlobRef.getProperties().setContentMD5(Base64.encode(this.md5Digest.digest())); } if (this.streamType == BlobType.BLOCK_BLOB) { // wait for all blocks to finish final CloudBlockBlob blobRef = (CloudBlockBlob) this.parentBlobRef; blobRef.commitBlockList(this.blockList, this.accessCondition, this.options, this.opContext); } else if (this.options.getStoreBlobContentMD5()) { this.parentBlobRef.uploadProperties(this.accessCondition, this.options, this.opContext); } }
/** * Commits the blob, for block blob this uploads the block list. * * @throws StorageException * An exception representing any error which occurred during the operation. */ @DoesServiceRequest private synchronized void commit() throws StorageException { if (this.options.getStoreBlobContentMD5()) { this.parentBlobRef.getProperties().setContentMD5(Base64.encode(this.md5Digest.digest())); } if (this.streamType == BlobType.BLOCK_BLOB) { // wait for all blocks to finish final CloudBlockBlob blobRef = (CloudBlockBlob) this.parentBlobRef; blobRef.commitBlockList(this.blockList, this.accessCondition, this.options, this.opContext); } else if (this.options.getStoreBlobContentMD5()) { this.parentBlobRef.uploadProperties(this.accessCondition, this.options, this.opContext); } }
blobSnapshot.uploadProperties(); fail("Expect an IllegalArgumentException from uploadProperties");
blobSnapshot.uploadProperties(); fail("Expect an IllegalArgumentException from uploadProperties"); } catch (IllegalArgumentException e) {
blobSnapshot.uploadProperties(); fail("Expect an IllegalArgumentException from uploadProperties");