com.khubla.pragmatach.plugin.cluster.multicast
Class MulticastMessage

java.lang.Object
  extended by com.khubla.pragmatach.plugin.cluster.multicast.MulticastMessage

public class MulticastMessage
extends Object

Author:
tome

Field Summary
static int MESSAGETYPE_GBYE
           
static int MESSAGETYPE_HELLO
          types of message
static int MESSAGETYPE_SOLICITUPDATE
           
static int MESSAGETYPE_UPDATE
           
 
Constructor Summary
MulticastMessage()
          ctor
MulticastMessage(int messageType, String messageContent)
          ctor
 
Method Summary
static MulticastMessage deserialize(byte[] messageBody)
          from string
 String getMessageContent()
           
 int getMessageType()
           
static byte[] serialize(MulticastMessage multicastMessage)
          to String
 void setMessageContent(String messageContent)
           
 void setMessageType(int messageType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MESSAGETYPE_HELLO

public static final int MESSAGETYPE_HELLO
types of message

See Also:
Constant Field Values

MESSAGETYPE_GBYE

public static final int MESSAGETYPE_GBYE
See Also:
Constant Field Values

MESSAGETYPE_SOLICITUPDATE

public static final int MESSAGETYPE_SOLICITUPDATE
See Also:
Constant Field Values

MESSAGETYPE_UPDATE

public static final int MESSAGETYPE_UPDATE
See Also:
Constant Field Values
Constructor Detail

MulticastMessage

public MulticastMessage()
ctor


MulticastMessage

public MulticastMessage(int messageType,
                        String messageContent)
ctor

Method Detail

deserialize

public static MulticastMessage deserialize(byte[] messageBody)
                                    throws PragmatachException
from string

Throws:
PragmatachException

serialize

public static byte[] serialize(MulticastMessage multicastMessage)
                        throws PragmatachException
to String

Throws:
PragmatachException

getMessageContent

public String getMessageContent()

getMessageType

public int getMessageType()

setMessageContent

public void setMessageContent(String messageContent)

setMessageType

public void setMessageType(int messageType)


Copyright © 2014 khubla.com. All rights reserved.