dLife Home Page

dlife.tools.xgrid
Class XgridResult

java.lang.Object
  extended by dlife.tools.xgrid.XgridResult

public class XgridResult
extends Object

The results from the submission of an XgridCommand to the Xgrid. The results include information about the times at which the job was submitted, started and finished, the job status, as well as the command that was run and the results that were returned.

Version:
Jun 8, 2007
Author:
Grant Braught, Dickinson College

Constructor Summary
XgridResult(String sub, String start, String end, String ret, String status, String id, String result, XgridCommand cmd)
          Construct a new XgridResult with all of the specified values for the fields.
XgridResult(String jobId, String attr, String result, XgridCommand cmd)
          Build a new XgridResult based on the string of attributes returned from the xgrid in conjunction with the job results and its command.
 
Method Summary
 XgridCommand getCommand()
          Get the XgridCommand object for the job.
 String getDateCompleted()
          Get the date and time at which the job completed its execution.
 String getDateRetrieved()
          Get the date and time at which the job results were retrieved from the xGrid.
 String getDateStarted()
          Get the date and time at which the job started executing on the xGrid.
 String getDateSubmitted()
          Get the date and time at which the job was submitted to the xGrid.
 String getJobId()
          Get the identifier assigned to the job by the xGrid controller.
 String getJobStatus()
          Get the status of the job.
 String getResult()
          Get the results of the job.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XgridResult

public XgridResult(String sub,
                   String start,
                   String end,
                   String ret,
                   String status,
                   String id,
                   String result,
                   XgridCommand cmd)
Construct a new XgridResult with all of the specified values for the fields.

Parameters:
sub - the date and time that the job was submitted.
start - the date and time that the job was started.
end - the date and time that the job completed.
ret - the date and time that the job was retrieved from the xgrid.
status - the status of the job.
id - the id assigned to the job by the xGrid.
result - the portion of the job's results that were written to stdout and/or stderr if they were not redirected to a file.
cmd - the XgridCommand that was used when issuing the job.

XgridResult

public XgridResult(String jobId,
                   String attr,
                   String result,
                   XgridCommand cmd)
Build a new XgridResult based on the string of attributes returned from the xgrid in conjunction with the job results and its command.

Parameters:
jobId - the job id assigned to the job by xGrid.
attr - the string of attributes returned from a request to the xGrid for a job's attributes.
result - the result obtained when the job was run.
cmd - the command for the job.
Method Detail

getJobId

public String getJobId()
Get the identifier assigned to the job by the xGrid controller.

Returns:
the job id for the job.

getDateSubmitted

public String getDateSubmitted()
Get the date and time at which the job was submitted to the xGrid.

Returns:
the date and time of submission.

getDateStarted

public String getDateStarted()
Get the date and time at which the job started executing on the xGrid.

Returns:
the date and time execution started.

getDateCompleted

public String getDateCompleted()
Get the date and time at which the job completed its execution.

Returns:
the date and time of completion.

getDateRetrieved

public String getDateRetrieved()
Get the date and time at which the job results were retrieved from the xGrid.

Returns:
the date and time of retrieval.

getJobStatus

public String getJobStatus()
Get the status of the job.

Returns:
the job status.

getResult

public String getResult()
Get the results of the job. The results will contain any text that has been written to stdout so long as this stream has not been directed to a file via the -so flag.

Returns:
the results of the job.

getCommand

public XgridCommand getCommand()
Get the XgridCommand object for the job.

Returns:
the XgridCommand object for the job.

dLife Home Page