com.evelopers.unimod.debug.protocol
Class JavaSpecificMessageCoder
java.lang.Object
com.evelopers.unimod.debug.protocol.JavaSpecificMessageCoder
- All Implemented Interfaces:
- MessageCoder
- public class JavaSpecificMessageCoder
- extends java.lang.Object
- implements MessageCoder
Uses java serialization to save objects into Strings.
Use it only for debugging and monitoring of Java applications.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JavaSpecificMessageCoder
public JavaSpecificMessageCoder()
decode
public Message decode(java.io.InputStream is)
throws MessageCoderException
- Specified by:
decode
in interface MessageCoder
- Throws:
MessageCoderException
encode
public void encode(Message m,
java.io.OutputStream os)
throws MessageCoderException
- Specified by:
encode
in interface MessageCoder
- Throws:
MessageCoderException
writeEventMessage
protected java.lang.Exception writeEventMessage(EventMessage m,
java.io.OutputStream os)
throws java.io.IOException
- Throws:
java.io.IOException
makeSerializable
protected void makeSerializable(EventMessage ms)
clearContext
protected void clearContext(EventMessage ms)
clearEventParameters
protected void clearEventParameters(EventMessage ms)
makeSerializableCopy
protected Event makeSerializableCopy(Event e)
makeSerializableCopy
protected StateMachineContext makeSerializableCopy(StateMachineContext c)
makeSerializableCopy
protected void makeSerializableCopy(StateMachineContext.Context oldCtx,
StateMachineContext.Context newCtx)
- Replace all not serializable objects with it's serializable handles