|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmadkit.kernel.Message
madkit.netcomm.NetworkMessage
public final class NetworkMessage
Internal communication messages. Used for request within the netcomm MAS.
Field Summary | |
---|---|
static int |
CONNECT_KERNEL
Used to request the RouterAgent to create a connection with a distant client The argument is a vector containing: 0. the socket to use in the connection. |
static int |
DIE
Used to kill the p2pAgents |
static int |
DISCONNECT
Used to demand a P2PAgent to close the connection with its distant kernel |
static int |
DISTANT_MESSAGE
Used to indicate a P2PAgent that the argument is a distant message that should be sent to the kernel on the other end. |
static int |
FOWARD_TO_KERNEL
Used to request the Netagent to forward a message to the local kernel. |
static int |
HANDLE_KERNEL_COMM
Used to request a multipleConnectionHandler to handle the communication with a distant kernel. |
static int |
KERNEL_CONNECTED
This type of message is used to inform of a new Kernel connection. |
static int |
KERNEL_DISCONNECTED
This type of message is used to inform of a new Kernel disconnection. |
static int |
ROUTE_MESSAGE
Used to ask the Router Agent to Route a message; |
static int |
SYNCH_REQUEST
This type of messages request to the Router agent to build the HashSet containing the known kernel, their SocketKernels and the agent to route it. |
static int |
SYNCH_REQUEST_REPLY
This type of message is the reponse of the RouterAgent to the sender of a SYNCH_REQUEST The sent argument is a HashSet containg DistantKernelInformation objects. |
static int |
UPDATE_AGENCIES_INFORMATIONS
Used to allow an agent to get the KernelAddress of the agent named name. |
static int |
UPDATE_ROUTE
Used to request the router to update the agent who connects the kernel with a distant kernel. |
static int |
UPDATE_ROUTE_DONE
Used to ack a request to update a route. |
Constructor Summary | |
---|---|
NetworkMessage(int type,
java.lang.Object arg)
Creates a NetworkMessage type. |
Method Summary | |
---|---|
java.lang.Object |
getArgument()
Gets the argument of the message. |
int |
getType()
Gets the message type |
Methods inherited from class madkit.kernel.Message |
---|
clone, getCreationDate, getReceiver, getSender, toString |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int SYNCH_REQUEST
SYNCH_REQUEST_REPLY
,
Constant Field Valuespublic static final int SYNCH_REQUEST_REPLY
SYNCH_REQUEST
,
Constant Field Valuespublic static final int KERNEL_CONNECTED
public static final int KERNEL_DISCONNECTED
public static final int DISCONNECT
public static final int FOWARD_TO_KERNEL
public static final int DISTANT_MESSAGE
public static final int ROUTE_MESSAGE
public static final int CONNECT_KERNEL
public static final int DIE
public static final int HANDLE_KERNEL_COMM
public static final int UPDATE_ROUTE
public static final int UPDATE_ROUTE_DONE
public static final int UPDATE_AGENCIES_INFORMATIONS
Constructor Detail |
---|
public NetworkMessage(int type, java.lang.Object arg)
type
- Type of the messagearg
- message type dependant Argument.Method Detail |
---|
public int getType()
public java.lang.Object getArgument()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |