org.infinispan.loaders.s3.jclouds
Class JCloudsConnection
java.lang.Object
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 HttpNioConnectionPoolClientModule
transport.
- Author:
- Adrian Cole
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
s3Service
protected org.jclouds.aws.s3.S3Connection s3Service
context
protected org.jclouds.aws.s3.S3Context context
marshaller
protected Marshaller marshaller
config
protected S3CacheStoreConfig config
JCloudsConnection
public JCloudsConnection()
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.