Package org.jclouds.azureblob.blobstore
Class AzureBlobStore
java.lang.Object
org.jclouds.blobstore.internal.BaseBlobStore
org.jclouds.azureblob.blobstore.AzureBlobStore
- All Implemented Interfaces:
BlobStore
-
Field Summary
Fields inherited from class org.jclouds.blobstore.internal.BaseBlobStore
blobUtils, context, defaultLocation, locations, slicer
-
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
blobExists
(String container, String key) This implementation invokesAzureBlobClient.blobExists(java.lang.String, java.lang.String)
blobMetadata
(String container, String key) This implementation invokesAzureBlobClient.getBlobProperties(java.lang.String, java.lang.String)
completeMultipartUpload
(MultipartUpload mpu, List<MultipartPart> parts) boolean
containerExists
(String container) This implementation invokesinvalid reference
AzureBlobClient#bucketExists
copyBlob
(String fromContainer, String fromName, String toContainer, String toName, CopyOptions options) Copy blob from one container to another.boolean
createContainerInLocation
(Location location, String container) This implementation invokesinvalid reference
AzureBlobClient#putBucketInRegion
boolean
createContainerInLocation
(Location location, String container, CreateContainerOptions options) protected boolean
deleteAndVerifyContainerGone
(String container) Delete a container if it is empty.void
deleteContainer
(String container) This implementation invokesAzureBlobClient.deleteContainer(java.lang.String)
getBlob
(String container, String key, GetOptions options) This implementation invokesAzureBlobClient.getBlob(java.lang.String, java.lang.String, org.jclouds.http.options.GetOptions...)
getBlobAccess
(String container, String key) getBlockList
(String container, String name) Get Block ID List for a blobgetContainerAccess
(String container) long
int
long
initiateMultipartUpload
(String container, BlobMetadata blobMetadata, PutOptions options) PageSet
<? extends StorageMetadata> list()
This implementation invokesAzureBlobClient.listContainers(org.jclouds.azure.storage.options.ListOptions...)
PageSet
<? extends StorageMetadata> list
(String container, ListContainerOptions options) This implementation invokesAzureBlobClient.listBlobs(java.lang.String, org.jclouds.azureblob.options.ListBlobsOptions...)
listMultipartUploads
(String container) This implementation invokesinvalid reference
AzureBlobClient#putObject
putBlob
(String container, Blob blob, PutOptions options) This implementation invokesinvalid reference
AzureBlobClient#putObject
void
The Put Block operation creates a block blob on Azure which can be later assembled into a single, large blob object with the Put Block List operation.putBlockList
(String container, String name, List<String> blockIdList) The Put Block operation creates a block blob on Azure which can be later assembled into a single, large blob object with the Put Block List operation.void
removeBlob
(String container, String key) This implementation invokesinvalid reference
AzureBlobClient#deleteObject
void
setBlobAccess
(String container, String key, BlobAccess access) void
setContainerAccess
(String container, ContainerAccess access) streamBlob
(String container, String name) uploadMultipartPart
(MultipartUpload mpu, int partNumber, Payload payload) Methods inherited from class org.jclouds.blobstore.internal.BaseBlobStore
blobBuilder, clearContainer, clearContainer, countBlobs, countBlobs, createDirectory, deleteContainerIfEmpty, deleteDirectory, deletePathAndEnsureGone, directoryExists, downloadBlob, downloadBlob, getBlob, getContext, list, listAssignableLocations, putMultipartBlob, putMultipartBlob, removeBlobs, streamBlob
-
Method Details
-
list
This implementation invokesAzureBlobClient.listContainers(org.jclouds.azure.storage.options.ListOptions...)
-
containerExists
This implementation invokesinvalid reference
AzureBlobClient#bucketExists
- Parameters:
container
- container name
-
createContainerInLocation
This implementation invokesinvalid reference
AzureBlobClient#putBucketInRegion
- Parameters:
location
- currently ignoredcontainer
- container name- Returns:
- true if the container was created, false if it already existed.
-
list
This implementation invokesAzureBlobClient.listBlobs(java.lang.String, org.jclouds.azureblob.options.ListBlobsOptions...)
- Parameters:
container
- container nameoptions
- size, recursion, and context of the list- Returns:
- a list that may be incomplete, depending on whether PageSet#getNextMarker is set
-
deleteContainer
This implementation invokesAzureBlobClient.deleteContainer(java.lang.String)
- Specified by:
deleteContainer
in interfaceBlobStore
- Overrides:
deleteContainer
in classBaseBlobStore
- Parameters:
container
- container name
-
blobExists
This implementation invokesAzureBlobClient.blobExists(java.lang.String, java.lang.String)
- Parameters:
container
- container namekey
- blob key
-
getBlob
This implementation invokesAzureBlobClient.getBlob(java.lang.String, java.lang.String, org.jclouds.http.options.GetOptions...)
- Parameters:
container
- container namekey
- blob keyoptions
- byte range or condition options- Returns:
- the blob you intended to receive or null, if it doesn't exist.
-
putBlob
This implementation invokesinvalid reference
AzureBlobClient#putObject
- Parameters:
container
- container nameblob
- object- Returns:
- etag of the blob you uploaded, possibly null where etags are unsupported
-
putBlob
This implementation invokesinvalid reference
AzureBlobClient#putObject
- Parameters:
container
- container nameblob
- objectoptions
- byte range options- Returns:
- etag of the blob you uploaded, possibly null where etags are unsupported
-
copyBlob
public String copyBlob(String fromContainer, String fromName, String toContainer, String toName, CopyOptions options) Description copied from interface:BlobStore
Copy blob from one container to another. Some providers implement this more efficiently than corresponding getBlob and putBlob operations. Note: options are currently ignored- Specified by:
copyBlob
in interfaceBlobStore
- Overrides:
copyBlob
in classBaseBlobStore
- Returns:
- ETag of new blob
-
removeBlob
This implementation invokesinvalid reference
AzureBlobClient#deleteObject
- Parameters:
container
- container namekey
- blob key
-
putBlock
The Put Block operation creates a block blob on Azure which can be later assembled into a single, large blob object with the Put Block List operation. -
putBlockList
The Put Block operation creates a block blob on Azure which can be later assembled into a single, large blob object with the Put Block List operation. Azure will search the latest blocks uploaded with putBlock to assemble the blob. -
getBlockList
Get Block ID List for a blob -
blobMetadata
This implementation invokesAzureBlobClient.getBlobProperties(java.lang.String, java.lang.String)
- Parameters:
container
- container namekey
- blob key- Returns:
- null if name isn't present or the blob you intended to receive.
-
deleteAndVerifyContainerGone
Description copied from class:BaseBlobStore
Delete a container if it is empty.- Specified by:
deleteAndVerifyContainerGone
in classBaseBlobStore
- Parameters:
container
- what to delete- Returns:
- whether container was deleted
-
createContainerInLocation
public boolean createContainerInLocation(Location location, String container, CreateContainerOptions options) - Parameters:
options
- controls default access control- See Also:
-
getContainerAccess
-
setContainerAccess
-
getBlobAccess
-
setBlobAccess
-
initiateMultipartUpload
public MultipartUpload initiateMultipartUpload(String container, BlobMetadata blobMetadata, PutOptions options) -
abortMultipartUpload
-
completeMultipartUpload
-
uploadMultipartPart
-
listMultipartUpload
-
listMultipartUploads
-
getMinimumMultipartPartSize
public long getMinimumMultipartPartSize() -
getMaximumMultipartPartSize
public long getMaximumMultipartPartSize() -
getMaximumNumberOfParts
public int getMaximumNumberOfParts() -
streamBlob
- Specified by:
streamBlob
in interfaceBlobStore
- Overrides:
streamBlob
in classBaseBlobStore
-