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
-
IDLEN_SIZE
-
-
ID_PREFIX
-
-
LOADLEN_SIZE
-
-
PREFIX_SIZE
-
-
SERVERLEN_SIZE
-
-
SERVER_PREFIX
-
-
START_PREFIX
-
-
server
-
-
sid
-
-
StartMessage()
-
-
StartMessage(String, String)
-
-
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.
-
parse(byte[], int)
- Parse the specified byte array as a Start message.
PREFIX_SIZE
public final static int PREFIX_SIZE
LOADLEN_SIZE
public final static int LOADLEN_SIZE
IDLEN_SIZE
public final static int IDLEN_SIZE
SERVERLEN_SIZE
public final static int SERVERLEN_SIZE
START_PREFIX
public final static String START_PREFIX
ID_PREFIX
public final static String ID_PREFIX
SERVER_PREFIX
public final static String SERVER_PREFIX
sid
public String sid
server
public String server
StartMessage
public StartMessage()
StartMessage
public StartMessage(String AgentID,
String srv)
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.
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