|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.grid.drmaa.JobInfoImpl
public class JobInfoImpl
This class provides information about a completed Grid Engine job.
JobInfo| Method Summary | |
|---|---|
int |
getExitStatus()
If hasExited() returns true, this function returns the exit code that the job passed to _exit() (see exit(2)) or exit(3C)), or the value that the child process returned from its main method. |
java.lang.String |
getJobId()
Get the id of the finished job. |
java.util.Map |
getResourceUsage()
Get the resource usage data for the finished job. |
java.lang.String |
getTerminatingSignal()
If hasSignaled() returns true, this method returns a representation of the signal that caused the termination of the job. |
boolean |
hasCoreDump()
If hasSignaled() returns true, this function returns
true if a core image of the terminated job was created. |
boolean |
hasExited()
Returns true if the job terminated normally. |
boolean |
hasSignaled()
Returns true if the job terminated due to the receipt
of a signal. |
boolean |
wasAborted()
Returns true if the job ended before entering the running
state. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public int getExitStatus()
JobInfo
getExitStatus in interface JobInfoJobInfo.hasExited()public java.lang.String getTerminatingSignal()
getTerminatingSignal in interface JobInfoJobInfo.hasSignaled()public boolean hasCoreDump()
JobInfotrue, this function returns
true if a core image of the terminated job was created.
hasCoreDump in interface JobInfoJobInfo.hasSignaled()public boolean hasExited()
JobInfotrue if the job terminated normally.
False can also indicate that
although the job has terminated normally, an exit status is not
available, or that it is not known whether the job terminated normally.
In both cases getExitStatus() will throw an IllegalStateException.
True indicates that more detailed diagnosis can be
discovered by means of getExitStatus().
hasExited in interface JobInfoJobInfo.getExitStatus()public boolean hasSignaled()
JobInfotrue if the job terminated due to the receipt
of a signal. False can also indicate that although the
job has terminated due to the receipt of a signal, the signal is not
available, or that it is not known whether the job terminated due to
the receipt of a signal. In both cases getTerminatingSignal() will throw
an IllegalStateException. True indicates that the name of
the terminating signal can be discovered by means of
getTerminatingSignal().
hasSignaled in interface JobInfoJobInfo.getTerminatingSignal()public boolean wasAborted()
JobInfotrue if the job ended before entering the running
state.
wasAborted in interface JobInfopublic java.lang.String getJobId()
JobInfo
getJobId in interface JobInfopublic java.util.Map getResourceUsage()
JobInfonull.
getResourceUsage in interface JobInfo
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||