public abstract class Event extends Object implements Serializable, PublicCloneable<Event>
| Modifier and Type | Field and Description |
|---|---|
protected int |
eventType |
protected String |
machine |
static int |
TYPE_CHANGE |
static int |
TYPE_DELETE |
static int |
TYPE_NEW |
static int |
TYPE_UNSPECIFIED |
| Constructor and Description |
|---|
Event() |
Event(String machine) |
Event(String machine,
int type) |
| Modifier and Type | Method and Description |
|---|---|
Event |
clone() |
String |
getMachine()
Every event originates from a certain machine, which is identified by a String.
|
int |
getType()
Most events will come in certain 'types', default contants which are provided are
TYPE_NEW, TYPE_CHANGE and TYPE_DELETE. |
boolean |
isLocal() |
public static final int TYPE_UNSPECIFIED
public static final int TYPE_NEW
public static final int TYPE_CHANGE
public static final int TYPE_DELETE
protected int eventType
protected String machine
public Event(String machine, int type)
machine - The machine name. If null the local machine name is extracted from MMBase, using
MMBaseContext.getMachineName()public Event(String machine)
public Event()
public String getMachine()
MMBaseContext.getMachineName() then this is a local event.public boolean isLocal()
public int getType()
TYPE_NEW, TYPE_CHANGE and TYPE_DELETE.MMBase 1.9-SNAPSHOT - ${javadoctimestamp}