rice.pastry.messaging
Class PJavaSerializedDeserializer
java.lang.Object
rice.pastry.messaging.JavaSerializedDeserializer
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PJavaSerializedDeserializer
public PJavaSerializedDeserializer(PastryNode pn)
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
Copyright © 2001-2005 - Rice Pastry.