Class AbstractMessage

java.lang.Object
zleurtor.scanmanager.model.messages.AbstractMessage
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CloseConnectionMessage, HeartBeatMessage, IAmMessage, LogLevelErrorMessage, LogLevelMessage, LogLevelSuccessMessage, LogMessage, OptionsMessage, ShutdownMessage, SnapshotErrorMessage, SnapshotMessage, SnapshotSuccessMessage, StreamErrorMessage, StreamMessage, UpdateMessage, WhoAreYouMessage

public abstract class AbstractMessage extends Object implements Serializable
The super class of all the messages exchanged by the master and the slaves.
Author:
Zleurtor
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The message to broadcast to all the slaves to discover them.
    protected static final org.slf4j.Logger
    A Logger...
    static final String
    The message to send to stop the slave.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Constructs a new empty message.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected abstract AbstractMessage
    Set this message values to the ones in the given XML description.
    byte[]
    Serialize this object to an array of bytes (avoid the use of ObjectInputStream because of the presence of the handles that spend a lot of memory).
    protected abstract String
    Transform this message to an XML description.
    unserialize(byte[] serialized)
    Unserialize this object from an array of bytes (avoid the use of ObjectInputStream because of the presence of the handles that spend a lot of memory).

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait