|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgr.uoa.di.madgik.grs.store.buffer.BufferStoreEntry
public class BufferStoreEntry
This entry holds information per incoming locator to be used by IBufferStore implementations. This information
includes the locator that is managed, the reader that is used to iterate over the Records accessible through the
locator, the IRecordStore that persists the retrieved Records, the IEventStore that persists the
received BufferEvents as well as a persisted location holding the RecordDefinitions that are needed to
be available for the Records to be reused
| Nested Class Summary | |
|---|---|
static class |
BufferStoreEntry.EntryStatus
The status of the entry |
| Constructor Summary | |
|---|---|
BufferStoreEntry(java.net.URI locator)
Create a new instance |
|
| Method Summary | |
|---|---|
void |
dispose()
Disposes all state kept as well as the initialized ForwardReader.close(), IRecordStore.dispose()
and removes the persisted RecordDefinitions |
RecordDefinition[] |
getDefinitions()
Retrieves the RecordDefinitions from the persisted location it has stored them at initialization |
IEventStore |
getEventManager()
Retrieves the IEventStore manager that is used to persist incoming BufferEvents |
ForwardReader<Record> |
getReader()
Retrieves the reader used to iterate over the Records of the incoming locator |
long |
getReaderTimeout()
Retrieves the timeout set to be used by the reader of the incoming locator. |
java.util.concurrent.TimeUnit |
getReaderTimeoutTimeUnit()
Retrieves the timeout time unit set to be used by the reader of the incoming locator. |
IRecordStore |
getRecordManager()
Retrieves the IRecordStore manager that is used to persist incoming Records |
BufferStoreEntry.EntryStatus |
getStatus()
Retrieves the status of the entry |
void |
initialize()
After all configuration values have been set, this method initializes the IRecordStore, the ForwardReader,
and persists the reader available RecordDefinitions |
void |
setReaderTimeout(long timeout)
Sets the timeout set to be used by the reader of the incoming locator. |
void |
setReaderTimeoutTimeUnit(java.util.concurrent.TimeUnit unit)
Sets the timeout time unit set to be used by the reader of the incoming locator. |
void |
setStatus(BufferStoreEntry.EntryStatus status)
Sets the status of the entry |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BufferStoreEntry(java.net.URI locator)
locator - the locator pointing to the incoming IBuffer| Method Detail |
|---|
public BufferStoreEntry.EntryStatus getStatus()
public void setStatus(BufferStoreEntry.EntryStatus status)
status - the statuspublic ForwardReader<Record> getReader()
Records of the incoming locator
public IRecordStore getRecordManager()
IRecordStore manager that is used to persist incoming Records
public IEventStore getEventManager()
IEventStore manager that is used to persist incoming BufferEvents
public long getReaderTimeout()
getReaderTimeoutTimeUnit()
public void setReaderTimeout(long timeout)
setReaderTimeoutTimeUnit(TimeUnit)
timeout - the timeoutpublic java.util.concurrent.TimeUnit getReaderTimeoutTimeUnit()
getReaderTimeout()
public void setReaderTimeoutTimeUnit(java.util.concurrent.TimeUnit unit)
setReaderTimeout(long)
unit - the time unit
public void initialize()
throws GRS2RecordStoreException,
GRS2ReaderException,
GRS2BufferStoreAccessException,
GRS2EventStoreException
IRecordStore, the ForwardReader,
and persists the reader available RecordDefinitions
GRS2RecordStoreException - the state of the IRecordStore does not allow for this operation to be completed
GRS2ReaderException - the state of the ForwardReader does not allow for this operation to be completed
GRS2BufferStoreAccessException - the state of the IBufferStore does not allow for this operation to be completed
GRS2EventStoreException - the state of the IEventStore does not allow for this operation to be completedpublic void dispose()
ForwardReader.close(), IRecordStore.dispose()
and removes the persisted RecordDefinitions
public RecordDefinition[] getDefinitions()
throws GRS2BufferStoreAccessException
RecordDefinitions from the persisted location it has stored them at initialization
RecordDefinitions of the incoming locator
GRS2BufferStoreAccessException - the state of the IBufferStore does not allow for this operation to be completed
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||