|
|||||||||
| 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.ClientManagerHelloMessage
public class ClientManagerHelloMessage
This class defines a client manager hello message that the client manager uses to identify itself to the server and tell the server the maximum number of clients that may be executed on the client system.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
ClientManagerHelloMessage(int messageID,
java.lang.String clientVersion,
java.lang.String clientID,
int maxClients)
Creates a new client manager hello message that will provide client ID, client version, and the maximum number of clients that may be created. |
|
| Method Summary | |
|---|---|
static ClientManagerHelloMessage |
decodeClientManagerHello(int messageID,
ASN1Element element)
Decodes the provided ASN.1 element as a client manager hello message. |
ASN1Element |
encode()
Encodes this message into an ASN.1 element. |
java.lang.String |
getClientID()
Retrieves the human-readable ID for the client. |
java.lang.String |
getClientVersion()
Retrieves the version of the client software being used. |
int |
getMaxClients()
Retrieves the maximum number of clients that will be allowed. |
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 ClientManagerHelloMessage(int messageID,
java.lang.String clientVersion,
java.lang.String clientID,
int maxClients)
messageID - The message ID for this message.clientVersion - The version of the client software being used.clientID - The human-readable text that can be used to identify
this client.maxClients - The maximum number of clients that may be created.| Method Detail |
|---|
public java.lang.String getClientVersion()
public java.lang.String getClientID()
public int getMaxClients()
public java.lang.String toString()
toString in class Message
public static ClientManagerHelloMessage decodeClientManagerHello(int messageID,
ASN1Element element)
throws SLAMDException
messageID - The message ID to use for this message.element - The ASN.1 element containing the ClientManagerHello
sequence.
SLAMDException - If the provided ASN.1 element cannot be decoded
as a client manager hello message.public ASN1Element encode()
ClientManagerHello ::= [APPLICATION 14] SEQUENCE {
clientVersion OCTET STRING,
clientID OCTET STRING,
maxClients INTEGER }
encode in class Message
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||