org.objectweb.proactive.core.event
Class ProActiveEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--org.objectweb.proactive.core.event.ProActiveEvent
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
BodyEvent, FutureEvent, MessageEvent, MigrationEvent, RequestQueueEvent, RuntimeRegistrationEvent

public class ProActiveEvent
extends java.util.EventObject
implements java.io.Serializable

Base class of all events occuring in ProActive. ProActiveEvent provides a event type and a timestamp.

Should be subclassed to create more specific events.

Since:
ProActive 0.9
Version:
1.0, 2001/10/23
Author:
ProActive Team
See Also:
EventObject, Serialized Form

Field Summary
static int GENERIC_TYPE
           
protected  long timeStamp
          The timestamp
protected  int type
          type of the message
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ProActiveEvent(java.lang.Object obj, int type)
          Creates a new ProActiveEvent based on the given object and type
 
Method Summary
 long getTimeStamp()
          Returns the time this event was created
 int getType()
          Returns the type of this event
 java.lang.String toString()
           
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

GENERIC_TYPE

public static final int GENERIC_TYPE
See Also:
Constant Field Values

type

protected int type
type of the message


timeStamp

protected long timeStamp
The timestamp

Constructor Detail

ProActiveEvent

public ProActiveEvent(java.lang.Object obj,
                      int type)
Creates a new ProActiveEvent based on the given object and type

Parameters:
obj - the object originating of the event
type - the type of the event
Method Detail

getTimeStamp

public long getTimeStamp()
Returns the time this event was created

Returns:
the time this event was created

getType

public int getType()
Returns the type of this event

Returns:
the type of this event

toString

public java.lang.String toString()
Overrides:
toString in class java.util.EventObject


Copyright © April 2004 INRIA All Rights Reserved.