|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.ncl.cs.instantsoap.job.impl.FileJob
public class FileJob
A Job that stores the result in files.
| Constructor Summary | |
|---|---|
FileJob(String directory)
|
|
| 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 failureReason)
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileJob(String directory)
| Method Detail |
|---|
public void delete()
Job
delete in interface Jobpublic boolean isFailure()
Job
isFailure in interface Jobpublic void setFailure(boolean failure)
Job
setFailure in interface Jobfailure - the new failure status
public void setResut(Map<String,String> data)
throws JobExecutionException
Job
setResut in interface Jobdata - the reults data Map
JobExecutionException
public Map<String,String> getResult()
throws JobExecutionException
Job
getResult in interface JobJobExecutionException
public void setFailureReason(Throwable failureReason)
throws JobExecutionException
Job
setFailureReason in interface JobfailureReason - the Throwable containing the failure reason
JobExecutionException
public Throwable getFailureReason()
throws JobExecutionException
Job
getFailureReason in interface JobThrowable containing the failure reason
JobExecutionExceptionpublic InvocationState getInvocationState()
Job
getInvocationState in interface JobInvocationStatepublic void setInvocationState(InvocationState state)
Job
setInvocationState in interface Jobstate - the new InvocationStatepublic void setJobSubmissionTime(Date time)
Job
setJobSubmissionTime in interface Jobtime - the new Date for the job submissionpublic Date getJobSubmissionTime()
Job
getJobSubmissionTime in interface JobDate capturing when the job was submittedpublic Date getJobExecutionStartTime()
Job
getJobExecutionStartTime in interface JobDate capturing when the job started to be executedpublic void setJobExecutionStartTime(Date time)
Job
setJobExecutionStartTime in interface Jobtime - the new Date for the job executionpublic Date getJobExecutionEndTime()
Job
getJobExecutionEndTime in interface JobDate capturing when the job ended be executedpublic void setJobExecutionEndTime(Date time)
Job
setJobExecutionEndTime in interface Jobtime - the new Date for the job executionpublic void setLastRetrieval(Date time)
Job
setLastRetrieval in interface Jobtime - the Date when the results where retrievedpublic Date getLastRetrieval()
Job
getLastRetrieval in interface JobDate when the results where retrieved
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||