|
||||||||||
| 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.JobControlRequestMessage
This class defines a message that can be used to alter the state of a running job (e.g., to request that a client prematurely stop processing a job).
| Field Summary |
| Constructor Summary | |
JobControlRequestMessage(int messageID,
java.lang.String jobID,
int jobControlOperation)
Creates a new job control request message to perform the indicated operation on the specified job. |
|
| Method Summary | |
static JobControlRequestMessage |
decodeJobControlRequest(int messageID,
ASN1Element element)
Decodes the provided ASN.1 element as a job control request message. |
ASN1Element |
encode()
Encodes this message into an ASN.1 element. |
int |
getJobControlOperation()
Retrieves the type of operation that is being requested. |
java.lang.String |
getJobID()
Retrieves the ID of the job for which this operation is being requested. |
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 JobControlRequestMessage(int messageID,
java.lang.String jobID,
int jobControlOperation)
messageID - The message ID for this message.jobID - The ID of the job for which the operation is
being requested.jobControlOperation - The type of operation being requested on the
specified job.| Method Detail |
public java.lang.String getJobID()
public int getJobControlOperation()
public java.lang.String toString()
toString in class Message
public static JobControlRequestMessage decodeJobControlRequest(int messageID,
ASN1Element element)
throws SLAMDException
messageID - The message ID to use for this message.element - The ASN.1 element containing the JobControlRequest
sequence.
SLAMDException - If the provided ASN.1 element cannot be decoded
as a job control request message.public ASN1Element encode()
JobControlRequest ::= [APPLICATION 5] SEQUENCE {
jobID OCTET STRING,
controlType JobControlType }
encode in class Message
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||