org.mmbase.core.event
Class Event
java.lang.Object
org.mmbase.core.event.Event
- All Implemented Interfaces:
- Cloneable, PublicCloneable, Serializable
- Direct Known Subclasses:
- IdEvent, NodeEvent, RelationEvent
- public abstract class Event
- extends Object
- implements Serializable, PublicCloneable
This class is the base class for all mmbase events
- Since:
- MMBase-1.8
- Version:
- $Id: Event.java,v 1.8 2006/07/06 09:52:30 michiel Exp $
- 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
MMBase.getMachineName()
Event
public Event(String machine)
getMachine
public String getMachine()
- Every event originates from a certain machine, which is identified by a String.
If this equals
MMBase.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 Object clone()
- Specified by:
clone in interface PublicCloneable
MMBase build 1.8.1.20060716