|
|||||||||
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 BufferEvent s 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()
BufferEvent
s stored using this IEventStore
getEventCount
in interface IEventStore
BufferEvent
s storedIEventStore.getEventCount()
public void dispose() throws GRS2EventStoreException
IEventStore
instance as well as any permanent storage resources occupied
dispose
in interface IEventStore
GRS2EventStoreException
- 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 IEventStore
event
- 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 IEventStore
eventIndex
- 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 |