|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface JobManager
Manage jobs, their statuses and data associated with them.
| Method Summary | |
|---|---|
Throwable |
getFailureReason(UUID uuid)
Get the reason for failure for the job associated with the id. |
InvocationState |
getInvocationState(UUID uuid)
Get the invocation state associated with the id. |
Date |
getJobExecutionEndTime(UUID uuid)
Get the execution end time for the job associated with the id. |
Date |
getJobExecutionStartTime(UUID uuid)
Get the submission time for the job associated with the id. |
Date |
getJobSubmissionTime(UUID uuid)
Get the submission time for the job associated with the id. |
Map<String,String> |
getResult(UUID uuid)
Get the results of the job associated with the id. |
boolean |
isFailure(UUID uuid)
Return true if the job associated with the uuid has failed. |
UUID |
newJob()
Create a new Job and return the corresponding UUID. |
void |
setFailure(UUID uuid,
boolean failure)
Update the failure status of the job with the id. |
void |
setFailureReason(UUID uuid,
Throwable failureReason)
Set the reason for failure for the job associated with the id. |
void |
setInvocationState(UUID uuid,
InvocationState status)
Set the invocation state associated with the id. |
void |
setJobExecutionEndTime(UUID uuid,
Date time)
Set the execution end time for the job associated with the id. |
void |
setJobExecutionStartTime(UUID uuid,
Date time)
Set the submission time for the job associated with the id. |
void |
setJobSubmissionTime(UUID uuid,
Date time)
Set the submission time for the job associated with the id. |
void |
setResult(UUID uuid,
Map<String,String> result)
Set the results of the job associated with the id. |
| Method Detail |
|---|
UUID newJob()
Job and return the corresponding UUID.
UUID of the new jobboolean isFailure(UUID uuid)
uuid - the UUID of the job to check
void setFailure(UUID uuid,
boolean failure)
uuid - the UUID identifying the jobfailure - the new failure status of the job
void setResult(UUID uuid,
Map<String,String> result)
throws JobExecutionException
uuid - the UUID identifying the jobresult - the Map containing the results
JobExecutionException
Map<String,String> getResult(UUID uuid)
throws JobExecutionException
uuid - the UUID identifying the job
Map of results
JobExecutionException
void setFailureReason(UUID uuid,
Throwable failureReason)
throws JobExecutionException
uuid - the UUID identifying the jobfailureReason - the Throwable that is the reason for failure
JobExecutionException
Throwable getFailureReason(UUID uuid)
throws JobExecutionException
uuid - the UUID identifying the job
JobExecutionExceptionInvocationState getInvocationState(UUID uuid)
uuid - the UUID identifying the job
InvocationState
void setInvocationState(UUID uuid,
InvocationState status)
uuid - the UUID identifying the jobstatus - the InvocationStatusDate getJobSubmissionTime(UUID uuid)
uuid - the UUID identifying the job
Date specifying the submission time
void setJobSubmissionTime(UUID uuid,
Date time)
uuid - the UUID identifying the jobtime - the Date when the job was submitedDate getJobExecutionStartTime(UUID uuid)
uuid - the UUID identifying the job
Date that the execution of the job started
void setJobExecutionStartTime(UUID uuid,
Date time)
uuid - the UUID identifying the jobtime - the Date when the job started being executedDate getJobExecutionEndTime(UUID uuid)
uuid - the UUID identifying the job
Date when the execution of the job ended
void setJobExecutionEndTime(UUID uuid,
Date time)
uuid - the UUID identifying the jobtiem - the Date when the execution of the job ended
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||