|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectedu.uci.isr.yancees.server.service.AbstractService
edu.uci.isr.yancees.server.service.persistency.PersistencyService
This persistency service stores the events in main memory. Future extensions will store them in a secondary memory device.
| Constructor Summary | |
PersistencyService()
constructor |
|
| Method Summary | |
void |
clearAllEvents()
Removes all the events from all the accounts of the database |
EventInterface[] |
getAndRemoveEvents(SubscriberInterface si)
Gets all the events from a subscriber |
EventInterface[] |
getAndRemoveEventsAfter(java.util.Date date,
SubscriberInterface si)
Get the events after a given date and remove them from the database |
EventInterface[] |
getAndRemoveEventsBefore(java.util.Date date,
SubscriberInterface si)
Gets all the events before a given date for the especified account |
EventInterface[] |
getEvents(SubscriberInterface si)
Gets all the events stored for a subscriber |
EventInterface[] |
getEventsAfter(java.util.Date date,
SubscriberInterface si)
Gets all the events after a given date, for a given subscriber |
EventInterface[] |
getEventsBefore(java.util.Date date,
SubscriberInterface si)
Gets all the events before a given date |
void |
removeEvents(SubscriberInterface si)
Removes all the events, stored in the database, that are associated to the provided subscriber |
void |
removeEvents(SubscriberInterface si,
EventInterface[] eventList)
Removes specific events form a subscriber account |
void |
storeEvent(SubscriberInterface si,
EventInterface event)
Stores the event in the database in the si account. |
| Methods inherited from class edu.uci.isr.yancees.server.service.AbstractService |
getName, isActive, setName |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PersistencyService()
| Method Detail |
public void storeEvent(SubscriberInterface si,
EventInterface event)
si - is the account to store the eventevent - is the event to be storedpublic EventInterface[] getEvents(SubscriberInterface si)
si - is the subscriber account identifier
public EventInterface[] getAndRemoveEvents(SubscriberInterface si)
si - is the accoutn where the events are stored
public EventInterface[] getEventsAfter(java.util.Date date,
SubscriberInterface si)
date - is the date to be used as referencesi - is the subscriber account identifier
public EventInterface[] getEventsBefore(java.util.Date date,
SubscriberInterface si)
date - is the reference date to be consideredsi - is the subscriber interface (account) to query
public EventInterface[] getAndRemoveEventsAfter(java.util.Date date,
SubscriberInterface si)
date - is the reference datesi - is the account to be considered
public EventInterface[] getAndRemoveEventsBefore(java.util.Date date,
SubscriberInterface si)
date - is the reference date consideredsi - is the subscriber account to be queried
public void removeEvents(SubscriberInterface si)
si - is the subscriber account to be removed
public void removeEvents(SubscriberInterface si,
EventInterface[] eventList)
si - is the subscriber interface (account) to be consideredeventList - is the list of events to be removedpublic void clearAllEvents()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||