|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Job
Interesting state about a pending, executing or completed job.
| Method Summary | |
|---|---|
void |
delete()
Delete any resources associated with with this job. |
Throwable |
getFailureReason()
Get the reason for failure. |
InvocationState |
getInvocationState()
Get the invocation state. |
Date |
getJobExecutionEndTime()
Get the time the job ended to be executed. |
Date |
getJobExecutionStartTime()
Get the time the job started to be executed. |
Date |
getJobSubmissionTime()
Get the job submition time. |
Date |
getLastRetrieval()
Get the last time the results where retrieved. |
Map<String,String> |
getResult()
Get the results data. |
boolean |
isFailure()
True if the job has resulted in failure, false otherwise. |
void |
setFailure(boolean failure)
Set the job failure status. |
void |
setFailureReason(Throwable throwable)
Set the reason for failure. |
void |
setInvocationState(InvocationState state)
Set the invocation state. |
void |
setJobExecutionEndTime(Date time)
Set the job execution end time. |
void |
setJobExecutionStartTime(Date time)
Set the job execution start time. |
void |
setJobSubmissionTime(Date time)
Set the job submission time. |
void |
setLastRetrieval(Date time)
Set the last time the results where retrieved. |
void |
setResut(Map<String,String> data)
Set the result data. |
| Method Detail |
|---|
boolean isFailure()
void setFailure(boolean failure)
failure - the new failure status
void setResut(Map<String,String> data)
throws JobExecutionException
data - the reults data Map
JobExecutionException
Map<String,String> getResult()
throws JobExecutionException
JobExecutionException
void setFailureReason(Throwable throwable)
throws JobExecutionException
throwable - the Throwable containing the failure reason
JobExecutionException
Throwable getFailureReason()
throws JobExecutionException
Throwable containing the failure reason
JobExecutionExceptionInvocationState getInvocationState()
InvocationStatevoid setInvocationState(InvocationState state)
state - the new InvocationStateDate getJobSubmissionTime()
Date capturing when the job was submittedvoid setJobSubmissionTime(Date time)
time - the new Date for the job submissionDate getJobExecutionStartTime()
Date capturing when the job started to be executedvoid setJobExecutionStartTime(Date time)
time - the new Date for the job executionDate getJobExecutionEndTime()
Date capturing when the job ended be executedvoid setJobExecutionEndTime(Date time)
time - the new Date for the job executionDate getLastRetrieval()
Date when the results where retrievedvoid setLastRetrieval(Date time)
time - the Date when the results where retrievedvoid delete()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||