|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IBlobContainer
The BlobContainer class is used to access and enumerate blobs in
the container. Storage key credentials are needed to access private blobs but
not for public blobs.
| Field Summary | |
|---|---|
static java.lang.String |
ROOT_CONTAINER
The root container. |
| Method Summary | |
|---|---|
void |
clearSharedAccessUrl()
Clear shared access url. |
void |
clearSSLProperty()
|
boolean |
copyBlob(java.lang.String destContainer,
java.lang.String destBlobName,
java.lang.String sourceBlobName)
Copies a blob to a destination within the storage account. |
boolean |
copyBlob(java.lang.String destContainer,
java.lang.String destBlobName,
java.lang.String sourceBlobName,
org.soyatec.windowsazure.internal.util.NameValueCollection metadata,
IBlobConstraints constraints)
Copies a blob to a destination within the storage account. |
IBlockBlob |
createBlockBlob(IBlobProperties blobProperties,
IBlobContents blobContents)
Create a new block blob. |
IPageBlob |
createPageBlob(IBlobProperties blobProperties,
int size,
org.soyatec.windowsazure.internal.util.NameValueCollection headerParameters)
Create a new page blob. |
boolean |
deleteBlob(java.lang.String name)
Delete a blob with the given name. |
boolean |
deleteBlobIfNotModified(IBlobProperties blob)
Delete a blob with the given name if the blob has not been modified since it was last obtained. |
org.soyatec.windowsazure.blob.internal.ContainerAccessControl |
getAccessControl()
Get the access control permissions associated with the container. |
java.lang.String |
getAccountName()
|
java.net.URI |
getBaseUri()
|
IBlob |
getBlobReference(java.lang.String name)
Get a reference to a Blob object with a specified name. |
IBlockBlob |
getBlockBlobReference(java.lang.String name)
Get a reference to a Blob object with a specified name. |
java.sql.Timestamp |
getLastModifiedTime()
|
java.lang.String |
getName()
|
IPageBlob |
getPageBlobReference(java.lang.String name)
Get a reference to a Blob object with a specified name. |
IContainerProperties |
getProperties()
Get the properties for the container if it exists. |
IRetryPolicy |
getRetryPolicy()
|
org.soyatec.windowsazure.internal.util.TimeSpan |
getTimeout()
|
java.net.URI |
getUri()
|
boolean |
isBlobExist(java.lang.String blobName)
Check if the blob exists |
boolean |
isContainerExist()
Check if the blob container exists |
boolean |
isUsePathStyleUris()
Indicates whether to use/generate path-style or host-style URIs. |
java.lang.String |
leaseBlob(IBlobProperties blobProperties,
LeaseMode mode,
org.soyatec.windowsazure.internal.util.NameValueCollection headerParameters)
The Lease Blob operation establishes and manages a one-minute lock on a blob for write operations. |
java.util.Iterator<IBlobProperties> |
listBlobs()
Enumerates all blobs |
java.util.Iterator<IBlobProperties> |
listBlobs(java.lang.String prefix,
boolean combineCommonPrefixes)
Enumerates all blobs with a given prefix. |
java.util.Iterator<IBlobProperties> |
listBlobs(java.lang.String prefix,
boolean combineCommonPrefixes,
int maxResults)
Enumerates all blobs with a given prefix. |
void |
setAccessControl(IContainerAccessControl acl)
Set the access control permissions associated with the container. |
void |
setMetadata(org.soyatec.windowsazure.internal.util.NameValueCollection metadata)
|
void |
setRetryPolicy(IRetryPolicy retryPolicy)
|
void |
setSSLProperty(java.lang.String keystore,
java.lang.String keystorePasswd,
java.lang.String truststore,
java.lang.String truststorepasswd,
java.lang.String keyalias)
|
void |
setTimeout(org.soyatec.windowsazure.internal.util.TimeSpan timeout)
|
void |
setUri(java.net.URI containerUri)
|
IBlockBlob |
updateBlockBlob(IBlobProperties blobProperties,
IBlobContents blobContents)
Update a existing blob. |
void |
useSharedAccessUrl(ISharedAccessUrl url)
Use shared access URl. |
| Field Detail |
|---|
static final java.lang.String ROOT_CONTAINER
| Method Detail |
|---|
void setSSLProperty(java.lang.String keystore,
java.lang.String keystorePasswd,
java.lang.String truststore,
java.lang.String truststorepasswd,
java.lang.String keyalias)
void clearSSLProperty()
void useSharedAccessUrl(ISharedAccessUrl url)
url - void clearSharedAccessUrl()
void setMetadata(org.soyatec.windowsazure.internal.util.NameValueCollection metadata)
throws StorageException
The - metadata for the container to setmetadata - The metadata for the container. Can be null to indicate no
metadata
StorageException
boolean isContainerExist()
throws StorageException
StorageException
boolean isBlobExist(java.lang.String blobName)
throws StorageException
blobName - of the BLOB.
StorageException
java.util.Iterator<IBlobProperties> listBlobs()
throws StorageException
StorageException
java.util.Iterator<IBlobProperties> listBlobs(java.lang.String prefix,
boolean combineCommonPrefixes)
throws StorageException
prefix - combineCommonPrefixes - If true common prefixes with "/" as separator
StorageException
java.util.Iterator<IBlobProperties> listBlobs(java.lang.String prefix,
boolean combineCommonPrefixes,
int maxResults)
throws StorageException
prefix - combineCommonPrefixes - If true common prefixes with "/" as separatormaxResults - Specifies the maximum number of blobs to return per call to
Azure storage. This does NOT affect list size returned by this
function.
StorageException
void setAccessControl(IContainerAccessControl acl)
throws StorageException
acl - The permission to set
StorageException
org.soyatec.windowsazure.blob.internal.ContainerAccessControl getAccessControl()
throws StorageException
StorageException
IContainerProperties getProperties()
throws StorageException
StorageException
boolean copyBlob(java.lang.String destContainer,
java.lang.String destBlobName,
java.lang.String sourceBlobName)
throws StorageException
destContainer - the destination blob container;destBlobName - the destination blob's name;sourceBlobName - the source blob's name;
StorageException
boolean copyBlob(java.lang.String destContainer,
java.lang.String destBlobName,
java.lang.String sourceBlobName,
org.soyatec.windowsazure.internal.util.NameValueCollection metadata,
IBlobConstraints constraints)
throws StorageException
destContainer - the destination blob container;destBlobName - the destination blob's name;sourceBlobName - the source blob's name;metadata - The metadata for the Blob. Can be null to indicate no
metadata;constraints - The blob constraints for the blob copy operation.
StorageException
boolean deleteBlob(java.lang.String name)
throws StorageException
name - The name of the blob
StorageException
boolean deleteBlobIfNotModified(IBlobProperties blob)
throws StorageException
blob - A blob object (typically previously obtained from a GetBlob
call)
StorageException
IPageBlob createPageBlob(IBlobProperties blobProperties,
int size,
org.soyatec.windowsazure.internal.util.NameValueCollection headerParameters)
throws StorageException
blobProperties - The properties of blob.size - The maximum size for page blobheaderParameters - The header parameters.
StorageExceptionjava.net.URI getBaseUri()
java.lang.String getAccountName()
java.lang.String getName()
boolean isUsePathStyleUris()
java.net.URI getUri()
java.sql.Timestamp getLastModifiedTime()
org.soyatec.windowsazure.internal.util.TimeSpan getTimeout()
IRetryPolicy getRetryPolicy()
void setTimeout(org.soyatec.windowsazure.internal.util.TimeSpan timeout)
timeout - The time out for each request to the storage service.void setRetryPolicy(IRetryPolicy retryPolicy)
retryPolicy - The retry policy used for retrying requests.void setUri(java.net.URI containerUri)
containerUri - The URI of the container.
java.lang.String leaseBlob(IBlobProperties blobProperties,
LeaseMode mode,
org.soyatec.windowsazure.internal.util.NameValueCollection headerParameters)
throws StorageException
blobProperties - The properties of the blobmode - Lease Blob mode for this operation. There are four modes:
Acquire, to request a new lease. Renew, to renew an existing
lease. Release, to free the lease if it is no longer needed so
that another client may immediately acquire a lease against
the blob. Break, to end the lease but ensure that another
client cannot acquire a new lease until the current lease
period has expired.headerParameters -
StorageException
IBlockBlob updateBlockBlob(IBlobProperties blobProperties,
IBlobContents blobContents)
throws StorageException
blobProperties - The properties of the blobblobContents - The contents of the blob
StorageException
IBlockBlob createBlockBlob(IBlobProperties blobProperties,
IBlobContents blobContents)
throws StorageException
blobProperties - The properties of the blobblobContents - The contents of the blob
StorageException
IBlockBlob getBlockBlobReference(java.lang.String name)
throws StorageException
name - The name of the blob
StorageException
IPageBlob getPageBlobReference(java.lang.String name)
throws StorageException
name - The name of the blob
StorageException
IBlob getBlobReference(java.lang.String name)
throws StorageException
name - The name of the blob
StorageException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||