org.dasein.cloud.google.storage
Class GoogleBlobStore

java.lang.Object
  extended by org.dasein.cloud.storage.AbstractBlobStoreSupport
      extended by org.dasein.cloud.google.storage.GoogleBlobStore
All Implemented Interfaces:
org.dasein.cloud.storage.BlobStoreSupport

public class GoogleBlobStore
extends org.dasein.cloud.storage.AbstractBlobStoreSupport


Field Summary
static String SEPARATOR
           
 
Constructor Summary
GoogleBlobStore(GoogleAppEngine provider)
           
 
Method Summary
 boolean belongsToAnother(String bucket)
           
 void clear(String bucket)
           
 String createDirectory(String bucket, boolean findFreeName)
           
 boolean exists(String bucket)
           
 long exists(String bucket, String object, boolean multiPart)
           
protected  void get(String bucket, String object, File toFile, org.dasein.cloud.storage.FileTransfer transfer)
           
 Document getAcl(String bucket, String object)
           
 long getMaxFileSizeInBytes()
           
 String getProviderTermForDirectory(Locale locale)
           
 String getProviderTermForFile(Locale locale)
           
 String getSeparator()
           
 boolean isPublic(String bucket, String object)
           
 boolean isSubscribed()
           
 Collection<org.dasein.cloud.storage.CloudStoreObject> listFiles(String bucket)
           
 void makePublic(String bucket)
           
 void makePublic(String bucket, String object)
           
 void moveFile(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 removeDirectory(String bucket)
           
protected  void removeFile(String bucket, String name)
           
 String renameDirectory(String oldName, String newName, boolean findFreeName)
           
 void renameFile(String bucket, String object, String newName)
           
 void upload(File source, String directory, String fileName, boolean multipart, org.dasein.cloud.encryption.Encryption encryption)
           
protected  String verifyName(String name, boolean container)
           
 
Methods inherited from class org.dasein.cloud.storage.AbstractBlobStoreSupport
copy, copy, copyFile, download, download, downloadMultipartFile, getChecksum, join, removeFile, removeMultipart, uploadMultipartFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SEPARATOR

public static final String SEPARATOR
See Also:
Constant Field Values
Constructor Detail

GoogleBlobStore

public GoogleBlobStore(GoogleAppEngine provider)
Method Detail

clear

public void clear(String bucket)
           throws org.dasein.cloud.CloudException,
                  org.dasein.cloud.InternalException
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

createDirectory

public String createDirectory(String bucket,
                              boolean findFreeName)
                       throws org.dasein.cloud.InternalException,
                              org.dasein.cloud.CloudException
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

exists

public boolean exists(String bucket)
               throws org.dasein.cloud.InternalException,
                      org.dasein.cloud.CloudException
Specified by:
exists in interface org.dasein.cloud.storage.BlobStoreSupport
Overrides:
exists in class org.dasein.cloud.storage.AbstractBlobStoreSupport
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

belongsToAnother

public boolean belongsToAnother(String bucket)
                         throws org.dasein.cloud.InternalException,
                                org.dasein.cloud.CloudException
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

exists

public long exists(String bucket,
                   String object,
                   boolean multiPart)
            throws org.dasein.cloud.InternalException,
                   org.dasein.cloud.CloudException
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

get

protected void get(String bucket,
                   String object,
                   File toFile,
                   org.dasein.cloud.storage.FileTransfer transfer)
            throws IOException,
                   org.dasein.cloud.CloudException
Specified by:
get in class org.dasein.cloud.storage.AbstractBlobStoreSupport
Throws:
IOException
org.dasein.cloud.CloudException

getAcl

public Document getAcl(String bucket,
                       String object)
                throws org.dasein.cloud.CloudException,
                       org.dasein.cloud.InternalException
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

getMaxFileSizeInBytes

public long getMaxFileSizeInBytes()

getProviderTermForDirectory

public String getProviderTermForDirectory(Locale locale)

getProviderTermForFile

public String getProviderTermForFile(Locale locale)

getSeparator

public String getSeparator()
Overrides:
getSeparator in class org.dasein.cloud.storage.AbstractBlobStoreSupport

isPublic

public boolean isPublic(String bucket,
                        String object)
                 throws org.dasein.cloud.CloudException,
                        org.dasein.cloud.InternalException
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

isSubscribed

public boolean isSubscribed()
                     throws org.dasein.cloud.CloudException,
                            org.dasein.cloud.InternalException
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

listFiles

public Collection<org.dasein.cloud.storage.CloudStoreObject> listFiles(String bucket)
                                                                throws org.dasein.cloud.CloudException,
                                                                       org.dasein.cloud.InternalException
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

makePublic

public void makePublic(String bucket)
                throws org.dasein.cloud.InternalException,
                       org.dasein.cloud.CloudException
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

makePublic

public void makePublic(String bucket,
                       String object)
                throws org.dasein.cloud.InternalException,
                       org.dasein.cloud.CloudException
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

moveFile

public void moveFile(String sourceBucket,
                     String object,
                     String targetBucket)
              throws org.dasein.cloud.InternalException,
                     org.dasein.cloud.CloudException
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

put

protected void put(String bucket,
                   String object,
                   File file)
            throws org.dasein.cloud.CloudException,
                   IOException
Specified by:
put in class org.dasein.cloud.storage.AbstractBlobStoreSupport
Throws:
org.dasein.cloud.CloudException
IOException

put

protected void put(String bucket,
                   String object,
                   String content)
            throws org.dasein.cloud.CloudException,
                   IOException
Specified by:
put in class org.dasein.cloud.storage.AbstractBlobStoreSupport
Throws:
org.dasein.cloud.CloudException
IOException

removeDirectory

public void removeDirectory(String bucket)
                     throws org.dasein.cloud.CloudException,
                            org.dasein.cloud.InternalException
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

removeFile

protected void removeFile(String bucket,
                          String name)
                   throws org.dasein.cloud.CloudException,
                          org.dasein.cloud.InternalException
Specified by:
removeFile in class org.dasein.cloud.storage.AbstractBlobStoreSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

renameDirectory

public String renameDirectory(String oldName,
                              String newName,
                              boolean findFreeName)
                       throws org.dasein.cloud.CloudException,
                              org.dasein.cloud.InternalException
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

renameFile

public void renameFile(String bucket,
                       String object,
                       String newName)
                throws org.dasein.cloud.CloudException,
                       org.dasein.cloud.InternalException
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

upload

public void upload(File source,
                   String directory,
                   String fileName,
                   boolean multipart,
                   org.dasein.cloud.encryption.Encryption encryption)
            throws org.dasein.cloud.CloudException,
                   org.dasein.cloud.InternalException
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

verifyName

protected String verifyName(String name,
                            boolean container)
                     throws org.dasein.cloud.CloudException
Overrides:
verifyName in class org.dasein.cloud.storage.AbstractBlobStoreSupport
Throws:
org.dasein.cloud.CloudException


Copyright © 2011 enStratus Networks LLC. All Rights Reserved.