|
||||||||||
| 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.StatusRequestMessage
This class defines a message type that the server can use to request status information from a client. It can be a request about just the availability of the client or also about the status of a job that may be in progress.
| Field Summary |
| Constructor Summary | |
StatusRequestMessage(int messageID)
Creates a new status request message that is intended only to determine the current status of the client. |
|
StatusRequestMessage(int messageID,
java.lang.String jobID)
Creates a new status request message that is intended to find information about the specified job. |
|
| Method Summary | |
static StatusRequestMessage |
decodeStatusRequest(int messageID,
ASN1Element element)
Decodes the provided ASN.1 element as a status request message. |
ASN1Element |
encode()
Encodes this message into an ASN.1 element. |
java.lang.String |
getJobID()
Retrieves the ID of the job for which to find status information. |
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 StatusRequestMessage(int messageID)
messageID - The message ID for this message.
public StatusRequestMessage(int messageID,
java.lang.String jobID)
messageID - The message ID for this message.jobID - The ID of the job for which to retrieve status
information.| Method Detail |
public java.lang.String getJobID()
public java.lang.String toString()
toString in class Message
public static StatusRequestMessage decodeStatusRequest(int messageID,
ASN1Element element)
throws SLAMDException
messageID - The message ID to use for this message.element - The ASN.1 element containing the StatusRequest sequence.
SLAMDException - If the provided ASN.1 element cannot be decoded
as a status request message.public ASN1Element encode()
StatusRequest ::= [APPLICATION 8] SEQUENCE {
jobID OCTET STRING OPTIONAL }
encode in class Message
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||