Rice Pastry API

rice.pastry.messaging
Class PJavaSerializedDeserializer

java.lang.Object
  extended by rice.pastry.messaging.JavaSerializedDeserializer
      extended by rice.pastry.messaging.PJavaSerializedDeserializer
All Implemented Interfaces:
MessageDeserializer
Direct Known Subclasses:
PeriodicLeafSetProtocol.PLSPMessageDeserializer

public abstract class PJavaSerializedDeserializer
extends JavaSerializedDeserializer

The purpose of this class is just for programming convienience to disambiguate between rice.p2p.commonapi and rice.pastry with the interfaces/classes Message NodeHandle

Author:
Jeff Hoye

Field Summary
 
Fields inherited from class rice.pastry.messaging.JavaSerializedDeserializer
pn
 
Constructor Summary
PJavaSerializedDeserializer(PastryNode pn)
           
 
Method Summary
abstract  Message deserialize(InputBuffer buf, short type, int priority, NodeHandle sender)
           
 Message deserialize(InputBuffer buf, short type, int priority, NodeHandle sender)
          RawMessage ret = super.deserialize(); if (ret != null) return ret; Endpoint endpoint; switch(type) { case 1: return new MyMessage(buf, endpoint); }
 
Methods inherited from class rice.pastry.messaging.JavaSerializedDeserializer
setAlwaysUseJavaSerialization
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PJavaSerializedDeserializer

public PJavaSerializedDeserializer(PastryNode pn)
Method Detail

deserialize

public abstract Message deserialize(InputBuffer buf,
                                    short type,
                                    int priority,
                                    NodeHandle sender)
                             throws java.io.IOException
Throws:
java.io.IOException

deserialize

public Message deserialize(InputBuffer buf,
                           short type,
                           int priority,
                           NodeHandle sender)
                    throws java.io.IOException
Description copied from interface: MessageDeserializer
RawMessage ret = super.deserialize(); if (ret != null) return ret; Endpoint endpoint; switch(type) { case 1: return new MyMessage(buf, endpoint); }

Specified by:
deserialize in interface MessageDeserializer
Overrides:
deserialize in class JavaSerializedDeserializer
Throws:
java.io.IOException

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.


Imprint-Dataprotection