|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.infinispan.loaders.s3.jclouds.JCloudsBucket
public class JCloudsBucket
A JClouds
implementation of S3Bucket
.
Constructor Summary | |
---|---|
JCloudsBucket()
|
Method Summary | |
---|---|
void |
clear()
removes all Infinispan buckets from the S3 bucket |
Bucket |
get(String key)
|
String |
getName()
|
void |
init(JCloudsConnection connection,
org.jclouds.aws.s3.domain.S3Bucket bucket)
Creates a connection to S3, and associates this object with an S3Bucket. |
void |
insert(Bucket b)
Adds the Infinispan bucket into the S3 Bucket at location Bucket.getBucketName() |
Set<String> |
keySet()
|
void |
remove(String key)
Removes the Infinispan bucket from the S3 Bucket at location key |
protected void |
safeClose(InputStream stream)
|
Set<Bucket> |
values()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JCloudsBucket()
Method Detail |
---|
public void init(JCloudsConnection connection, org.jclouds.aws.s3.domain.S3Bucket bucket)
S3Bucket
init
in interface S3Bucket<org.jclouds.aws.s3.domain.S3Bucket,JCloudsConnection>
connection
- - third-party connection to S3bucket
- - third-party representation of an S3 Bucketpublic String getName()
getName
in interface S3Bucket<org.jclouds.aws.s3.domain.S3Bucket,JCloudsConnection>
public Bucket get(String key) throws S3ConnectionException
get
in interface S3Bucket<org.jclouds.aws.s3.domain.S3Bucket,JCloudsConnection>
key
- - location in the S3Bucket where we can find the infinispan Bucket
S3ConnectionException
public void remove(String key) throws S3ConnectionException
key
remove
in interface S3Bucket<org.jclouds.aws.s3.domain.S3Bucket,JCloudsConnection>
key
- what to remove from S3
S3ConnectionException
public Set<String> keySet() throws S3ConnectionException
keySet
in interface S3Bucket<org.jclouds.aws.s3.domain.S3Bucket,JCloudsConnection>
S3ConnectionException
public Set<Bucket> values() throws S3ConnectionException
values
in interface S3Bucket<org.jclouds.aws.s3.domain.S3Bucket,JCloudsConnection>
S3ConnectionException
public void clear() throws S3ConnectionException
clear
in interface S3Bucket<org.jclouds.aws.s3.domain.S3Bucket,JCloudsConnection>
S3ConnectionException
public void insert(Bucket b) throws S3ConnectionException
Bucket.getBucketName()
insert
in interface S3Bucket<org.jclouds.aws.s3.domain.S3Bucket,JCloudsConnection>
b
- what to persist into S3
S3ConnectionException
protected final void safeClose(InputStream stream) throws S3ConnectionException
S3ConnectionException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |