Rice Pastry API

rice.p2p.util
Class JavaSerializedMessage

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

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
 byte 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()
          DESCRIBE THE METHOD
 
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 byte 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()
DESCRIBE THE METHOD

Returns:
DESCRIBE THE RETURN VALUE

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.


Imprint-Dataprotection