public class JCloudsWriter extends Object implements IBackendWriter
Constructor and Description |
---|
JCloudsWriter(org.jclouds.blobstore.BlobStore pBlobStore,
BucketFactory pFac,
IByteHandler.IByteHandlerPipeline pByteHandler,
String pResourceName) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closing the write access.
|
IBucket |
read(long pKey)
Getting a reference for the given pointer.
|
UberBucket |
readUber()
Reading the UberBucket
|
void |
write(IBucket pBucket)
Writing a bucket related to the reference.
|
void |
writeUberBucket(UberBucket pBucket)
Writing the
UberBucket including the pointer to the bucket. |
public JCloudsWriter(org.jclouds.blobstore.BlobStore pBlobStore, BucketFactory pFac, IByteHandler.IByteHandlerPipeline pByteHandler, String pResourceName) throws TTException
TTException
public IBucket read(long pKey) throws TTIOException
read
in interface IBackendReader
pKey
- the reference for the bucket to be determinedIBucket
as the base for a bucketTTIOException
public void write(IBucket pBucket) throws TTIOException, TTByteHandleException
write
in interface IBackendWriter
pBucket
- bucket to be writtenTTIOException
TTByteHandleException
public void close() throws TTIOException
close
in interface IBackendReader
close
in interface IBackendWriter
TTIOException
- if closing failspublic UberBucket readUber() throws TTIOException
readUber
in interface IBackendReader
TTIOException
public void writeUberBucket(UberBucket pBucket) throws TTException
UberBucket
including the pointer to the bucket.writeUberBucket
in interface IBackendWriter
pBucket
- the UberBucket to be written.TTException
Copyright © 2013. All Rights Reserved.