org.infinispan.loader.s3.jclouds
Class JCloudsBucket
java.lang.Object
org.infinispan.loader.s3.jclouds.JCloudsBucket
- All Implemented Interfaces:
- S3Bucket<org.jclouds.aws.s3.domain.S3Bucket,JCloudsConnection>
public class JCloudsBucket
- extends Object
- implements S3Bucket<org.jclouds.aws.s3.domain.S3Bucket,JCloudsConnection>
A jclouds
implementation of S3Bucket
.
Tuning and configuration parameters can be overridden by creating jets3t.properties and adding it to your
classpath.
- Since:
- 1.0
- Author:
- Adrian Cole
Field Summary |
protected org.jclouds.aws.s3.domain.S3Bucket |
rootS3Bucket
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
rootS3Bucket
protected org.jclouds.aws.s3.domain.S3Bucket rootS3Bucket
JCloudsBucket
public JCloudsBucket()
init
public void init(JCloudsConnection connection,
org.jclouds.aws.s3.domain.S3Bucket bucket)
- Specified by:
init
in interface S3Bucket<org.jclouds.aws.s3.domain.S3Bucket,JCloudsConnection>
getName
public String getName()
- Specified by:
getName
in interface S3Bucket<org.jclouds.aws.s3.domain.S3Bucket,JCloudsConnection>
get
public Bucket get(String key)
throws S3ConnectionException
-
- Specified by:
get
in interface S3Bucket<org.jclouds.aws.s3.domain.S3Bucket,JCloudsConnection>
- Throws:
S3ConnectionException
remove
public void remove(String key)
throws S3ConnectionException
-
- Specified by:
remove
in interface S3Bucket<org.jclouds.aws.s3.domain.S3Bucket,JCloudsConnection>
- Throws:
S3ConnectionException
keySet
public Set<String> keySet()
throws S3ConnectionException
-
- Specified by:
keySet
in interface S3Bucket<org.jclouds.aws.s3.domain.S3Bucket,JCloudsConnection>
- Throws:
S3ConnectionException
values
public Set<Bucket> values()
throws S3ConnectionException
- Specified by:
values
in interface S3Bucket<org.jclouds.aws.s3.domain.S3Bucket,JCloudsConnection>
- Throws:
S3ConnectionException
clear
public void clear()
throws S3ConnectionException
-
- Specified by:
clear
in interface S3Bucket<org.jclouds.aws.s3.domain.S3Bucket,JCloudsConnection>
- Throws:
S3ConnectionException
insert
public void insert(Bucket b)
throws S3ConnectionException
-
- Specified by:
insert
in interface S3Bucket<org.jclouds.aws.s3.domain.S3Bucket,JCloudsConnection>
- Throws:
S3ConnectionException
safeClose
protected final void safeClose(InputStream stream)
throws S3ConnectionException
- Throws:
S3ConnectionException
Copyright © 2009 JBoss, a division of Red Hat. All Rights Reserved.