g-Eclipse
Release 1.0.0

eu.geclipse.core.model
Interface IGridJob

All Superinterfaces:
IGridContainer, IGridElement, IManageable
All Known Implementing Classes:
GridJob

public interface IGridJob
extends IGridContainer, IManageable

Base interface for all middleware specific implementations of jobs for the Grid.


Method Summary
 void cancel()
          Cancel this job if it is already running.
 void deleteJob(IProgressMonitor monitor)
          Deletes the job from the grid.
 IGridJobID getID()
          Gets the unique id of this job.
 java.util.List<java.net.URI> getInputStagers()
          Scan folder "Input Files" in submitted job and return list of input files
 IGridJobDescription getJobDescription()
          Gets the job description used to create the job.
 java.lang.String getJobName()
          Gets the job name.
 IGridJobStatus getJobStatus()
          Gets the current status of this job, without contacting the services.
 java.util.List<java.net.URI> getOutputStagers()
          Scan folder "Output Files" in submitted job and return list of output files
 java.util.Date getSubmissionTime()
          Gets the date and time of submission.
 IGridJobStatus updateJobStatus(IProgressMonitor monitor, boolean fullStatus)
          Updates the job status.
 
Methods inherited from interface eu.geclipse.core.model.IGridContainer
canContain, contains, create, delete, deleteAll, findChild, findChildWithResource, getChildCount, getChildren, hasChildren, isDirty, isLazy, refresh, setDirty
 
Methods inherited from interface eu.geclipse.core.model.IGridElement
dispose, getFileStore, getName, getParent, getPath, getProject, getResource, isHidden, isLocal, isVirtual
 
Methods inherited from interface eu.geclipse.core.model.IManageable
getManager
 
Methods inherited from interface eu.geclipse.core.model.IGridElement
dispose, getFileStore, getName, getParent, getPath, getProject, getResource, isHidden, isLocal, isVirtual
 

Method Detail

cancel

void cancel()
Cancel this job if it is already running.


deleteJob

void deleteJob(IProgressMonitor monitor)
               throws ProblemException
Deletes the job from the grid.

Parameters:
monitor - Use to monitor the progress. May be null.
Throws:
ProblemException - if an error occurs while deleting the job.

getJobStatus

IGridJobStatus getJobStatus()
Gets the current status of this job, without contacting the services.

Returns:
This job's latest known status.

updateJobStatus

IGridJobStatus updateJobStatus(IProgressMonitor monitor,
                               boolean fullStatus)
Updates the job status. The implementation of this method should ask the middleware for the up-to-date job status.

Parameters:
monitor - Use to monitor the progress. May be null.
fullStatus - true if all available information about job should be downloaded, false if only basic info about status should be downloaded (only those available from IGridJobStatus)
Returns:
This job's current status.

getID

IGridJobID getID()
Gets the unique id of this job. This id may be used to query for job information.

Returns:
The unique id of this job.

getJobName

java.lang.String getJobName()
Gets the job name.

Returns:
The name of this job without additional decorations, file extensions, etc.

getJobDescription

IGridJobDescription getJobDescription()
Gets the job description used to create the job.

Returns:
The job description used to create this job.

getSubmissionTime

java.util.Date getSubmissionTime()
Gets the date and time of submission.

Returns:
A Date object with the submission time.

getInputStagers

java.util.List<java.net.URI> getInputStagers()
                                             throws ProblemException
Scan folder "Input Files" in submitted job and return list of input files

Returns:
list of URI points to input files used by job
Throws:
ProblemException

getOutputStagers

java.util.List<java.net.URI> getOutputStagers()
                                              throws ProblemException
Scan folder "Output Files" in submitted job and return list of output files

Returns:
list of URI points to output files produced by job
Throws:
ProblemException

g-Eclipse
Release 1.0.0