|
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.servicejob.model.AbstractServiceJob
eu.geclipse.servicejob.model.submittable.job.AbstractSubmittableServiceJob
public abstract class AbstractSubmittableServiceJob
Abstract class implementing basic IServiceJob methods for job based
service jobs. The implementation follows this specified workflow:
| Field Summary | |
|---|---|
static java.lang.String |
SERVICE_JOB_INFO_FILENAME
File name for storing info of the service job. |
static java.lang.String |
SERVICE_JOB_STATUS_FILENAME
Extension of the file storing info of the service job results for the specified nodes |
static java.lang.String |
XML_CHARSET
XML charset |
| Constructor Summary | |
|---|---|
AbstractSubmittableServiceJob()
|
|
| Method Summary | |
|---|---|
abstract void |
computeJobResult(IGridJobID jobID,
IGridJobStatus jobStatus)
This method is invoked by service job updater when one of the running jobs is finished. |
abstract void |
computeServiceJobResult()
This method is invoked by service job updater after last job of this service job is finished and its result was computed by computeJobResult(IGridJobID, IGridJobStatus). |
abstract IGridJobID |
createJobID(SubmittableServiceJobResult serviceJobResult)
Implementations of this method should create and return proper, middleware-specific job id. |
void |
createNewResult(IGridJobID jobID,
java.lang.String resourceName,
java.util.Date submissionDate)
Create new result for this service job. |
int |
getColumnWidth(java.lang.String singleServiceJobName)
This method sets column width for single service job with a name specified as parameter. |
abstract IGridJobDescription |
getJSDLForSubmission(java.lang.String resourceName)
Gets the JSDL which will be submitted to resource with name. |
abstract java.lang.String |
getRawDataInput(IGridJobID jobID,
java.lang.String resourceName)
This method should return starting string XML structure of raw data node of the given jobID associated with the resourceName. |
abstract java.lang.String |
getResultType(java.lang.String singleServiceJobName)
This method should return type of the result data returned by single service job. |
IVirtualOrganization |
getSelectedJobsVO()
Getter of the project's VO for this service job. |
ServiceJobUpdater |
getUpdater()
Getter of this service job updater. |
void |
init()
|
abstract void |
initData()
Perform additional, service job specific tasks at the start of the service job. |
boolean |
isLocal()
Determines if this element is local. |
boolean |
needsSubmissionWizard()
This method is to obtain information whether service job implementation needs to display job submission wizard to the user when it is being run. |
void |
run()
Method to run a service job |
void |
setJobResult(IGridJobID jobID,
java.util.Date lastRefreshDate,
java.lang.String status,
java.lang.String besStatus)
Sets result of the running grid job with jobID, storing the result in the status file of this job. |
| Methods inherited from class eu.geclipse.servicejob.model.AbstractServiceJob |
|---|
addServiceJobResult, getFileStore, getLastUpdate, getLastUpdate, getManager, getName, getParent, getPath, getProperties, getResource, getResults, getServiceJobFolder, getServiceJobResourcesNames, getServiceJobResultsForResourceForDate, getSingleServiceJobResult, getStatus, getSubmissionService, getSummary, internalInit, setResource, setSubmissionService |
| Methods inherited from class eu.geclipse.core.model.impl.AbstractGridElement |
|---|
dispose, getAdapter, getProject, isHidden, isVirtual |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface eu.geclipse.core.model.IServiceJob |
|---|
getInputStreamForResult, getServiceJobDescription, getSingleServiceJobNames |
| Field Detail |
|---|
public static final java.lang.String SERVICE_JOB_INFO_FILENAME
public static final java.lang.String XML_CHARSET
public static final java.lang.String SERVICE_JOB_STATUS_FILENAME
| Constructor Detail |
|---|
public AbstractSubmittableServiceJob()
| Method Detail |
|---|
public boolean isLocal()
IGridElementIResource) that
is local in the means that it is located on the local machine.
public void init()
public abstract IGridJobID createJobID(SubmittableServiceJobResult serviceJobResult)
ServiceJobResult.getResultRawData() and parse needed
information.
serviceJobResult - Job result for which job ID should be created.
public abstract void initData()
inputString representing input part of XML may
be parsed for additional informations about the service job.
public ServiceJobUpdater getUpdater()
public void run()
IServiceJob
public abstract IGridJobDescription getJSDLForSubmission(java.lang.String resourceName)
resourceName -
public void setJobResult(IGridJobID jobID,
java.util.Date lastRefreshDate,
java.lang.String status,
java.lang.String besStatus)
Developers can overwrite this method if the storage of the status results is resolved differently.
jobID - id of the running joblastRefreshDate - date of the last refresh of job statusstatus - fetched job statusbesStatus - BES status of the job
public void createNewResult(IGridJobID jobID,
java.lang.String resourceName,
java.util.Date submissionDate)
jobID - ID of the job for which service job's result should be
created.resourceName - Name of the resource on which service job should run.submissionDate - Date of the job submission.public abstract java.lang.String getResultType(java.lang.String singleServiceJobName)
singleServiceJobName - Name of the single service job (sub-job).
public abstract java.lang.String getRawDataInput(IGridJobID jobID,
java.lang.String resourceName)
jobID associated with the resourceName.
jobID - ID of the job for which the node should be createdresourceName - Name of the resource.
public abstract void computeJobResult(IGridJobID jobID,
IGridJobStatus jobStatus)
jobID.
jobID - ID of job which finished runningjobStatus - status of the finished jobpublic abstract void computeServiceJobResult()
computeJobResult(IGridJobID, IGridJobStatus).
public IVirtualOrganization getSelectedJobsVO()
public int getColumnWidth(java.lang.String singleServiceJobName)
IServiceJob
getColumnWidth in interface IServiceJobgetColumnWidth in class AbstractServiceJobsingleServiceJobName - Name of the single service job.
public boolean needsSubmissionWizard()
IServiceJobIServiceJob.getSubmissionService() method).
needsSubmissionWizard in interface IServiceJobneedsSubmissionWizard in class AbstractServiceJobtrue if this service job needs information to which
submission service submit its jobs, false otherwise
|
g-Eclipse Release 1.0.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||