Class agent.util.StartMessage
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class agent.util.StartMessage

java.lang.Object
   |
   +----agent.util.Message
           |
           +----agent.util.StartMessage

public class StartMessage
extends Message
A message telling an AgentLauncher that the named Agent has started work on the named server. This message will be followed at some point by a ResultsMessage, telling the AgentLauncher that the Agent has finished. Format: Message hdr Star 4 bytes length of length 4 bytes ascii integer length length bytes ascii integer Agent ID Field hdr ID__ 4 bytes length 4 bytes ascii integer ID data length bytes Name of Server Field hdr Serv 4 bytes length 4 bytes ascii integer Server data length bytes
See Also:
Message

Variable Index

 o IDLEN_SIZE
 o ID_PREFIX
 o LOADLEN_SIZE
 o PREFIX_SIZE
 o SERVERLEN_SIZE
 o SERVER_PREFIX
 o START_PREFIX
 o server
 o sid

Constructor Index

 o StartMessage()
 o StartMessage(String, String)

Method Index

 o createMessage()
Create a start message from the instance variables: sid server which must have already been set via the constructor, or a call to parse.
 o parse(byte[], int)
Parse the specified byte array as a Start message.

Variables

 o PREFIX_SIZE
  public final static int PREFIX_SIZE
 o LOADLEN_SIZE
  public final static int LOADLEN_SIZE
 o IDLEN_SIZE
  public final static int IDLEN_SIZE
 o SERVERLEN_SIZE
  public final static int SERVERLEN_SIZE
 o START_PREFIX
  public final static String START_PREFIX
 o ID_PREFIX
  public final static String ID_PREFIX
 o SERVER_PREFIX
  public final static String SERVER_PREFIX
 o sid
  public String sid
 o server
  public String server

Constructors

 o StartMessage
  public StartMessage()
 o StartMessage
  public StartMessage(String AgentID,
                      String srv)

Methods

 o parse
  public void parse(byte b[],
                    int currentOffset)
Parse the specified byte array as a Start message. Fill in the public instance variables: sid server from the message data.
 o createMessage
  public void createMessage()
Create a start message from the instance variables: sid server which must have already been set via the constructor, or a call to parse. When this method is done, the msg byte array contains a valid start message that can be sent out over the wire.
Overrides:
createMessage in class Message

All Packages  Class Hierarchy  This Package  Previous  Next  Index