IBackend.IBackendFactory
Constructor and Description |
---|
CombinedStorage(Properties pProperties,
IDataFactory pDataFac,
IMetaEntryFactory pMetaFac,
IByteHandler.IByteHandlerPipeline pByteHandler)
Simple 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 CombinedStorage(Properties pProperties, IDataFactory pDataFac, IMetaEntryFactory pMetaFac, IByteHandler.IByteHandlerPipeline pByteHandler) throws TTIOException
pProperties
- not only the file associated with the databasepDataFac
- factory for the dataspMetaFac
- factory for meta bucketpByteHandler
- handling any bytesTTIOException
- of something odd happens while database-connectionpublic 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
truncate
in interface IBackend
TTException
- if anything weird happenspublic void initialize() throws TTIOException
initialize
in interface IBackend
TTIOException
Copyright © 2013. All Rights Reserved.