org.dasein.cloud.azure.storage
Class BlobStore
java.lang.Object
org.dasein.cloud.storage.AbstractBlobStoreSupport
org.dasein.cloud.azure.storage.BlobStore
- All Implemented Interfaces:
- AccessControlledService, BlobStoreSupport
public class BlobStore
- extends AbstractBlobStoreSupport
|
Method Summary |
boolean |
allowsNestedBuckets()
|
boolean |
allowsPublicSharing()
|
boolean |
allowsRootObjects()
|
void |
copyFile(String sourceBucket,
String sourceObject,
String targetBucket,
String targetObject)
|
Blob |
createBucket(String bucketName,
boolean findFreeName)
|
boolean |
exists(String bucketName)
|
protected void |
get(String bucket,
String object,
File toFile,
FileTransfer transfer)
|
Blob |
getBucket(String bucketName)
|
NameRules |
getBucketNameRules()
|
int |
getMaxBuckets()
|
Storage<Byte> |
getMaxObjectSize()
|
int |
getMaxObjectsPerBucket()
|
Blob |
getObject(String bucketName,
String objectName)
|
NameRules |
getObjectNameRules()
|
Storage<Byte> |
getObjectSize(String bucket,
String object)
|
String |
getProviderTermForBucket(Locale locale)
|
String |
getProviderTermForObject(Locale locale)
|
boolean |
isPublic(String bucket,
String object)
|
boolean |
isSubscribed()
|
Collection<Blob> |
list(String bucket)
|
void |
makePublic(String bucket)
|
void |
makePublic(String bucket,
String object)
|
String[] |
mapServiceAction(ServiceAction action)
|
void |
move(String sourceBucket,
String object,
String targetBucket)
|
protected void |
put(String bucket,
String object,
File file)
|
protected void |
put(String bucket,
String object,
String content)
|
void |
removeBucket(String bucket)
|
void |
removeObject(String bucket,
String name)
|
String |
renameBucket(String oldName,
String newName,
boolean findFreeName)
|
void |
renameObject(String bucket,
String object,
String newName)
|
Blob |
upload(File source,
String bucket,
String fileName)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MAX_BUCKETS
public static final int MAX_BUCKETS
- See Also:
- Constant Field Values
MAX_OBJECTS
public static final int MAX_OBJECTS
- See Also:
- Constant Field Values
MAX_OBJECT_SIZE
public static final Storage<Byte> MAX_OBJECT_SIZE
BlobStore
public BlobStore(Azure provider)
allowsNestedBuckets
public boolean allowsNestedBuckets()
throws CloudException,
InternalException
- Throws:
CloudException
InternalException
allowsRootObjects
public boolean allowsRootObjects()
throws CloudException,
InternalException
- Throws:
CloudException
InternalException
allowsPublicSharing
public boolean allowsPublicSharing()
throws CloudException,
InternalException
- Throws:
CloudException
InternalException
copyFile
public void copyFile(@Nullable
String sourceBucket,
@Nonnull
String sourceObject,
@Nullable
String targetBucket,
@Nonnull
String targetObject)
throws InternalException,
CloudException
- Overrides:
copyFile in class AbstractBlobStoreSupport
- Throws:
InternalException
CloudException
createBucket
@Nonnull
public Blob createBucket(@Nonnull
String bucketName,
boolean findFreeName)
throws InternalException,
CloudException
- Throws:
InternalException
CloudException
exists
public boolean exists(@Nonnull
String bucketName)
throws InternalException,
CloudException
- Throws:
InternalException
CloudException
getBucket
public Blob getBucket(@Nonnull
String bucketName)
throws InternalException,
CloudException
- Throws:
InternalException
CloudException
getObject
public Blob getObject(@Nullable
String bucketName,
@Nonnull
String objectName)
throws InternalException,
CloudException
- Throws:
InternalException
CloudException
getObjectSize
@Nullable
public Storage<Byte> getObjectSize(@Nullable
String bucket,
@Nullable
String object)
throws InternalException,
CloudException
- Throws:
InternalException
CloudException
getMaxBuckets
public int getMaxBuckets()
throws CloudException,
InternalException
- Throws:
CloudException
InternalException
get
protected void get(@Nullable
String bucket,
@Nonnull
String object,
@Nonnull
File toFile,
@Nullable
FileTransfer transfer)
throws InternalException,
CloudException
- Specified by:
get in class AbstractBlobStoreSupport
- Throws:
InternalException
CloudException
getMaxObjectSize
public Storage<Byte> getMaxObjectSize()
getMaxObjectsPerBucket
public int getMaxObjectsPerBucket()
throws CloudException,
InternalException
- Throws:
CloudException
InternalException
getProviderTermForBucket
@Nonnull
public String getProviderTermForBucket(@Nonnull
Locale locale)
getProviderTermForObject
@Nonnull
public String getProviderTermForObject(@Nonnull
Locale locale)
isPublic
public boolean isPublic(@Nullable
String bucket,
@Nullable
String object)
throws CloudException,
InternalException
- Throws:
CloudException
InternalException
isSubscribed
public boolean isSubscribed()
throws CloudException,
InternalException
- Throws:
CloudException
InternalException
list
@Nonnull
public Collection<Blob> list(@Nullable
String bucket)
throws CloudException,
InternalException
- Throws:
CloudException
InternalException
makePublic
public void makePublic(@Nonnull
String bucket)
throws InternalException,
CloudException
- Throws:
InternalException
CloudException
makePublic
public void makePublic(@Nullable
String bucket,
@Nullable
String object)
throws InternalException,
CloudException
- Throws:
InternalException
CloudException
mapServiceAction
@Nonnull
public String[] mapServiceAction(@Nonnull
ServiceAction action)
move
public void move(@Nullable
String sourceBucket,
@Nullable
String object,
@Nullable
String targetBucket)
throws InternalException,
CloudException
- Throws:
InternalException
CloudException
put
protected void put(@Nullable
String bucket,
@Nonnull
String object,
@Nonnull
File file)
throws CloudException,
InternalException
- Specified by:
put in class AbstractBlobStoreSupport
- Throws:
CloudException
InternalException
put
protected void put(@Nullable
String bucket,
@Nonnull
String object,
@Nonnull
String content)
throws CloudException,
InternalException
- Specified by:
put in class AbstractBlobStoreSupport
- Throws:
CloudException
InternalException
removeBucket
public void removeBucket(@Nonnull
String bucket)
throws CloudException,
InternalException
- Throws:
CloudException
InternalException
removeObject
public void removeObject(@Nullable
String bucket,
@Nonnull
String name)
throws CloudException,
InternalException
- Throws:
CloudException
InternalException
renameBucket
@Nonnull
public String renameBucket(@Nonnull
String oldName,
@Nonnull
String newName,
boolean findFreeName)
throws CloudException,
InternalException
- Throws:
CloudException
InternalException
renameObject
public void renameObject(@Nullable
String bucket,
@Nonnull
String object,
@Nonnull
String newName)
throws CloudException,
InternalException
- Throws:
CloudException
InternalException
upload
@Nonnull
public Blob upload(@Nonnull
File source,
@Nullable
String bucket,
@Nonnull
String fileName)
throws CloudException,
InternalException
- Throws:
CloudException
InternalException
getBucketNameRules
@Nonnull
public NameRules getBucketNameRules()
throws CloudException,
InternalException
- Throws:
CloudException
InternalException
getObjectNameRules
@Nonnull
public NameRules getObjectNameRules()
throws CloudException,
InternalException
- Throws:
CloudException
InternalException
Copyright © 2013 enStratus Networks Inc. All Rights Reserved.