|
g-Eclipse Release 1.0.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectPlatformObject
eu.geclipse.core.model.impl.AbstractGridElement
eu.geclipse.core.model.impl.AbstractGridContainer
eu.geclipse.core.model.impl.ResourceGridContainer
eu.geclipse.core.jobs.GridJob
public class GridJob
Class representing submitted job.
| Field Summary | |
|---|---|
static java.lang.String |
FOLDERNAME_INPUT_FILES
Name for folder containing input files for job |
static java.lang.String |
FOLDERNAME_OUTPUT_FILES
Name for folder containing output files for job |
| Constructor Summary | |
|---|---|
GridJob(IFolder jobFolder)
|
|
| Method Summary | |
|---|---|
void |
cancel()
Cancel this job if it is already running. |
boolean |
canContain(IGridElement element)
Determines if this may contain the specified element. |
static boolean |
canCreate(IFolder folder)
Check if a job can be created from this folder. |
void |
create(IFolder jobFolder,
IGridJobID id,
IGridJobService jobSrvce,
IGridJobDescription description,
java.lang.String uniqueJobName)
|
static GridJob |
createJobStructure(IFolder jobFolder,
GridJobID id,
IGridJobService jobService,
IGridJobDescription description,
java.lang.String uniqueJobName)
Creates files and folders for job |
void |
deleteJob(IProgressMonitor monitor)
Deletes the job from the grid. |
java.lang.String |
getHostName()
|
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. |
static java.lang.String |
getJobIdClass(IFolder jobFolder)
Using job folder, get info about class implemented IGridJobID (it
helps to recognize GridJob middleware) |
java.lang.String |
getJobName()
Gets the job name. |
IGridJobService |
getJobService()
|
IGridJobStatus |
getJobStatus()
Gets the current status of this job, without contacting the services. |
IGridElementManager |
getManager()
Get the manager that is responsible for the element. |
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. |
java.net.URI |
getURI()
|
boolean |
isHidden()
Determines if this element is hidden. |
boolean |
isLazy()
Determines if this container is using a lazy loading mechanism to manage its children. |
boolean |
isLocal()
Determines if this element is local. |
boolean |
isVirtual()
Determines if this element is virtual. |
IGridJobStatus |
updateJobStatus(IProgressMonitor progressMonitor,
boolean fullStatus)
Updates the job status. |
| Methods inherited from class eu.geclipse.core.model.impl.ResourceGridContainer |
|---|
getFileStore, getName, getParent, getPath, getResource |
| Methods inherited from class eu.geclipse.core.model.impl.AbstractGridContainer |
|---|
contains, create, delete, deleteAll, dispose, findChild, findChildWithResource, getChildCount, getChildren, hasChildren, isDirty, refresh, setDirty |
| Methods inherited from class eu.geclipse.core.model.impl.AbstractGridElement |
|---|
getAdapter, getProject |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface eu.geclipse.core.model.IGridContainer |
|---|
contains, create, delete, deleteAll, findChild, findChildWithResource, getChildCount, getChildren, hasChildren, isDirty, refresh, setDirty |
| Methods inherited from interface eu.geclipse.core.model.IGridElement |
|---|
dispose, getFileStore, getName, getParent, getPath, getProject, getResource |
| Methods inherited from interface eu.geclipse.core.model.IGridElement |
|---|
dispose, getFileStore, getName, getParent, getPath, getProject, getResource |
| Field Detail |
|---|
public static final java.lang.String FOLDERNAME_INPUT_FILES
public static final java.lang.String FOLDERNAME_OUTPUT_FILES
| Constructor Detail |
|---|
public GridJob(IFolder jobFolder)
jobFolder - | Method Detail |
|---|
public static boolean canCreate(IFolder folder)
folder -
public static GridJob createJobStructure(IFolder jobFolder,
GridJobID id,
IGridJobService jobService,
IGridJobDescription description,
java.lang.String uniqueJobName)
throws ProblemException
jobFolder - folder, in which structure for job will be createdid - job idjobService - description - job descriptionuniqueJobName -
ProblemExceptionpublic static java.lang.String getJobIdClass(IFolder jobFolder)
IGridJobID (it
helps to recognize GridJob middleware)
jobFolder -
IGridJobID, or null if this information
cannot be gotpublic void cancel()
IGridJob
cancel in interface IGridJobpublic boolean canContain(IGridElement element)
IGridContainer
canContain in interface IGridContainercanContain in class AbstractGridContainerelement - The element that may be contained in
this container.
public void create(IFolder jobFolder,
IGridJobID id,
IGridJobService jobSrvce,
IGridJobDescription description,
java.lang.String uniqueJobName)
throws ProblemException
jobFolder - id - jobSrvce - description - uniqueJobName -
ProblemException
public void deleteJob(IProgressMonitor monitor)
throws ProblemException
IGridJob
deleteJob in interface IGridJobmonitor - Use to monitor the progress. May be null.
ProblemException - if an error occurs while deleting the job.public java.lang.String getHostName()
public IGridJobID getID()
IGridJob
getID in interface IGridJob
public java.util.List<java.net.URI> getInputStagers()
throws ProblemException
IGridJob
getInputStagers in interface IGridJobProblemExceptionpublic IGridJobDescription getJobDescription()
IGridJob
getJobDescription in interface IGridJobpublic java.lang.String getJobName()
IGridJob
getJobName in interface IGridJobpublic IGridJobService getJobService()
public IGridJobStatus getJobStatus()
IGridJob
getJobStatus in interface IGridJobpublic IGridElementManager getManager()
IManageable
getManager in interface IManageableIGridElementManager.
public java.util.List<java.net.URI> getOutputStagers()
throws ProblemException
IGridJob
getOutputStagers in interface IGridJobProblemExceptionpublic java.util.Date getSubmissionTime()
IGridJob
getSubmissionTime in interface IGridJobDate object with the submission time.public java.net.URI getURI()
public boolean isHidden()
IGridElement
isHidden in interface IGridElementisHidden in class AbstractGridElementpublic boolean isLazy()
IGridContainerIGridContainer.getChildren(IProgressMonitor monitor) methode is
called the first time. On subsequent calls of
IGridContainer.getChildren(IProgressMonitor monitor) the formerly loaded
children are returned unless the IGridContainer.setDirty() method was
called. In that case a call to
IGridContainer.getChildren(IProgressMonitor monitor) will cause a
reload of this containers children.
Lazy containers always have to return true if they are asked
if they contain any children with IGridContainer.hasChildren().
isLazy in interface IGridContainerisLazy in class ResourceGridContainerpublic boolean isLocal()
IGridElementIResource) that
is local in the means that it is located on the local machine.
isLocal in interface IGridElementisLocal in class ResourceGridContainerpublic boolean isVirtual()
IGridElementfalse
the IGridElement.getResource() method returns null. If
this method returns true the IGridElement.getResource()
has to return a valid IResource that is related to
this element.
isVirtual in interface IGridElementisVirtual in class AbstractGridElement
public IGridJobStatus updateJobStatus(IProgressMonitor progressMonitor,
boolean fullStatus)
IGridJob
updateJobStatus in interface IGridJobprogressMonitor - 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)
|
g-Eclipse Release 1.0.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||