|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The interface to a data item store, used internally by
a DataDelegate to implement state storage
within a dataspace replica.
| Method Summary | |
boolean |
checkAdd(AddEvent add)
check if store would like to/be prepared to handle this AddEvent. |
void |
flush()
Flush any pending persistent records |
java.util.Enumeration |
getCandidateItemBindings(ItemData[] itemTemplates)
get the ItemBinding maintained by this store which should be considered when pattern matching the associated itemTemplates for an add/delete while present pattern. |
java.util.Enumeration |
getExpiredGUIDs(Time now)
returns GUIDs of all leased items expiring at or before time 'now'. |
Time |
getFirstExpireTime()
returns lowest (soonest, or furthest in past) expire time of any leased item in this store. |
ItemBinding |
getItemBinding(GUID id)
get the ItemBinding for the given id iff it is maintained by this store, else null. |
java.util.Enumeration |
getRemoveResponsibleGUIDs(RemoveResponsible remove)
get GUIDs of data items in this store which are process bound to the given responsible ID as per the RemoveResponsible event (or not, according to inverse flag). |
boolean |
handleAdd(AddEvent add)
request that store handle the Add event, adding to itself accordingly. |
boolean |
handleDelete(DeleteEvent del)
request that store handles the given delete, which it must iff it is currently maintaining state for the corresponding data item. |
boolean |
handleUpdate(UpdateEvent upd)
request that store handles the given update, which it must iff it is currently maintaining state for it. |
boolean |
holdsGUID(GUID id)
check if store is maintaining state for the given GUID. |
void |
terminate()
terminate - tidy up. |
void |
truncateExpireTimes(GUID responsible,
Time expire)
reduce lease on all leased items with given responsible id to expire at 'expire time'. |
| Method Detail |
public boolean handleAdd(AddEvent add)
add - The AddEvent to be handled.
IDataStore.checkAddpublic boolean checkAdd(AddEvent add)
AddEvent.
add - The AddEvent to be handled.
public boolean holdsGUID(GUID id)
GUID.
id - The GUID of the data item in question.
public boolean handleUpdate(UpdateEvent upd)
upd - the UpdateEvent to be handled.
public boolean handleDelete(DeleteEvent del)
public java.util.Enumeration getRemoveResponsibleGUIDs(RemoveResponsible remove)
remove - the RemoveResponsible event.
public ItemBinding getItemBinding(GUID id)
id - the id of the data item being requested.
ItemBinding for that item, else null iff
unknown to this store.public java.util.Enumeration getCandidateItemBindings(ItemData[] itemTemplates)
itemTemplates - array of template data items, else
null or zero length list for a wild-card (any item).
public Time getFirstExpireTime()
public java.util.Enumeration getExpiredGUIDs(Time now)
now - The current time of the expiration clock.
GUIDs of now expiring data items
which the call might now reasonably issue delete events
for).
public void truncateExpireTimes(GUID responsible,
Time expire)
responsible - required item responsible idexpire - the new expire time for matched items
public void terminate()
public void flush()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||