org.infinispan.loaders.s3
Interface S3Bucket<B,C extends S3Connection>

All Known Implementing Classes:
JCloudsBucket

public interface S3Bucket<B,C extends S3Connection>

This interface defines the interactons between the S3CacheStore and Amazon S3.

Since:
4.0
Author:
Adrian Cole

Method Summary
 void clear()
          removes all Infinispan buckets from the S3 bucket
 Bucket get(String key)
           
 String getName()
           
 void init(C connection, B bucket)
          Creates a connection to S3, and associates this object with an S3Bucket.
 void insert(Bucket object)
          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
 Set<Bucket> values()
           
 

Method Detail

init

void init(C connection,
          B bucket)
Creates a connection to S3, and associates this object with an S3Bucket.

Parameters:
connection - - third-party connection to S3
bucket - - third-party representation of an S3 Bucket

getName

String getName()
Returns:
name of the S3Bucket data will be stored in

insert

void insert(Bucket object)
            throws S3ConnectionException
Adds the Infinispan bucket into the S3 Bucket at location Bucket.getBucketName()

Parameters:
object - what to persist into S3
Throws:
S3ConnectionException

get

Bucket get(String key)
           throws S3ConnectionException
Parameters:
key - - location in the S3Bucket where we can find the infinispan Bucket
Returns:
Infinispan bucket associated with the key
Throws:
S3ConnectionException

keySet

Set<String> keySet()
                   throws S3ConnectionException
Returns:
names all infinispan buckets stored in this S3 Bucket
Throws:
S3ConnectionException

values

Set<Bucket> values()
                   throws S3ConnectionException
Returns:
all infinispan buckets stored in this S3 Bucket
Throws:
S3ConnectionException

remove

void remove(String key)
            throws S3ConnectionException
Removes the Infinispan bucket from the S3 Bucket at location key

Parameters:
key - what to remove from S3
Throws:
S3ConnectionException

clear

void clear()
           throws S3ConnectionException
removes all Infinispan buckets from the S3 bucket

Throws:
S3ConnectionException

Google Analytics

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