g-Eclipse
Release 1.0.0

eu.geclipse.servicejob.model.submittable.job
Class SubmittableServiceJobResult

java.lang.Object
  extended by eu.geclipse.servicejob.model.impl.ServiceJobResult
      extended by eu.geclipse.servicejob.model.submittable.job.SubmittableServiceJobResult
All Implemented Interfaces:
IServiceJobResult

public class SubmittableServiceJobResult
extends ServiceJobResult

Abstract class for submittable service result. Contains important jobID field, which corresponds to the jobID of the submitted job.


Constructor Summary
SubmittableServiceJobResult(java.util.Date runDate, java.lang.String resource, java.lang.String subJob, java.lang.String resultRawData, java.lang.String resultSummary, java.lang.String resultType, java.lang.String resultEnum)
          Simple constructor.
 
Method Summary
 IGridJobID getJobID()
          Getter of jobID.
 java.lang.String getJobIDString()
          Gets the jobID String representation of job associated with this service job result.
 void setJobID(IGridJobID jobID)
          Setter of jobID for this service job result.
 void updateStatus(java.util.Date date, java.lang.String result, java.lang.String besStatus)
          Updates job service job results.
 
Methods inherited from class eu.geclipse.servicejob.model.impl.ServiceJobResult
getResourceName, getResultEnum, getResultRawData, getResultSummary, getResultType, getResutlRawData, getRunDate, getSubServiceJobName, setResultEnum, setResultSummary, setResultType, setResutlRawData, setRunDate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubmittableServiceJobResult

public SubmittableServiceJobResult(java.util.Date runDate,
                                   java.lang.String resource,
                                   java.lang.String subJob,
                                   java.lang.String resultRawData,
                                   java.lang.String resultSummary,
                                   java.lang.String resultType,
                                   java.lang.String resultEnum)
Simple constructor.

Parameters:
runDate - When this result was created.
resource - Name of resource where service job should be run.
subJob - Name of performed sub-job.
resultRawData - Content of Output > Result > ResultData GTDL element.
resultSummary - Textual interpretation of service job's result.
resultType - Type of the result.
resultEnum - BES status result.
Method Detail

setJobID

public void setJobID(IGridJobID jobID)
Setter of jobID for this service job result. If possible, this should be middleware specific jobID.

Parameters:
jobID - IGridJobID which should be set.

updateStatus

public void updateStatus(java.util.Date date,
                         java.lang.String result,
                         java.lang.String besStatus)
Updates job service job results. This method should be invoked after each fetching of the status from the job service.

Parameters:
date - date of the last status refresh
result - status of the job
besStatus - BES status

getJobID

public IGridJobID getJobID()
Getter of jobID.

Returns:
ID of the job associated with this service job result.

getJobIDString

public java.lang.String getJobIDString()
Gets the jobID String representation of job associated with this service job result.

Returns:
jobID string representation of this job's ID.

g-Eclipse
Release 1.0.0