|
||||||||||
| 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.RegisterStatisticMessage
This class defines a message that clients will use to register statistics with the SLAMD server's real-time stat colleciton facility.
| Field Summary |
| Constructor Summary | |
RegisterStatisticMessage(int messageID,
java.lang.String jobID,
java.lang.String clientID,
java.lang.String threadID,
java.lang.String displayName)
Creates a new register statistic message with the provided information. |
|
| Method Summary | |
static RegisterStatisticMessage |
decodeRegisterStatMessage(int messageID,
ASN1Element element)
Decodes the provided ASN.1 element as a register statistic message. |
ASN1Element |
encode()
Encodes this message into an ASN.1 element. |
java.lang.String |
getClientID()
Retrieves the ID of the client that registered this statistic. |
java.lang.String |
getDisplayName()
Retrieves the display name of the statistic being registered. |
java.lang.String |
getJobID()
Retrieves the job ID of the job to which this message applies. |
java.lang.String |
getThreadID()
Retrieves the ID of the client thread that registered this statistic. |
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 RegisterStatisticMessage(int messageID,
java.lang.String jobID,
java.lang.String clientID,
java.lang.String threadID,
java.lang.String displayName)
messageID - The message ID to use for this message.jobID - The ID of the job with which the message is
associated.clientID - The ID of the client registering the statistic.threadID - The ID of the client thread registering the statistic.displayName - The display name of the statistic being registered.| Method Detail |
public java.lang.String getJobID()
public java.lang.String getClientID()
public java.lang.String getThreadID()
public java.lang.String getDisplayName()
public java.lang.String toString()
toString in class Message
public static RegisterStatisticMessage decodeRegisterStatMessage(int messageID,
ASN1Element element)
throws SLAMDException
messageID - The message ID to use for this message.element - The ASN.1 element containing the RegisterStat sequence.
SLAMDException - If the provided ASN.1 element cannot be decoded
as a register statistic message.public ASN1Element encode()
RegisterStat ::= [APPLICATION 19] SEQUENCE { jobID OCTET STRING, clientID OCTET STRING, threadID OCTET STRING, displayName OCTET STRING }
encode in class Message
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||