|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.slamd.message.Message
com.sun.slamd.message.StartClientRequestMessage
This class defines a start client request message, which the SLAMD server can use to request that one or more clients be started.
| Field Summary |
| Constructor Summary | |
StartClientRequestMessage(int messageID,
int numClients,
int serverPort)
Creates a new start client request message that will provide the number of clients to start and the port number of the SLAMD server's client listener. |
|
| Method Summary | |
static StartClientRequestMessage |
decodeStartClient(int messageID,
ASN1Element element)
Decodes the provided ASN.1 element as a start client request message. |
ASN1Element |
encode()
Encodes this message into an ASN.1 element. |
int |
getNumClients()
Retrieves the number of clients that should be started. |
int |
getServerPort()
Retrieves the port number of the SLAMD server's client listener. |
java.lang.String |
toString()
Retrieves a string representation of this message. |
| Methods inherited from class com.sun.slamd.message.Message |
decode, getMessageID, getMessageType, send |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public StartClientRequestMessage(int messageID,
int numClients,
int serverPort)
messageID - The message ID for this message.numClients - The number of clients that should be started.serverPort - The port number of the SLAMD client listener.| Method Detail |
public int getNumClients()
public int getServerPort()
public java.lang.String toString()
toString in class Message
public static StartClientRequestMessage decodeStartClient(int messageID,
ASN1Element element)
throws SLAMDException
messageID - The message ID to use for this message.element - The ASN.1 element containing the StartClientRequest
sequence.
SLAMDException - If the provided ASN.1 element cannot be decoded
as a start client request message.public ASN1Element encode()
StartClientRequest ::= [APPLICATION 15] SEQUENCE {
numClients INTEGER,
serverPort INTEGER }
encode in class Message
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||