org.infinispan.loaders.s3.jclouds
Class JCloudsConnection

java.lang.Object
  extended by org.infinispan.loaders.s3.jclouds.JCloudsConnection
All Implemented Interfaces:
S3Connection<org.jclouds.aws.s3.S3Connection,org.jclouds.aws.s3.domain.S3Bucket>

public class JCloudsConnection
extends Object
implements S3Connection<org.jclouds.aws.s3.S3Connection,org.jclouds.aws.s3.domain.S3Bucket>

An JClouds implementation of S3Connection. This implementation uses the threadsafe S3HttpNioConnectionPoolClientModule transport.

Author:
Adrian Cole

Field Summary
protected  S3CacheStoreConfig config
           
protected  org.jclouds.aws.s3.S3Context context
           
protected  Marshaller marshaller
           
protected  org.jclouds.aws.s3.S3Connection s3Service
           
 
Constructor Summary
JCloudsConnection()
           
 
Method Summary
 void connect(S3CacheStoreConfig config, Marshaller m)
          
 void copyBucket(String sourceBucket, String destinationBucket)
          
 void destroyBucket(String name)
           
 void disconnect()
           
 org.jclouds.aws.s3.S3Connection getConnection()
           
 org.jclouds.aws.s3.domain.S3Bucket verifyOrCreateBucket(String bucketName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

s3Service

protected org.jclouds.aws.s3.S3Connection s3Service

context

protected org.jclouds.aws.s3.S3Context context

marshaller

protected Marshaller marshaller

config

protected S3CacheStoreConfig config
Constructor Detail

JCloudsConnection

public JCloudsConnection()
Method Detail

connect

public void connect(S3CacheStoreConfig config,
                    Marshaller m)
             throws S3ConnectionException

Specified by:
connect in interface S3Connection<org.jclouds.aws.s3.S3Connection,org.jclouds.aws.s3.domain.S3Bucket>
Throws:
S3ConnectionException

getConnection

public org.jclouds.aws.s3.S3Connection getConnection()
                                              throws S3ConnectionException
Specified by:
getConnection in interface S3Connection<org.jclouds.aws.s3.S3Connection,org.jclouds.aws.s3.domain.S3Bucket>
Throws:
S3ConnectionException

verifyOrCreateBucket

public org.jclouds.aws.s3.domain.S3Bucket verifyOrCreateBucket(String bucketName)
                                                        throws S3ConnectionException
Specified by:
verifyOrCreateBucket in interface S3Connection<org.jclouds.aws.s3.S3Connection,org.jclouds.aws.s3.domain.S3Bucket>
Throws:
S3ConnectionException

destroyBucket

public void destroyBucket(String name)
                   throws S3ConnectionException
Specified by:
destroyBucket in interface S3Connection<org.jclouds.aws.s3.S3Connection,org.jclouds.aws.s3.domain.S3Bucket>
Throws:
S3ConnectionException

copyBucket

public void copyBucket(String sourceBucket,
                       String destinationBucket)
                throws S3ConnectionException

Specified by:
copyBucket in interface S3Connection<org.jclouds.aws.s3.S3Connection,org.jclouds.aws.s3.domain.S3Bucket>
Throws:
S3ConnectionException

disconnect

public void disconnect()
Specified by:
disconnect in interface S3Connection<org.jclouds.aws.s3.S3Connection,org.jclouds.aws.s3.domain.S3Bucket>
See Also:
S3Context.close()


Copyright © 2009 JBoss, a division of Red Hat. All Rights Reserved.