rice.rm.messaging
Class RMTimeoutMsg
java.lang.Object
|
+--rice.pastry.messaging.Message
|
+--rice.rm.messaging.RMMessage
|
+--rice.rm.messaging.RMTimeoutMsg
- All Implemented Interfaces:
- java.io.Serializable
- public class RMTimeoutMsg
- extends RMMessage
- implements java.io.Serializable
- Version:
- $Id: RMTimeoutMsg.java,v 1.2 2003/05/25 21:45:24 animesh Exp $
- Author:
- Animesh Nandi
- See Also:
- Serialized Form
Constructor Summary |
RMTimeoutMsg(rice.pastry.NodeHandle source,
rice.pastry.messaging.Address address,
rice.pastry.security.Credentials authorCred,
int seqno,
RMRequestKeysMsg.WrappedMsg _wmsg)
Constructor |
Method Summary |
void |
handleDeliverMessage(rice.rm.RMImpl rm)
If the RMResponseKeysMsg corresponding to the wrapped RMRequestKeysMsg
was received (done by having same 'eventId' field in RMRequestKeysMsg &
corresponding RMResponseKeysMsg) then nothing needs to be done. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
RMTimeoutMsg
public RMTimeoutMsg(rice.pastry.NodeHandle source,
rice.pastry.messaging.Address address,
rice.pastry.security.Credentials authorCred,
int seqno,
RMRequestKeysMsg.WrappedMsg _wmsg)
- Constructor
- Parameters:
source
- the local node itselfaddress
- the RM application addressauthorCred
- the credentials of the sourceseqno
- for debugging purposes only_wmsg
- the wrapped RMRequestKeysMsg
handleDeliverMessage
public void handleDeliverMessage(rice.rm.RMImpl rm)
- If the RMResponseKeysMsg corresponding to the wrapped RMRequestKeysMsg
was received (done by having same 'eventId' field in RMRequestKeysMsg &
corresponding RMResponseKeysMsg) then nothing needs to be done.
Otherwise, the wrapped RMRequestKeysMsg is resent, while incrementing
its attempt number. Note that after MAXATTEMPTS number of timeouts,
the message will be ignored even if not successfully delivered.
- Specified by:
handleDeliverMessage
in class RMMessage
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2001 - Rice Pastry.