rice.p2p.past.gc.messaging
Class GCCollectMessage
java.lang.Object
rice.p2p.past.messaging.PastMessage
rice.p2p.past.gc.messaging.GCCollectMessage
- All Implemented Interfaces:
- Message, RawMessage, java.io.Serializable
- public class GCCollectMessage
- extends PastMessage
- Version:
- $Id: GCCollectMessage.java 3274 2006-05-15 16:17:47Z jeffh $
- Author:
- Alan Mislove
- See Also:
- Serialized Form
|
Field Summary |
static short |
TYPE
DESCRIBE THE FIELD |
|
Method Summary |
short |
getType()
Gets the Type attribute of the GCCollectMessage object |
void |
returnResponse(Continuation c,
Environment env,
java.lang.String instance)
Method by which this message is supposed to return it's response - in this
case, it lets the continuation know that a the message was lost via the
receiveException method. |
void |
serialize(OutputBuffer buf)
DESCRIBE THE METHOD |
java.lang.String |
toString()
Returns a string representation of this message |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TYPE
public static final short TYPE
- DESCRIBE THE FIELD
- See Also:
- Constant Field Values
GCCollectMessage
public GCCollectMessage(int id,
NodeHandle source,
Id dest)
- Constructor
- Parameters:
id - The location to be storedsource - The source addressdest - The destination address
getType
public short getType()
- Gets the Type attribute of the GCCollectMessage object
- Returns:
- The Type value
returnResponse
public void returnResponse(Continuation c,
Environment env,
java.lang.String instance)
- Method by which this message is supposed to return it's response - in this
case, it lets the continuation know that a the message was lost via the
receiveException method.
- Specified by:
returnResponse in class PastMessage
- Parameters:
c - The continuation to return the reponse to.env - DESCRIBE THE PARAMETERinstance - DESCRIBE THE PARAMETER
toString
public java.lang.String toString()
- Returns a string representation of this message
- Returns:
- A string representing this message
serialize
public void serialize(OutputBuffer buf)
throws java.io.IOException
- DESCRIBE THE METHOD
- Specified by:
serialize in interface RawMessage- Overrides:
serialize in class PastMessage
- Parameters:
buf - DESCRIBE THE PARAMETER
- Throws:
java.io.IOException - DESCRIBE THE EXCEPTION
Copyright © 2001-2005 - Rice Pastry.