IBackend.IBackendFactory
Constructor and Description |
---|
JCloudsStorage(Properties pProperties,
IDataFactory pDataFac,
IMetaEntryFactory pMetaFac,
IByteHandler.IByteHandlerPipeline pByteHandler)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closing this storage.
|
IByteHandler.IByteHandlerPipeline |
getByteHandler()
Getting the ByteHandlers associated with this Storage.
|
IBackendReader |
getReader()
Getting a reader.
|
IBackendWriter |
getWriter()
Getting a writer.
|
void |
initialize()
Initializing the storage.
|
boolean |
truncate()
Truncating a storage.
|
@Inject public JCloudsStorage(Properties pProperties, IDataFactory pDataFac, IMetaEntryFactory pMetaFac, IByteHandler.IByteHandlerPipeline pByteHandler)
pProperties
- not only the location of the databasepDataFac
- factory for the dataspMetaFac
- factory for meta bucketpByteHandler
- handling any bytespublic IBackendWriter getWriter() throws TTException
getWriter
in interface IBackend
IBackendWriter
instanceTTIOException
- if the initalisation failsTTException
public IBackendReader getReader() throws TTException
getReader
in interface IBackend
IBackendReader
instanceTTIOException
- if the initalisation failsTTException
public void close() throws TTException
close
in interface IBackend
TTIOException
- exception to be thrownsTTException
public IByteHandler.IByteHandlerPipeline getByteHandler()
getByteHandler
in interface IBackend
IByteHandler.IByteHandlerPipeline
transforming bytes before storagepublic boolean truncate() throws TTException
IBackend
truncate
in interface IBackend
TTException
- if anything weird happenspublic void initialize() throws TTIOException
IBackend
initialize
in interface IBackend
TTIOException
Copyright © 2013. All Rights Reserved.