|
||||||||||
| 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.StatusResponseMessage
This class defines a message type that the client can use to provide status information back to the server. The information in the status response may vary based on the request received from the server.
| Field Summary |
| Constructor Summary | |
StatusResponseMessage(int messageID,
int responseCode,
int clientStatusCode)
Creates a new status response message using the specified client status code. |
|
StatusResponseMessage(int messageID,
int responseCode,
int clientStatusCode,
java.lang.String clientStatusMessage)
Creates a new status response message using the specified client status code and message. |
|
StatusResponseMessage(int messageID,
int responseCode,
int clientStatusCode,
java.lang.String jobID,
int jobState,
StatTracker[] statTrackers)
Creates a new status response message based on the provided client and job-specific information. |
|
StatusResponseMessage(int messageID,
int responseCode,
int clientStatusCode,
java.lang.String clientStatusMessage,
java.lang.String jobID,
int jobState,
StatTracker[] statTrackers)
Creates a new status response message based on the provided client and job-specific information. |
|
| Method Summary | |
static StatusResponseMessage |
decodeStatusResponse(int messageID,
ASN1Element element)
Decodes the provided ASN.1 element as a status response message. |
ASN1Element |
encode()
Encodes this message into an ASN.1 element. |
int |
getClientStatusCode()
Retrieves the client status code associated with this status response message. |
java.lang.String |
getClientStatusMessage()
Retrieves the client status message associated with this status response message. |
java.lang.String |
getJobID()
Retrieves the ID of the job associated with this status response message. |
int |
getJobState()
Retrieves the state of the job associated with this status response message. |
int |
getResponseCode()
Retrieves the response code associated with the status request. |
StatTracker[] |
getStatTrackers()
Retrieves the stat tracker information associated with this status response message. |
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 StatusResponseMessage(int messageID,
int responseCode,
int clientStatusCode)
messageID - The message ID for this message.responseCode - The response code for the status request
operation.clientStatusCode - The client status code to include in this status
response message.
public StatusResponseMessage(int messageID,
int responseCode,
int clientStatusCode,
java.lang.String clientStatusMessage)
messageID - The message ID for this message.responseCode - The response code for the status request
operation.clientStatusCode - The client status code to include in this
status response message.clientStatusMessage - The client status message to include in this
status response message.
public StatusResponseMessage(int messageID,
int responseCode,
int clientStatusCode,
java.lang.String jobID,
int jobState,
StatTracker[] statTrackers)
messageID - The message ID for this message.responseCode - The response code for the status request
operation.clientStatusCode - The client status code to include in this status
response message.jobID - The ID of the job for which job-specific
information is being provided.jobState - The current processing state for the specified
job.statTrackers - The set of stat trackers associated with the job
the client is currently processing.
public StatusResponseMessage(int messageID,
int responseCode,
int clientStatusCode,
java.lang.String clientStatusMessage,
java.lang.String jobID,
int jobState,
StatTracker[] statTrackers)
messageID - The message ID for this message.responseCode - The response code for the status request
operation.clientStatusCode - The client status code to include in this
status response message.clientStatusMessage - The client status message to include in this
status response message.jobID - The ID of the job for which job-specific
information is being provided.jobState - The current processing state for the specified
job.statTrackers - The set of stat trackers associated with the
job the client is currently processing.| Method Detail |
public int getResponseCode()
public int getClientStatusCode()
public java.lang.String getClientStatusMessage()
public java.lang.String getJobID()
public int getJobState()
public StatTracker[] getStatTrackers()
public java.lang.String toString()
toString in class Message
public static StatusResponseMessage decodeStatusResponse(int messageID,
ASN1Element element)
throws SLAMDException
messageID - The message ID to use for this message.element - The ASN.1 element containing the StatusResponse
sequence.
SLAMDException - If the provided ASN.1 element cannot be decoded
as a status response message.public ASN1Element encode()
StatusResponse ::= [APPLICATION 9] SEQUENCE {
responseCode ResponseCode,
clientStatusCode ClientState,
clientStatusMessage OCTET STRING,
jobStatus JobStatus OPTIONAL }
encode in class Message
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||