|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
gate.event.GateEvent
gate.event.DatastoreEvent
public class 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 | |
---|---|
protected Resource |
resource
|
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 |
protected Object |
resourceID
|
Fields inherited from class gate.event.GateEvent |
---|
FEATURES_UPDATED, type |
Fields inherited from class java.util.EventObject |
---|
source |
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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected Resource resource
protected Object resourceID
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()
|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |