|
||||||||||
| 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.JobCompletedMessage
This class defines a message that will be sent from the client to the server when work on a job has completed.
| Field Summary |
| Constructor Summary | |
JobCompletedMessage(int messageID,
java.lang.String jobID,
int jobState,
java.util.Date actualStartTime,
java.util.Date actualStopTime,
int actualDuration,
StatTracker[] statTrackers,
java.lang.String[] logMessages)
Creates a new job completed message with the provided information. |
|
JobCompletedMessage(int messageID,
java.lang.String jobID,
int jobState,
long actualStartTime,
long actualStopTime,
int actualDuration,
StatTracker[] statTrackers,
java.lang.String[] logMessages)
Creates a new job completed message with the provided information. |
|
| Method Summary | |
static JobCompletedMessage |
decodeJobCompleted(int messageID,
ASN1Element element)
Decodes the provided ASN.1 element as a job completed message. |
ASN1Element |
encode()
Encodes this message into an ASN.1 element. |
int |
getActualDuration()
Retrieves the amount of time in seconds spent processing the job. |
java.util.Date |
getActualStartTime()
Retrieves the time that the job actually started being processed. |
java.util.Date |
getActualStopTime()
Retrieves the time that the job actually finished processing. |
java.lang.String |
getJobID()
Retrieves the ID of the job being processed. |
int |
getJobState()
Retrieves the state of the job being processed. |
java.lang.String[] |
getLogMessages()
Retrieves the set of log messages associated with the job. |
StatTracker[] |
getStatTrackers()
Retrieves the stat trackers associated with the job. |
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 JobCompletedMessage(int messageID,
java.lang.String jobID,
int jobState,
java.util.Date actualStartTime,
java.util.Date actualStopTime,
int actualDuration,
StatTracker[] statTrackers,
java.lang.String[] logMessages)
messageID - The message ID for this message.jobID - The ID of the job that has completed.jobState - The state of the job when processing was complete.actualStartTime - The time (as a Java Date) that the job actually
started processing.actualStopTime - The time (as a Java Date) that the job actually
completed/was stopped.actualDuration - The length of time in seconds that the job was
being processed.statTrackers - The set of stat trackers that were maintained for
the job.logMessages - The messages logged by the job.
public JobCompletedMessage(int messageID,
java.lang.String jobID,
int jobState,
long actualStartTime,
long actualStopTime,
int actualDuration,
StatTracker[] statTrackers,
java.lang.String[] logMessages)
messageID - The message ID for this message.jobID - The ID of the job that has completed.jobState - The state of the job when processing was complete.actualStartTime - The time (in number of seconds since January 1,
1970) that the job actually started processing.actualStopTime - The time (in number of seconds since January 1,
1970) that the job actually completed/was stopped.actualDuration - The length of time in seconds that the job was
being processed.statTrackers - The set of stat trackers that were maintained for
the job.logMessages - The messages logged by the job.| Method Detail |
public java.lang.String getJobID()
public int getJobState()
public java.util.Date getActualStartTime()
public java.util.Date getActualStopTime()
public int getActualDuration()
public StatTracker[] getStatTrackers()
public java.lang.String[] getLogMessages()
public java.lang.String toString()
toString in class Message
public static JobCompletedMessage decodeJobCompleted(int messageID,
ASN1Element element)
throws SLAMDException
messageID - The message ID to use for this message.element - The ASN.1 element containing the JobCompleted sequence.
SLAMDException - If the provided ASN.1 element cannot be decoded
as a job completed message.public ASN1Element encode()
JobCompleted ::= [APPLICATION 7] SEQUENCE {
jobID OCTET STRING,
jobState JobState,
actualStartTime OCTET STRING,
actualStopTime OCTET STRING,
actualDuration INTEGER,
statTrackers StatTrackers,
logMessages LogMessages }
encode in class Message
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||