galaxy.lang
Class GalaxyMessage

java.lang.Object
  |
  +--galaxy.lang.GalaxyMessage
Direct Known Subclasses:
BrokerEndMessage, BrokerStartMessage, DestroyMessage, DisconnectMessage, ErrorMessage, NewMessage, ObjectMessage, PostponeMessage, ReplyMessage

public abstract class GalaxyMessage
extends java.lang.Object


Field Summary
protected  java.lang.Object data
           
static int GAL_BROKER_END_MSG_TYPE
           
static int GAL_BROKER_START_MSG_TYPE
           
static int GAL_DESTROY_MSG_TYPE
           
static int GAL_DISCONNECT_MSG_TYPE
           
static int GAL_ERROR_MSG_TYPE
           
static int GAL_MESSAGE_MSG_TYPE
           
static int GAL_OBJECT_MSG_TYPE
          Message Type information
static int GAL_POSTPONE_MSG_TYPE
           
static int GAL_REPLY_MSG_TYPE
           
protected  int msgType
           
static java.util.Map typeToName
           
 
Constructor Summary
GalaxyMessage()
           
 
Method Summary
static GalaxyMessage createMessage(java.lang.Object data, int type)
           
 java.lang.Object getData()
           
 int getType()
           
static java.lang.String getTypeName(int type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GAL_OBJECT_MSG_TYPE

public static final int GAL_OBJECT_MSG_TYPE
Message Type information

GAL_MESSAGE_MSG_TYPE

public static final int GAL_MESSAGE_MSG_TYPE

GAL_REPLY_MSG_TYPE

public static final int GAL_REPLY_MSG_TYPE

GAL_DESTROY_MSG_TYPE

public static final int GAL_DESTROY_MSG_TYPE

GAL_BROKER_START_MSG_TYPE

public static final int GAL_BROKER_START_MSG_TYPE

GAL_BROKER_END_MSG_TYPE

public static final int GAL_BROKER_END_MSG_TYPE

GAL_ERROR_MSG_TYPE

public static final int GAL_ERROR_MSG_TYPE

GAL_DISCONNECT_MSG_TYPE

public static final int GAL_DISCONNECT_MSG_TYPE

GAL_POSTPONE_MSG_TYPE

public static final int GAL_POSTPONE_MSG_TYPE

msgType

protected int msgType

data

protected java.lang.Object data

typeToName

public static java.util.Map typeToName
Constructor Detail

GalaxyMessage

public GalaxyMessage()
Method Detail

getData

public java.lang.Object getData()

getType

public int getType()

createMessage

public static final GalaxyMessage createMessage(java.lang.Object data,
                                                int type)
                                         throws java.lang.Exception

getTypeName

public static java.lang.String getTypeName(int type)