|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgr.uoa.di.madgik.grs.store.event.FileEventStore
public class FileEventStore
Implementation of the IEventStore using a RandomAccessFile over a local file as the persistency medium
| Constructor Summary | |
|---|---|
FileEventStore()
Creates a new instance |
|
| Method Summary | |
|---|---|
void |
dispose()
Disposes the IEventStore instance as well as any permanent storage resources occupied |
long |
getEventCount()
Retrieves the number of BufferEvents stored using this IEventStore |
void |
persist(BufferEvent event)
Persists the provided BufferEvent |
BufferEvent |
retrieveByIndex(long eventIndex)
Retrieve a previously stored BufferEvent based on the index by which it was stored |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileEventStore()
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public long getEventCount()
BufferEvents stored using this IEventStore
getEventCount in interface IEventStoreBufferEvents storedIEventStore.getEventCount()
public void dispose()
throws GRS2EventStoreException
IEventStore instance as well as any permanent storage resources occupied
dispose in interface IEventStoreGRS2EventStoreException - the state of the IEventStore does not allow for this operation to be completedIEventStore.dispose()
public void persist(BufferEvent event)
throws GRS2EventStoreException
BufferEvent
persist in interface IEventStoreevent - the BufferEvent to persist
GRS2EventStoreException - the state of the IEventStore does not allow for this operation to be completedIEventStore.persist(BufferEvent)
public BufferEvent retrieveByIndex(long eventIndex)
throws GRS2EventStoreException
BufferEvent based on the index by which it was stored
retrieveByIndex in interface IEventStoreeventIndex - The index by which the BufferEvent to be retrieved was stored
BufferEvent retrieved
GRS2EventStoreException - the state of the IEventStore does not allow for this operation to be completedIEventStore.retrieveByIndex(long)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||