org.glite.ce.monitorapij.types
Class Event

java.lang.Object
  extended byorg.glite.ce.monitorapij.types.EventBase
      extended byorg.glite.ce.monitorapij.types.Event
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable
Direct Known Subclasses:
SensorEvent

public class Event
extends EventBase
implements java.io.Serializable, java.lang.Cloneable

This class represents an event raised by a sensor or a resource holder. This will be processed by the monitor.

Version:
$Revision: 1.3 $
Author:
Luigi Zangrando (zangrando@pd.infn.it)
See Also:
Serialized Form

Constructor Summary
Event()
          Creates a new _Event object.
Event(int eventID, java.util.Calendar timestamp)
          Creates a new _Event object specifying the eventID and the timestamp.
 
Method Summary
 java.lang.Object clone()
          Create an exact copy of this event.
 
Methods inherited from class org.glite.ce.monitorapij.types.EventBase
equals, getDeserializer, getID, getMessage, getMessage, getProducer, getSerializer, getTimestamp, getTypeDesc, hashCode, setID, setMessage, setMessage, setProducer, setTimestamp
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Event

public Event()
Creates a new _Event object. The eventID is set to -1 and the timestamp is set to the actual time.


Event

public Event(int eventID,
             java.util.Calendar timestamp)
Creates a new _Event object specifying the eventID and the timestamp.

Parameters:
eventID - An int identifying this event.
timestamp - The Calendar associated with this event.
Method Detail

clone

public java.lang.Object clone()
Create an exact copy of this event. In particular the message and producer fields of this event are copied in the cloned event.

Returns:
The cloned event.