Rice Pastry API

rice.p2p.util.rawserialization
Class JavaSerializedMessage

java.lang.Object
  extended by rice.p2p.util.rawserialization.JavaSerializedMessage
All Implemented Interfaces:
java.io.Serializable, Message, RawMessage

public class JavaSerializedMessage
extends java.lang.Object
implements RawMessage

Wrapper that converts rice.pastry.messaging.Message to rice.pastry.messageing.PRawMessage

Version:
$Id: pretty.settings 2305 2005-03-11 20:22:33Z jeffh $
Author:
Jeff Hoye
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface rice.p2p.commonapi.Message
HIGH_PRIORITY, LOW_PRIORITY, MAX_PRIORITY, MEDIUM_HIGH_PRIORITY, MEDIUM_LOW_PRIORITY, MEDIUM_PRIORITY
 
Constructor Summary
JavaSerializedMessage(Message msg)
          Constructor for JavaSerializedMessage.
 
Method Summary
 Message getMessage()
          Gets the Message attribute of the JavaSerializedMessage object
 int getPriority()
          Gets the Priority attribute of the JavaSerializedMessage object
 short getType()
          Gets the Type attribute of the JavaSerializedMessage object
 void serialize(OutputBuffer buf)
          DESCRIBE THE METHOD
 java.lang.String toString()
          Converts to a String representation of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JavaSerializedMessage

public JavaSerializedMessage(Message msg)
Constructor for JavaSerializedMessage.

Parameters:
msg - DESCRIBE THE PARAMETER
Method Detail

getType

public short getType()
Gets the Type attribute of the JavaSerializedMessage object

Specified by:
getType in interface RawMessage
Returns:
The Type value

getMessage

public Message getMessage()
Gets the Message attribute of the JavaSerializedMessage object

Returns:
The Message value

getPriority

public int getPriority()
Gets the Priority attribute of the JavaSerializedMessage object

Specified by:
getPriority in interface Message
Returns:
The Priority value

serialize

public void serialize(OutputBuffer buf)
               throws java.io.IOException
DESCRIBE THE METHOD

Specified by:
serialize in interface RawMessage
Parameters:
buf - DESCRIBE THE PARAMETER
Throws:
java.io.IOException - DESCRIBE THE EXCEPTION

toString

public java.lang.String toString()
Converts to a String representation of the object.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of the object.

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.