Represents an Event store. More...
Public Member Functions | |
boolean | addEvent (Event event) throws IOException |
Adds an event to the store. More... | |
void | atomicEventSwap (Event event, long key) throws IOException |
Removes the existing event for the key and replaces it with the new event. More... | |
void | clearCachedMemory () throws IOException |
Force removal of all cached events from the store, useful if looking for memory to clear up. | |
void | close () |
Closes the store and releases all resources. | |
void | delete () |
Deletes the store and all resources. | |
Event | getEvent (long eventKey) throws IOException |
Retrieves the event based on the key supplied. More... | |
int | getEvents (long startKey, Event[] data) throws IOException |
Returns a specified set of events. More... | |
long | getFirstKey () throws IOException |
long | getLastKey () throws IOException |
long | getNextKey () throws IOException |
final StorageProperties | getProperties () |
NOTE: Changing properties after the store has been created is NOT supported. More... | |
void | performMaintenance () throws IOException |
Reclaims any unused space within the store. | |
int | removeEvent (long key) throws IOException |
Removes the event from the store specified by the key. More... | |
long | size () throws IOException |
void | sync () throws IOException |
Performs a sync on the event storage. | |
Protected Member Functions | |
void | finalize () throws Throwable |
Do not call directly, used only to clear any resources. | |
Represents an Event store.
boolean com.softwareag.um.modules.storage.Storage.addEvent | ( | Event | event | ) | throws IOException |
Adds an event to the store.
event | event to add |
IOException | If underlying File system throws an exception |
void com.softwareag.um.modules.storage.Storage.atomicEventSwap | ( | Event | event, |
long | key | ||
) | throws IOException |
Removes the existing event for the key and replaces it with the new event.
event | New event to use |
key | key of the event to remove and replace |
Event com.softwareag.um.modules.storage.Storage.getEvent | ( | long | eventKey | ) | throws IOException |
Retrieves the event based on the key supplied.
eventKey,key | of the event to retrieve |
int com.softwareag.um.modules.storage.Storage.getEvents | ( | long | startKey, |
Event[] | data | ||
) | throws IOException |
Returns a specified set of events.
startKey,: | The initial key from which we want events returned |
data | This array is populated with the number of events retrieved. It is assumed to be large enough |
long com.softwareag.um.modules.storage.Storage.getFirstKey | ( | ) | throws IOException |
long com.softwareag.um.modules.storage.Storage.getLastKey | ( | ) | throws IOException |
long com.softwareag.um.modules.storage.Storage.getNextKey | ( | ) | throws IOException |
final StorageProperties com.softwareag.um.modules.storage.Storage.getProperties | ( | ) |
NOTE: Changing properties after the store has been created is NOT supported.
int com.softwareag.um.modules.storage.Storage.removeEvent | ( | long | key | ) | throws IOException |
Removes the event from the store specified by the key.
key | to remove |
long com.softwareag.um.modules.storage.Storage.size | ( | ) | throws IOException |
IOException | if unable to access the underlying file system |