Class agent.util.KillMessage
All Packages Class Hierarchy This Package Previous Next Index
Class agent.util.KillMessage
java.lang.Object
|
+----agent.util.Message
|
+----agent.util.KillMessage
- public class KillMessage
- extends Message
A message telling the recipient to terminate with extreme
prejudice any instance of the named Agent that might be running
on his server. Format:
Message hdr Kill 4 bytes
Length of length 4 bytes ascii integer
Length length bytes, ascii integer
ID
Field hdr ID__ 4 bytes
length 4 bytes ascii integer
ID data length bytes
-
IDLEN_SIZE
-
-
ID_PREFIX
-
-
KILL_PREFIX
-
-
KillMessage(String)
- Save the agent id for later use
-
createMessage()
- Build a kill message in the byte array msg from the
previously constructed instance variables:
aid
When this method is done, the byte array msg contains a valid
kill message that can be sent over the wire.
-
parse(byte[], int)
- Parse a kill message.
KILL_PREFIX
public final static String KILL_PREFIX
ID_PREFIX
public final static String ID_PREFIX
IDLEN_SIZE
public static int IDLEN_SIZE
KillMessage
public KillMessage(String AgentID)
- Save the agent id for later use
createMessage
public void createMessage()
- Build a kill message in the byte array msg from the
previously constructed instance variables:
aid
When this method is done, the byte array msg contains a valid
kill message that can be sent over the wire.
- Overrides:
- createMessage in class Message
parse
public String parse(byte b[],
int co)
- Parse a kill message.
- Parameters:
- b - The byte array containing the kill message data
- co - The length of the message.
All Packages Class Hierarchy This Package Previous Next Index