org.dasein.cloud.services.storage
Interface StorageServices
public interface StorageServices
Interface into the cloud storage services supported by this cloud provider.
- Author:
- George Reese @ enStratus (http://www.enstratus.com)
|
Method Summary |
void |
clear(String directory)
|
String |
createDirectory(String baseName,
boolean findFreeName)
|
FileTransfer |
download(CloudStoreObject sourceFile,
File toFile)
|
FileTransfer |
download(String directory,
String fileName,
File toFile,
Encryption decryption)
|
boolean |
exists(String directory)
|
long |
exists(String directory,
String fileName,
boolean multiPart)
|
long |
getMaxFileSizeInBytes()
|
String |
getProviderTermForDirectory(Locale locale)
|
String |
getProviderTermForFile(Locale locale)
|
boolean |
isPublic(String bucket,
String object)
|
Iterable<CloudStoreObject> |
listFiles(String parentDirectory)
|
void |
makePublic(String directory)
|
void |
makePublic(String directory,
String fileName)
|
void |
moveFile(String fromDirectory,
String fileName,
String toDirectory)
|
void |
removeDirectory(String directory)
|
void |
removeFile(String directory,
String name,
boolean multipartFile)
|
String |
renameDirectory(String oldName,
String newName,
boolean findFreeName)
|
void |
renameFile(String directory,
String oldName,
String newName)
|
void |
upload(File sourceFile,
String directory,
String fileName,
boolean multiPart,
Encryption encryption)
|
clear
void clear(String directory)
throws CloudException,
InternalException
- Throws:
CloudException
InternalException
createDirectory
String createDirectory(String baseName,
boolean findFreeName)
throws InternalException,
CloudException
- Throws:
InternalException
CloudException
download
FileTransfer download(String directory,
String fileName,
File toFile,
Encryption decryption)
throws InternalException,
CloudException
- Throws:
InternalException
CloudException
download
FileTransfer download(CloudStoreObject sourceFile,
File toFile)
throws CloudException,
InternalException
- Throws:
CloudException
InternalException
exists
boolean exists(String directory)
throws InternalException,
CloudException
- Throws:
InternalException
CloudException
exists
long exists(String directory,
String fileName,
boolean multiPart)
throws InternalException,
CloudException
- Throws:
InternalException
CloudException
getMaxFileSizeInBytes
long getMaxFileSizeInBytes()
getProviderTermForDirectory
String getProviderTermForDirectory(Locale locale)
getProviderTermForFile
String getProviderTermForFile(Locale locale)
isPublic
boolean isPublic(String bucket,
String object)
throws CloudException,
InternalException
- Throws:
CloudException
InternalException
listFiles
Iterable<CloudStoreObject> listFiles(String parentDirectory)
throws CloudException,
InternalException
- Throws:
CloudException
InternalException
makePublic
void makePublic(String directory)
throws InternalException,
CloudException
- Throws:
InternalException
CloudException
makePublic
void makePublic(String directory,
String fileName)
throws InternalException,
CloudException
- Throws:
InternalException
CloudException
moveFile
void moveFile(String fromDirectory,
String fileName,
String toDirectory)
throws InternalException,
CloudException
- Throws:
InternalException
CloudException
removeDirectory
void removeDirectory(String directory)
throws CloudException,
InternalException
- Throws:
CloudException
InternalException
removeFile
void removeFile(String directory,
String name,
boolean multipartFile)
throws CloudException,
InternalException
- Throws:
CloudException
InternalException
renameDirectory
String renameDirectory(String oldName,
String newName,
boolean findFreeName)
throws CloudException,
InternalException
- Throws:
CloudException
InternalException
renameFile
void renameFile(String directory,
String oldName,
String newName)
throws CloudException,
InternalException
- Throws:
CloudException
InternalException
upload
void upload(File sourceFile,
String directory,
String fileName,
boolean multiPart,
Encryption encryption)
throws CloudException,
InternalException
- Throws:
CloudException
InternalException
Copyright © 2009 enStratus Networks LLC – Available under the terms of the Artistic License 2.0.