|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.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 Job
public boolean isFailure()
Job
isFailure
in interface Job
public void setFailure(boolean failure)
Job
setFailure
in interface Job
failure
- the new failure statuspublic void setResut(Map<String,String> data) throws JobExecutionException
Job
setResut
in interface Job
data
- the reults data Map
JobExecutionException
public Map<String,String> getResult() throws JobExecutionException
Job
getResult
in interface Job
JobExecutionException
public void setFailureReason(Throwable failureReason) throws JobExecutionException
Job
setFailureReason
in interface Job
failureReason
- the Throwable
containing the failure reason
JobExecutionException
public Throwable getFailureReason() throws JobExecutionException
Job
getFailureReason
in interface Job
Throwable
containing the failure reason
JobExecutionException
public InvocationState getInvocationState()
Job
getInvocationState
in interface Job
InvocationState
public void setInvocationState(InvocationState state)
Job
setInvocationState
in interface Job
state
- the new InvocationState
public void setJobSubmissionTime(Date time)
Job
setJobSubmissionTime
in interface Job
time
- the new Date
for the job submissionpublic Date getJobSubmissionTime()
Job
getJobSubmissionTime
in interface Job
Date
capturing when the job was submittedpublic Date getJobExecutionStartTime()
Job
getJobExecutionStartTime
in interface Job
Date
capturing when the job started to be executedpublic void setJobExecutionStartTime(Date time)
Job
setJobExecutionStartTime
in interface Job
time
- the new Date
for the job executionpublic Date getJobExecutionEndTime()
Job
getJobExecutionEndTime
in interface Job
Date
capturing when the job ended be executedpublic void setJobExecutionEndTime(Date time)
Job
setJobExecutionEndTime
in interface Job
time
- the new Date
for the job executionpublic void setLastRetrieval(Date time)
Job
setLastRetrieval
in interface Job
time
- the Date
when the results where retrievedpublic Date getLastRetrieval()
Job
getLastRetrieval
in interface Job
Date
when the results where retrieved
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |