org.ggf.drmaa
Class GridWayJobInfo

java.lang.Object
  extended by org.ggf.drmaa.GridWayJobInfo
All Implemented Interfaces:
JobInfo

public class GridWayJobInfo
extends java.lang.Object
implements JobInfo

This class implements the abstract methods of the JobInfo class. The sets methods are not commented because they are just used internally.
The normal user of this API SHOULD NEVER use these methods.


Method Summary
 int getExitStatus()
          This method returns the exit code extracted from stat.
 java.lang.String getJobId()
          This method returns the completed job's id.
 java.util.Map getResourceUsage()
          This method returns the completed job's resource usage data.
 java.lang.String getTerminatingSignal()
          This methods returns the signal name that causes the termination of the job.
 boolean hasCoreDump()
          This methods always returns "0"
 boolean hasExited()
          This method returns into exited a non-zero value if stat was returned for a job that terminated normally.
 boolean hasSignaled()
          This method evaluates into signaled a non-zero value if stat was returned for a job that terminated due to the receipt of a signal.
 void setHasCoreDump(boolean hasCoreDump)
          The normal user of this API SHOULD NEVER use this method.
 void setHasExited(boolean hasExited)
          The normal user of this API SHOULD NEVER use this method.
 void setHasSignaled(boolean hasSignaled)
          The normal user of this API SHOULD NEVER use this method.
 void setTerminationSignal(java.lang.String signal)
          The normal user of this API SHOULD NEVER use this method.
 void setWasAborted(boolean wasAborted)
          The normal user of this API SHOULD NEVER use this method.
 boolean wasAborted()
          This methods always returns "0"
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getJobId

public java.lang.String getJobId()
This method returns the completed job's id.

Specified by:
getJobId in interface JobInfo
Returns:
A String with the jobId value

getResourceUsage

public java.util.Map getResourceUsage()
This method returns the completed job's resource usage data.

Specified by:
getResourceUsage in interface JobInfo
Returns:
A Map object with the jobId value

hasExited

public boolean hasExited()
Description copied from interface: JobInfo
This method returns into exited a non-zero value if stat was returned for a job that terminated normally. The job exit status can be retrieved using JobInfo.getExitStatus().

Specified by:
hasExited in interface JobInfo
Returns:
The return is true if the job terminated abnormally, drmaa_wifsignaled() can be used to gather more information. NOTE: The status code is interpreted in a bash fashion

getExitStatus

public int getExitStatus()
Description copied from interface: JobInfo
This method returns the exit code extracted from stat.

Specified by:
getExitStatus in interface JobInfo
Returns:
The exit code extracted from stat

hasSignaled

public boolean hasSignaled()
Description copied from interface: JobInfo
This method evaluates into signaled a non-zero value if stat was returned for a job that terminated due to the receipt of a signal. NOTE: The status code is interpreted in a bash fashion

Specified by:
hasSignaled in interface JobInfo
Returns:
The return is true if the job terminated on a signal

getTerminatingSignal

public java.lang.String getTerminatingSignal()
Description copied from interface: JobInfo
This methods returns the signal name that causes the termination of the job. Only signals by POSIX are returned. For non-POSIX signals, the returned name is "UNKNOWN".

Specified by:
getTerminatingSignal in interface JobInfo
Returns:
The signal name stored in a String that causes the termination of the job

hasCoreDump

public boolean hasCoreDump()
Description copied from interface: JobInfo
This methods always returns "0"

Specified by:
hasCoreDump in interface JobInfo
Returns:
Always returns "0"

wasAborted

public boolean wasAborted()
Description copied from interface: JobInfo
This methods always returns "0"

Specified by:
wasAborted in interface JobInfo
Returns:
Always returns "0"

setHasExited

public void setHasExited(boolean hasExited)
The normal user of this API SHOULD NEVER use this method.


setHasSignaled

public void setHasSignaled(boolean hasSignaled)
The normal user of this API SHOULD NEVER use this method.


setTerminationSignal

public void setTerminationSignal(java.lang.String signal)
The normal user of this API SHOULD NEVER use this method.


setHasCoreDump

public void setHasCoreDump(boolean hasCoreDump)
The normal user of this API SHOULD NEVER use this method.


setWasAborted

public void setWasAborted(boolean wasAborted)
The normal user of this API SHOULD NEVER use this method.