|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectequip.runtime.Object
equip.runtime.ValueBase
equip.data.ItemData
equip.data.EventPattern
equip.data.EventPatternImpl
Implementation of IDL'd abstract class EventPattern
| Field Summary |
| Fields inherited from class equip.data.EventPattern |
deleteItemOnMatch, deleteOnCheck, deleteOnMatch, eventTemplates, itemTemplates, local, matched |
| Fields inherited from class equip.data.ItemData |
id, name |
| Constructor Summary | |
EventPatternImpl()
|
|
| Method Summary | |
void |
initAsCompoundEventMonitor(Event[] eventTemplates,
boolean local)
convenience initialisation: version of initAsSimpleEventMonitor(equip.data.Event, boolean) for multiple event templates. |
void |
initAsCompoundItemMonitor(ItemData[] itemTemplates,
boolean local)
convenience initialisation: version of initAsSimpleItemMonitor(equip.data.ItemData, boolean) for multiple item templates. |
void |
initAsSimpleCollect(ItemData itemTemplate,
boolean local)
convenience initialisation: tuplespace collect - all matching items are returned and deleted (out) (NBonly works on local dataspace at present). |
void |
initAsSimpleCopyCollect(ItemData itemTemplate,
boolean local)
convenience initialisation: tuplespace copy-collect - all matching items are returned (read) (NBonly works on local dataspace at present). |
void |
initAsSimpleEventMonitor(Event eventTemplate,
boolean local)
convenience initialisation: ongoing monitor for simple events, rather than data items. |
void |
initAsSimpleItemMonitor(ItemData itemTemplate,
boolean local)
convenience initialisation: like an ongoing copy-collect: makes an event pattern for Add, update and delete events on the matching itemTemplate (works globally but asynchrnously). |
void |
initAsSimpleOut(ItemData itemTemplate,
boolean local)
convenience initialisation: tuplespace out - single matching item, which is atomically removed from the data space (NBonly works on local dataspace at present). |
void |
initAsSimpleRead(ItemData itemTemplate,
boolean local)
convenience initialisation: tuplespace read - single matching item (NBonly works on local dataspace at present). |
void |
initAsSimpleReadp(ItemData itemTemplate,
boolean local)
convenience initialisation: tuplespace readp (predicate) - single matching item, or null if no item is present at the moment (read waits for an item) (NBonly works on local dataspace at present). |
| Methods inherited from class equip.data.EventPattern |
_equals_helper, _matches_helper, equals, getModuleName, matches, readObject, writeObject |
| Methods inherited from class equip.data.ItemData |
_equals_helper, _matches_helper |
| Methods inherited from class equip.runtime.ValueBase |
_equals_helper, _matches_helper, clone |
| Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public EventPatternImpl()
| Method Detail |
public void initAsSimpleRead(ItemData itemTemplate,
boolean local)
EventPattern
initAsSimpleRead in class EventPattern
public void initAsSimpleReadp(ItemData itemTemplate,
boolean local)
EventPattern
initAsSimpleReadp in class EventPattern
public void initAsSimpleOut(ItemData itemTemplate,
boolean local)
EventPattern
initAsSimpleOut in class EventPattern
public void initAsSimpleCopyCollect(ItemData itemTemplate,
boolean local)
EventPattern
initAsSimpleCopyCollect in class EventPattern
public void initAsSimpleCollect(ItemData itemTemplate,
boolean local)
EventPattern
initAsSimpleCollect in class EventPattern
public void initAsSimpleItemMonitor(ItemData itemTemplate,
boolean local)
EventPattern
Using the ItemEventKind.EQDATA_KIND_PRESENT kind (or
wildcard) this also returns items existing when the patterns
is first added to a session. It will then return
add/update/delete events matching until the pattern is
removed.
This is the main method used for inter-dataspace replication, since a non-local item monitor will be copied to other connected dataspace replicas and cause matching items to be copied to and kept up to date in the originating dataspace.
initAsSimpleItemMonitor in class EventPattern
public void initAsCompoundItemMonitor(ItemData[] itemTemplates,
boolean local)
EventPatternEventPattern.initAsSimpleItemMonitor(equip.data.ItemData, boolean) for multiple item templates.
initAsCompoundItemMonitor in class EventPattern
public void initAsSimpleEventMonitor(Event eventTemplate,
boolean local)
EventPatternUsed for stateless event distribution, e.g. comparable to Elvin.
initAsSimpleEventMonitor in class EventPattern
public void initAsCompoundEventMonitor(Event[] eventTemplates,
boolean local)
EventPatternEventPattern.initAsSimpleEventMonitor(equip.data.Event, boolean) for multiple event templates.
initAsCompoundEventMonitor in class EventPattern
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||