org.objectweb.proactive.ic2d.spy
Class SpyMessageEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.objectweb.proactive.core.event.ProActiveEvent
          extended by org.objectweb.proactive.ic2d.spy.SpyEvent
              extended by org.objectweb.proactive.ic2d.spy.SpyMessageEvent
All Implemented Interfaces:
java.io.Serializable

public class SpyMessageEvent
extends SpyEvent
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
protected  UniqueID destinationID
          The UniqueID of the body receiving the call
protected  java.lang.String methodName
          The name of the method called
protected  int requestQueueLength
          The request queue length of the body that sent the event or -1
protected  long sequenceNumber
          The unique sequence number for the call
protected  UniqueID sourceID
          The UniqueID of the body sending the call
 
Fields inherited from class org.objectweb.proactive.ic2d.spy.SpyEvent
BODY_CREATION_EVENT_TYPE, BODY_EVENT_TYPE, bodyID, GENERIC_TYPE, OBJECT_RECEIVED_FUTURE_RESULT_TYPE, OBJECT_WAIT_BY_NECESSITY_TYPE, OBJECT_WAIT_FOR_REQUEST_TYPE, pos, REPLY_RECEIVED_MESSAGE_TYPE, REPLY_SENT_MESSAGE_TYPE, REQUEST_RECEIVED_MESSAGE_TYPE, REQUEST_SENT_MESSAGE_TYPE, SERVING_STARTED_TYPE, VOID_REQUEST_SERVED_TYPE
 
Fields inherited from class org.objectweb.proactive.core.event.ProActiveEvent
timeStamp, type
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
SpyMessageEvent(int eventType, MessageEvent message)
           
 
Method Summary
 UniqueID getDestinationBodyID()
           
 java.lang.String getMethodName()
           
 int getRequestQueueLength()
           
 long getSequenceNumber()
           
 UniqueID getSourceBodyID()
          Return the id of the sender of the request
 boolean isReplyMessage()
          Returns true if the event was created when a reply was sent or received or a void request was finished.
 boolean isRequestMessage()
          Returns true if the event was created when a request was sent or received.
 boolean matches(SpyMessageEvent matchingEvent)
          Returns whether matching event belongs to the same Qsend Qrecv Rsend Rrecv set
 java.lang.String toString()
           
 boolean wasSent()
          Returns whether the body that created the event sent the message included in the event or received it.
 
Methods inherited from class org.objectweb.proactive.ic2d.spy.SpyEvent
eventTypeAsString, getBodyID, getPos, setPos
 
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

methodName

protected java.lang.String methodName
The name of the method called


sourceID

protected UniqueID sourceID
The UniqueID of the body sending the call


destinationID

protected UniqueID destinationID
The UniqueID of the body receiving the call


sequenceNumber

protected long sequenceNumber
The unique sequence number for the call


requestQueueLength

protected int requestQueueLength
The request queue length of the body that sent the event or -1

Constructor Detail

SpyMessageEvent

public SpyMessageEvent(int eventType,
                       MessageEvent message)
Method Detail

toString

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

getSourceBodyID

public UniqueID getSourceBodyID()
Return the id of the sender of the request


getMethodName

public java.lang.String getMethodName()

getSequenceNumber

public long getSequenceNumber()

getDestinationBodyID

public UniqueID getDestinationBodyID()

getRequestQueueLength

public int getRequestQueueLength()

wasSent

public boolean wasSent()
Returns whether the body that created the event sent the message included in the event or received it.


isRequestMessage

public boolean isRequestMessage()
Returns true if the event was created when a request was sent or received.


isReplyMessage

public boolean isReplyMessage()
Returns true if the event was created when a reply was sent or received or a void request was finished.


matches

public boolean matches(SpyMessageEvent matchingEvent)
Returns whether matching event belongs to the same Qsend Qrecv Rsend Rrecv set



Copyright 2001-2007 INRIA All Rights Reserved.