org.mmbase.core.event
Class Event
java.lang.Object
org.mmbase.core.event.Event
- All Implemented Interfaces:
- Serializable, Cloneable, PublicCloneable<Event>
- Direct Known Subclasses:
- IdEvent, LocalEvent, SystemEvent
public abstract class Event
- extends Object
- implements Serializable, PublicCloneable<Event>
This class is the base class for all mmbase events
- Since:
- MMBase-1.8
- Version:
- $Id: Event.java 44739 2011-01-12 08:52:31Z michiel $
- Author:
- Ernst Bunders
- See Also:
- Serialized Form
TYPE_UNSPECIFIED
public static final int TYPE_UNSPECIFIED
- See Also:
- Constant Field Values
TYPE_NEW
public static final int TYPE_NEW
- See Also:
- Constant Field Values
TYPE_CHANGE
public static final int TYPE_CHANGE
- See Also:
- Constant Field Values
TYPE_DELETE
public static final int TYPE_DELETE
- See Also:
- Constant Field Values
eventType
protected int eventType
machine
protected String machine
Event
public Event(String machine,
int type)
- Parameters:
machine - The machine name. If null the local machine name is extracted from MMBase, using
MMBaseContext.getMachineName()
Event
public Event(String machine)
Event
public Event()
- Since:
- MMBase-1.8.4
getMachine
public String getMachine()
- Every event originates from a certain machine, which is identified by a String.
If this equals
MMBaseContext.getMachineName() then this is a local event.
isLocal
public boolean isLocal()
getType
public int getType()
- Most events will come in certain 'types', default contants which are provided are
TYPE_NEW, TYPE_CHANGE and TYPE_DELETE.
clone
public Event clone()
- Specified by:
clone in interface PublicCloneable<Event>- Overrides:
clone in class Object
MMBase2 Utils 2.0-SNAPSHOT - 2013-03-30T06:24