|
g-Eclipse Release 1.0.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteu.geclipse.core.jobs.ParametricJobService
public class ParametricJobService
Job service, which handles parametric jobs. Can: submit parametric JSDL, update param job status, delete job
| Constructor Summary | |
|---|---|
ParametricJobService(IGridJobService jobService)
Constructor used only for job submission, when job is not known yet |
|
ParametricJobService(eu.geclipse.core.jobs.internal.ParametricJobID jobID)
Constructor used for submitted job, when parametric jobs is created and all actions are delegated to job children |
|
| Method Summary | |
|---|---|
boolean |
canSubmit(IGridJobDescription desc)
Tests if a given job description can be handled (i.e., submitted) by this job service. |
IGridJob |
createParamJobStructure(JSDLJobDescription jsdl,
IGridContainer parent,
java.lang.String jobName)
|
void |
deleteJob(IGridJobID dummyJobId,
IVirtualOrganization vo,
IProgressMonitor monitor)
Deletes the given job from the server and releases resources on it. |
void |
dispose()
Clean up all resources that this element uses internally. |
java.lang.Object |
getAdapter(java.lang.Class adapter)
|
IFileStore |
getFileStore()
Get the file store that this element is associated with. |
java.lang.String |
getHostName()
Get the host name of the machine (physical or virtual) that represent this resource. |
java.util.Map<java.lang.String,java.net.URI> |
getInputFiles(IGridJobID jobId,
IGridJobDescription jobDescription,
IVirtualOrganization vo)
Get pairs (filename, URI) of input files for job. |
IGridJobStatus |
getJobStatus(IGridJobID id,
IVirtualOrganization vo,
boolean fullStatus,
IProgressMonitor progressMonitor)
Queries the service about the job's status. |
java.lang.String |
getName()
Get the name of this element. |
java.util.Map<java.lang.String,java.net.URI> |
getOutputFiles(IGridJobID jobId,
IGridJobDescription jobDescription,
IVirtualOrganization vo)
Get pairs (filename, URI) of output files for job. |
IGridContainer |
getParent()
Get the parent element of this element. |
IPath |
getPath()
Get the path of this element relative to the grid root element. |
IGridProject |
getProject()
Get the IGridProject this element belongs to. |
IResource |
getResource()
Get the corresponding resource of this element. |
java.net.URI |
getURI()
Get the URI that corresponds to this grid resource. |
boolean |
isHidden()
Determines if this element is hidden. |
boolean |
isLocal()
Determines if this element is local. |
boolean |
isVirtual()
Determines if this element is virtual. |
IGridJobID |
submitJob(IGridJobDescription description,
IProgressMonitor monitor)
Submits the given job description to the grid. |
IGridJobID |
submitJob(IGridJobDescription description,
IVirtualOrganization vo,
IProgressMonitor monitor)
Submits the given job description to the grid. |
IGridJobID |
submitJob(IGridJobDescription description,
SubMonitor monitor,
IGridContainer parent,
java.lang.String jobName)
Specialized method to submit parametric job |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ParametricJobService(IGridJobService jobService)
jobService - public ParametricJobService(eu.geclipse.core.jobs.internal.ParametricJobID jobID)
jobID - | Method Detail |
|---|
public boolean canSubmit(IGridJobDescription desc)
IGridJobService
canSubmit in interface IGridJobServicedesc - the job description to be tested.
this service, false otherwise.
public void deleteJob(IGridJobID dummyJobId,
IVirtualOrganization vo,
IProgressMonitor monitor)
throws ProblemException
IGridJobService
deleteJob in interface IGridJobServicedummyJobId - The id of job, which will be deletedvo - Virtual Organization, to which job with passed id belongs tomonitor - Use to monitor progress. May be null.
ProblemException - if deleting the job failed.
public IGridJobStatus getJobStatus(IGridJobID id,
IVirtualOrganization vo,
boolean fullStatus,
IProgressMonitor progressMonitor)
throws ProblemException
IGridJobService
getJobStatus in interface IGridJobServiceid - The id of the job whose status has to be queried.vo - Virtual Organization, to which job with passed id belongs tofullStatus - true if all available status information
should be downloaded, false if only basic information
are needed (status type, status name and reason)progressMonitor - Use to monitor progress. May be null.
ProblemException - if the status query failed.
public IGridJob createParamJobStructure(JSDLJobDescription jsdl,
IGridContainer parent,
java.lang.String jobName)
throws ProblemException
jsdl - parent - jobName -
ProblemException
public IGridJobID submitJob(IGridJobDescription description,
SubMonitor monitor,
IGridContainer parent,
java.lang.String jobName)
throws ProblemException
description - monitor - parent - jobName -
ProblemExceptionpublic java.lang.String getHostName()
IGridResource
getHostName in interface IGridResourcenull
if the resource cannot provide its hostname.public java.net.URI getURI()
IGridResourceURI that corresponds to this grid resource.
getURI in interface IGridResourcenull
if the resource may not be represented by a URI.public void dispose()
IGridElement
dispose in interface IGridElementpublic IFileStore getFileStore()
IGridElementnull if there is no such associated
file store. If this element is not virtual the filestore
corresponds to the file store of the corresponding resource.
getFileStore in interface IGridElementpublic java.lang.String getName()
IGridElement
getName in interface IGridElementpublic IGridContainer getParent()
IGridElementIGridContainer. This method may not return
null since the only element that is allowed to
return null is the IGridRoot which is a
singleton and is internally defined within the model.
getParent in interface IGridElementpublic IPath getPath()
IGridElement@IResource.
getPath in interface IGridElementpublic IGridProject getProject()
IGridElementIGridProject this element belongs to. This method
may return null if the element is not contained in
a project like for example an element manager and its children.
getProject in interface IGridElementIGridProject this element belongs to.public IResource getResource()
IGridElementnull if - and only if - this element is virtual.
getResource in interface IGridElementnull if this
element is virtual.public boolean isHidden()
IGridElement
isHidden in interface IGridElementpublic boolean isLocal()
IGridElementIResource) that
is local in the means that it is located on the local machine.
isLocal in interface IGridElementpublic 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 IGridElementpublic java.lang.Object getAdapter(java.lang.Class adapter)
public IGridJobID submitJob(IGridJobDescription description,
IProgressMonitor monitor)
throws ProblemException
IGridJobService
submitJob in interface IGridJobServicedescription - the job description to be submitted.monitor - Use to monitor progress. May be null.
ProblemException - if submitting the job failed.
public IGridJobID submitJob(IGridJobDescription description,
IVirtualOrganization vo,
IProgressMonitor monitor)
throws ProblemException
IGridJobService
submitJob in interface IGridJobServicedescription - the job description to be submitted.vo - Virtual Organization, to which job is submittedmonitor - Use to monitor progress. May be null.
ProblemException - if submitting the job failed.
public java.util.Map<java.lang.String,java.net.URI> getInputFiles(IGridJobID jobId,
IGridJobDescription jobDescription,
IVirtualOrganization vo)
throws ProblemException
IGridJobService
getInputFiles in interface IGridJobServicejobId - id of job, for which input files will be returnedjobDescription - job description, which was used to submit jobvo - Virtual Organization, for which job belongs to
null if input files cannot be returned
ProblemException - thrown, when input files cannot be retrieved, because of any error
public java.util.Map<java.lang.String,java.net.URI> getOutputFiles(IGridJobID jobId,
IGridJobDescription jobDescription,
IVirtualOrganization vo)
throws ProblemException
IGridJobService
getOutputFiles in interface IGridJobServicejobId - id of job, for which input files will be returnedjobDescription - job description, which was used to submit job.null - in this case only output files, which
can be get without reading job description will be returned.vo - Virtual Organization, for which job belongs to
null if input files
cannot be returned now (because e.g. job status doesn't allow it now).
ProblemException
|
g-Eclipse Release 1.0.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||