jvm.message
Class MessageConstants

java.lang.Object
  |
  +--jvm.message.MessageConstants

public class MessageConstants
extends java.lang.Object

A class that defines some Message specific constants.

Written: Radu Sion
Version: 0.21
Source: MessageConstants.java

See Also:
Message

TD ALIGN="right" VALIGN="top" WIDTH="1%"> static java.lang.String
Field Summary
static java.lang.String ADDTOGRP_ID
          ADD me also to this group please says the client.
static EntityID BCAST_EID
          Special EntityID object that should be used as destination when sending broadcasts on local server.
static GroupID BCAST_GID
          Special GroupID object that includes/matches all groups on local server.
static java.lang.String BROADCAST
          Single server broadcast destination.
static java.lang.String CTS_ID
          Clear To Send says server.
static java.lang.String DATA_ID
          Data message type.
static java.lang.String DNF_ID
          Destination not found says the server.
static java.lang.String DOWN_ID
          Some entity went down says server.
static java.lang.String ECHO_ID
          Send me a NOP message says client to server or server to client.
static java.lang.String GROUP_BROADCAST
          Broadcast inside a group on a given server or inside the whole medium.
static java.lang.String IAMSERVER_ID
          I am a server says a server to another.
static java.lang.String INVALID
          Invalid destination.
INVRQ_ID
          Invalid request says server.
static java.lang.String LISTENTITIES_ID
          Send me a vector with all your connected active entityid's, says the client to the server or a server to another server.
static java.lang.String LISTSERVERS_ID
          Send me a vector with all your active serverid's, says the client to the server or a server to another server.
static java.lang.String LOGOUT_ID
          Please log me out says the client.
static java.lang.String NEWFILTER_ID
          Please set a new message filter for me.
static EntityID NO_EID
          Special EntityID object that should be used instead of returning null (entity id)
static java.lang.String NOP_ID
          No OPeration message.
static java.lang.String OK_ID
          Request fulfilled says server.
static EntityID RBCAST_EID
          Special EntityID object that should be used as destination when sending a global broadcast on all connected servers.
static java.lang.String REMOTE_BROADCAST
          Broadcast on all connected servers to all entities connected.
static java.lang.String RESET_ID
          Reset yourself says server OR please reset me (send me reset message) says client.
static java.lang.String RMFROMGRP_ID
          Please remove me from this group says the client.
static java.lang.String SERVER
          Single server destination.
static EntityID SERVER_EID
          Special EntityID object that should be used as destination when directing requests to the server.
static java.lang.String UNKNOWN
          Unknown destination.
static EntityID UNKNOWN_EID
          Special EntityID object that should be used when entity is unknown.
 
Constructor Summary
MessageConstants()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INVALID

public static final java.lang.String INVALID
Invalid destination. (entity name)

SERVER

public static final java.lang.String SERVER
Single server destination. (entity name)

BROADCAST

public static final java.lang.String BROADCAST
le server broadcast destination. (entity name)

GROUP_BROADCAST

public static final java.lang.String GROUP_BROADCAST
Broadcast inside a group on a given server or inside the whole medium. (entity name)

REMOTE_BROADCAST

public static final java.lang.String REMOTE_BROADCAST
Broadcast on all connected servers to all entities connected. (entity name)

UNKNOWN

public static final java.lang.String UNKNOWN
Unknown destination. (entity name)

SERVER_EID

public static final EntityID SERVER_EID
Special EntityID object that should be used as destination when directing requests to the server. (entity id)

NO_EID

public static final EntityID NO_EID
Special EntityID object that should be used instead of returning null (entity id)

BCAST_EID

public static final EntityID BCAST_EID
Special EntityID object that should be used as destination when sending broadcasts on local server. (entity id)

RBCAST_EID

public static final EntityID RBCAST_EID
Special EntityID object that should be used as destination when sending a global broadcast on all connected servers. (entity id)

UNKNOWN_EID

public static final EntityID UNKNOWN_EID
Special EntityID object that should be used when entity is unknown. (entity id)

BCAST_GID

public static final GroupID BCAST_GID
Special GroupID object that includes/matches all groups on local server. (group id)

DOWN_ID

public static final java.lang.String DOWN_ID
Some entity went down says server. Data part contains entity id (message type)

CTS_ID

public static final java.lang.String CTS_ID
Clear To Send says server. (message type) Obsolete.

RESET_ID

public static final java.lang.String RESET_ID
Reset yourself says server OR please reset me (send me reset message) says client. The data part contains a vector of GroupID objects representing the groups to which this entity belongs to at that moment. (message type)
See Also:
Entity.getGroups()

ECHO_ID

public static final java.lang.String ECHO_ID
Send me a NOP message says client to server or server to client. The NOP reply should contain the data that this message contains. (message type)
See Also:
Entity.getGroups()

INVRQ_ID

public static final java.lang.String INVRQ_ID
Invalid request says server. Data part contains request id of the invalid request. (message type)

OK_ID

public static final java.lang.String OK_ID
Request fulfilled says server. Data part contains message type (request id) of the just fullfiled request message. (message type)

DNF_ID

public static final java.lang.String DNF_ID
Destination not found says the server. Data part contains EntityID of the invalid destination in the single destination case or the ServerID of the invalid destination in the multi-destination message case. (message type)

DATA_ID

public static final java.lang.String DATA_ID
Data message type. (message type)

NOP_ID

public static final java.lang.String NOP_ID
No OPeration message. The Data field contains null or the data from a prev ECHO request message in the case of ECHO request. (message type)

ADDTOGRP_ID

public static final java.lang.String ADDTOGRP_ID
ADD me also to this group please says the client. Data part contains GroupID of the group to be added to. (message type)

LISTENTITIES_ID

public static final java.lang.String LISTENTITIES_ID
Send me a vector with all your connected active entityid's, says the client to the server or a server to another server. (message type) NOT USED YET.

LISTSERVERS_ID

public static final java.lang.String LISTSERVERS_ID
Send me a vector with all your active serverid's, says the client to the server or a server to another server. (message type) NOT USED YET.

RMFROMGRP_ID

public static final java.lang.String RMFROMGRP_ID
Please remove me from this group says the client. Data contains the GroupID. (message type)

LOGOUT_ID

public static final java.lang.String LOGOUT_ID
Please log me out says the client. (message type)

NEWFILTER_ID

public static final java.lang.String NEWFILTER_ID
Please set a new message filter for me. Data part contains the new MessageFilter object to use when sending messages to this client (from other clients). (message type)

IAMSERVER_ID

public static final java.lang.String IAMSERVER_ID
I am a server says a server to another. Data part contains ServerID object of sender server. (message type)
Constructor Detail

MessageConstants

public MessageConstants()