org.objectweb.proactive.core.event
Class FutureEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byorg.objectweb.proactive.core.event.ProActiveEvent
          extended byorg.objectweb.proactive.core.event.FutureEvent
All Implemented Interfaces:
java.io.Serializable

public class FutureEvent
extends ProActiveEvent
implements java.io.Serializable

A FutureEvent occurs when a FuturProxy blocks the executing Thread because the result is not yet available.

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

Field Summary
static int RECEIVED_FUTURE_RESULT
          Created when a Thread continues
static int WAIT_BY_NECESSITY
          Created when a Thread is blocked.
 
Fields inherited from class org.objectweb.proactive.core.event.ProActiveEvent
GENERIC_TYPE, timeStamp, type
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
FutureEvent(UniqueID bodyID, UniqueID creatorID, int type)
          Creates a new FutureEvent based on the given FutureProxy
 
Method Summary
 UniqueID getBodyID()
          Returns the UniqueID of the body that is waiting
 UniqueID getCreatorID()
          Returns the UniqueID of the body that created the corresponding Future
 java.lang.String toString()
           
 
Methods inherited from class org.objectweb.proactive.core.event.ProActiveEvent
getTimeStamp, getType
 
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

WAIT_BY_NECESSITY

public static final int WAIT_BY_NECESSITY
Created when a Thread is blocked.

See Also:
Constant Field Values

RECEIVED_FUTURE_RESULT

public static final int RECEIVED_FUTURE_RESULT
Created when a Thread continues

See Also:
Constant Field Values
Constructor Detail

FutureEvent

public FutureEvent(UniqueID bodyID,
                   UniqueID creatorID,
                   int type)
Creates a new FutureEvent based on the given FutureProxy

Parameters:
bodyID - the UniqueID of the body that is waiting for the future result
creatorID - the UniqueID of the body that created the corresponding Future
type - the type of the event that occured
Method Detail

getCreatorID

public UniqueID getCreatorID()
Returns the UniqueID of the body that created the corresponding Future

Returns:
the UniqueID of the body that created the corresponding Future

getBodyID

public UniqueID getBodyID()
Returns the UniqueID of the body that is waiting

Returns:
the UniqueID of the body that is waiting

toString

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


Copyright ? October 2004 INRIA All Rights Reserved.