|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rice.pastry.messaging.JavaSerializedDeserializer
public class JavaSerializedDeserializer
Handles "old" java serialized messages for programming convienience and reverse compatability.
Field Summary | |
---|---|
protected PastryNode |
pn
|
Constructor Summary | |
---|---|
JavaSerializedDeserializer(PastryNode pn)
|
Method Summary | |
---|---|
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); } |
void |
setAlwaysUseJavaSerialization(boolean val)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected PastryNode pn
Constructor Detail |
---|
public JavaSerializedDeserializer(PastryNode pn)
Method Detail |
---|
public void setAlwaysUseJavaSerialization(boolean val)
public Message deserialize(InputBuffer buf, short type, int priority, NodeHandle sender) throws java.io.IOException
MessageDeserializer
deserialize
in interface MessageDeserializer
java.io.IOException
|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |