|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.EventObject | +--gate.event.GateEvent | +--gate.event.DatastoreEvent
This class models events fired by datastores. Such events occur when new resources are adopted by a datastore or when an existing resource from the datastore is deleted.
Field Summary | |
static int |
RESOURCE_ADOPTED
The type of events fired when a resource has been adopted |
static int |
RESOURCE_DELETED
The type of events fired when a resource has been deleted from a datastore |
static int |
RESOURCE_WRITTEN
The type of events fired when a resource has wrote into the datastore |
Fields inherited from class gate.event.GateEvent |
FEATURES_UPDATED |
Constructor Summary | |
DatastoreEvent(DataStore source,
int type,
Resource res,
Object resourceID)
Constructor. |
Method Summary | |
Resource |
getResource()
Gets the resource involved in this event |
Object |
getResourceID()
Gets the ID of the resource involved in this event |
Methods inherited from class gate.event.GateEvent |
getType |
Methods inherited from class java.util.EventObject |
getSource, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int RESOURCE_ADOPTED
public static final int RESOURCE_DELETED
public static final int RESOURCE_WRITTEN
Constructor Detail |
public DatastoreEvent(DataStore source, int type, Resource res, Object resourceID)
source
- the datastore that originated the event.type
- the event type.res
- the resource that has been adopted/deleted/etc.resourceID
- the ID corresponding to the resource in this datastoreMethod Detail |
public Object getResourceID()
public Resource getResource()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |