public class DatastoreEvent extends GateEvent
Modifier and Type | Field and Description |
---|---|
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 |
FEATURES_UPDATED, type
source
Constructor and Description |
---|
DatastoreEvent(DataStore source,
int type,
Resource res,
Object resourceID)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Resource |
getResource()
Gets the resource involved in this event
|
Object |
getResourceID()
Gets the ID of the resource involved in this event
|
getSource, toString
protected Resource resource
protected Object resourceID
public static final int RESOURCE_ADOPTED
public static final int RESOURCE_DELETED
public static final int RESOURCE_WRITTEN
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 datastoreCopyright © 2024 GATE. All rights reserved.