public interface Job
Modifier and Type | Method and Description |
---|---|
Exception |
getError()
In case of an error while running a job, this function will return the
error.
|
int |
getExitStatus()
Returns the exit status of a job.
|
JobDescription |
getJobDescription()
Returns the
JobDescription that was used to create this Job. |
JobState |
getState()
This method returns the state of the Job.
|
boolean |
isDone() |
void |
kill()
Will forcibly stop a job.
|
void |
registerStateLister(JobStateListener listener)
Register a state listener for this job.
|
void |
unRegisterStateLister(JobStateListener listener) |
JobDescription getJobDescription()
JobDescription
that was used to create this Job.JobState getState()
void registerStateLister(JobStateListener listener)
listener
- void unRegisterStateLister(JobStateListener listener)
int getExitStatus() throws OctopusException
OctopusException
Exception getError()
void kill() throws OctopusException
OctopusException
boolean isDone() throws OctopusException
OctopusException