|
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
public abstract class AbstractServiceJob
An abstract, base implementation of IServiceJob interface.
| Constructor Summary | |
|---|---|
AbstractServiceJob()
|
|
| Method Summary | |
|---|---|
void |
addServiceJobResult(java.util.List<IServiceJobResult> newResults)
This method should be called each time when service job was run and new results are available. |
int |
getColumnWidth(java.lang.String singleServiceJobName)
This method sets column width for single service job with a name specified as parameter. |
IFileStore |
getFileStore()
Get the file store that this element is associated with. |
java.util.Date |
getLastUpdate()
Method to access date of last service job submission. |
java.util.Date |
getLastUpdate(java.lang.String serviceJobResourceName)
The same as IServiceJob.getLastUpdate(), but should be used in case
there can be difference in number of service job's runs for each resource. |
IGridElementManager |
getManager()
Get the manager that is responsible for the element. |
java.lang.String |
getName()
Get the name of this element. |
IGridContainer |
getParent()
Get the parent element of this element. |
IPath |
getPath()
Get the path of this element relative to the grid root element. |
java.util.Map<java.lang.String,java.lang.String> |
getProperties()
Method returns all the data which needs to be viewed in properties view. |
IResource |
getResource()
Get the corresponding resource of this element. |
java.util.List<IServiceJobResult> |
getResults()
Method to access list of single service job's results |
IFolder |
getServiceJobFolder()
This methods returns handle to folder specific to single instance of service job. |
java.util.List<java.lang.String> |
getServiceJobResourcesNames()
Method to access names of the resources on which service job is operating. |
java.util.List<java.util.List<IServiceJobResult>> |
getServiceJobResultsForResourceForDate(java.lang.String resourceName)
This method gives access to ordered collection of sub service jobs' results. |
IServiceJobResult |
getSingleServiceJobResult(java.lang.String serviceJobName,
java.lang.String resourceName,
java.util.Date date)
Method to access text interpretation of single service job for given single service job's name performed on target resource at given date. |
java.lang.Object |
getStatus()
|
IGridJobService |
getSubmissionService()
Gives access to information to which submission service service's jobs should be submitted. |
java.lang.String |
getSummary()
Method returning result of the service job - as a summary of single service jobs. |
void |
internalInit(IFile initInputData)
This method is used to initialize instance just after it was created with some data. |
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 |
setResource(IFile resource)
Sets resource for this object. |
void |
setSubmissionService(IGridJobService submissionService)
Method to set the submission service for use when job-based service jobs are submitted. |
| 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, init, run |
| Constructor Detail |
|---|
public AbstractServiceJob()
| Method Detail |
|---|
public java.lang.String getName()
IGridElement
getName in interface IGridElementgetName in interface IServiceJobpublic java.util.List<IServiceJobResult> getResults()
IServiceJob
getResults in interface IServiceJobpublic java.util.List<java.lang.String> getServiceJobResourcesNames()
IServiceJob
getServiceJobResourcesNames in interface IServiceJob
public IServiceJobResult getSingleServiceJobResult(java.lang.String serviceJobName,
java.lang.String resourceName,
java.util.Date date)
IServiceJob
getSingleServiceJobResult in interface IServiceJobserviceJobName - name of single service jobresourceName - name of resource service job is performing ondate - date of the submission
public 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 IResource getResource()
IGridElementnull if - and only if - this element is virtual.
getResource in interface IGridElementnull if this
element is virtual.public final void internalInit(IFile initInputData)
IServiceJob
internalInit in interface IServiceJobinitInputData - object with information to initialize new (and most
likely empty) instance of classpublic java.lang.Object getStatus()
getStatus in interface IServiceJobpublic java.util.Date getLastUpdate()
IServiceJob
getLastUpdate in interface IServiceJobpublic java.lang.String getSummary()
IServiceJob
getSummary in interface IServiceJobpublic java.util.List<java.util.List<IServiceJobResult>> getServiceJobResultsForResourceForDate(java.lang.String resourceName)
IServiceJob
getServiceJobResultsForResourceForDate in interface IServiceJobresourceName - Name of resource (e.g. host name).
public 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 IGridElementManager getManager()
IManageable
getManager in interface IManageableIGridElementManager.public void addServiceJobResult(java.util.List<IServiceJobResult> newResults)
IServiceJob
addServiceJobResult in interface IServiceJobnewResults - list of new results that should be added to set of
results maintained by this service job's classpublic java.util.Date getLastUpdate(java.lang.String serviceJobResourceName)
IServiceJobIServiceJob.getLastUpdate(), but should be used in case
there can be difference in number of service job's runs for each resource.
getLastUpdate in interface IServiceJobserviceJobResourceName - Name of a resource where service job should run.
public java.util.Map<java.lang.String,java.lang.String> getProperties()
IServiceJob
getProperties in interface IServiceJobpublic void setResource(IFile resource)
resource - public IFolder getServiceJobFolder()
public int getColumnWidth(java.lang.String singleServiceJobName)
IServiceJob
getColumnWidth in interface IServiceJobsingleServiceJobName - Name of the single service job.
public IGridJobService getSubmissionService()
IServiceJobIServiceJob.needsSubmissionWizard()).
getSubmissionService in interface IServiceJobnull in case this information
wasn't set yet, or when service job implementation did not declare
that this information is needed (see
IServiceJob.needsSubmissionWizard()).public boolean needsSubmissionWizard()
IServiceJobIServiceJob.getSubmissionService() method).
needsSubmissionWizard in interface IServiceJobtrue if this service job needs information to which
submission service submit its jobs, false otherwisepublic void setSubmissionService(IGridJobService submissionService)
IServiceJob
setSubmissionService in interface IServiceJob
|
g-Eclipse Release 1.0.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||