|
|||||||||
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 Record
s accessible through the
locator, the IRecordStore
that persists the retrieved Record
s, the IEventStore
that persists the
received BufferEvent
s as well as a persisted location holding the RecordDefinition
s that are needed to
be available for the Record
s 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 RecordDefinition s |
RecordDefinition[] |
getDefinitions()
Retrieves the RecordDefinition s from the persisted location it has stored them at initialization |
IEventStore |
getEventManager()
Retrieves the IEventStore manager that is used to persist incoming BufferEvent s |
ForwardReader<Record> |
getReader()
Retrieves the reader used to iterate over the Record s 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 Record s |
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 RecordDefinition s |
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()
Record
s of the incoming locator
public IRecordStore getRecordManager()
IRecordStore
manager that is used to persist incoming Record
s
public IEventStore getEventManager()
IEventStore
manager that is used to persist incoming BufferEvent
s
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 unitpublic void initialize() throws GRS2RecordStoreException, GRS2ReaderException, GRS2BufferStoreAccessException, GRS2EventStoreException
IRecordStore
, the ForwardReader
,
and persists the reader available RecordDefinition
s
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 RecordDefinition
s
public RecordDefinition[] getDefinitions() throws GRS2BufferStoreAccessException
RecordDefinition
s from the persisted location it has stored them at initialization
RecordDefinition
s 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 |