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

Variable Index

 o IDLEN_SIZE
 o ID_PREFIX
 o KILL_PREFIX

Constructor Index

 o KillMessage(String)
Save the agent id for later use

Method Index

 o 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.
 o parse(byte[], int)
Parse a kill message.

Variables

 o KILL_PREFIX
  public final static String KILL_PREFIX
 o ID_PREFIX
  public final static String ID_PREFIX
 o IDLEN_SIZE
  public static int IDLEN_SIZE

Constructors

 o KillMessage
  public KillMessage(String AgentID)
Save the agent id for later use

Methods

 o 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
 o 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