g-Eclipse
Release 1.0.0

eu.geclipse.core.model
Interface IGridJobManager

All Superinterfaces:
IGridContainer, IGridElement, IGridElementManager, IGridModelNotifier

public interface IGridJobManager
extends IGridElementManager

A job manager is able to manage IGridJob.


Method Summary
 void addJobStatusListener(IGridJob[] jobs, int status, IGridJobStatusListener listener)
           
 void addJobStatusListener(IGridJobStatusListener listener)
           
 void jobStatusChanged(IGridJob job, IGridJobStatus oldStatus)
          Tells updater of the given job that status has been updated externally (i.e. job status wasn't updated in job status updater).
 void pauseAllUpdaters()
          Stops refreshing all job status updaters
 void removeJobStatusListener(IGridJob[] jobs, IGridJobStatusListener listener)
           
 void removeJobStatusListener(IGridJobStatusListener listener)
           
 void removeJobStatusUpdater(IGridJob job, boolean waitForUpdater, IProgressMonitor monitor)
          Cancel current operation in job status updater and remove it from job scheduler
 void updateJobsStatus(java.util.ArrayList<IGridJob> selectedJobs)
          Tells updaters of the given jobs to update statues of the jobs.
 void wakeUpAllUpdaters()
          Starts refreshing all job status udapters
 
Methods inherited from interface eu.geclipse.core.model.IGridElementManager
addElement, canManage, removeElement
 
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.IGridModelNotifier
addGridModelListener, removeGridModelListener
 

Method Detail

addJobStatusListener

void addJobStatusListener(IGridJobStatusListener listener)

addJobStatusListener

void addJobStatusListener(IGridJob[] jobs,
                          int status,
                          IGridJobStatusListener listener)

removeJobStatusListener

void removeJobStatusListener(IGridJobStatusListener listener)

removeJobStatusListener

void removeJobStatusListener(IGridJob[] jobs,
                             IGridJobStatusListener listener)

pauseAllUpdaters

void pauseAllUpdaters()
Stops refreshing all job status updaters


wakeUpAllUpdaters

void wakeUpAllUpdaters()
Starts refreshing all job status udapters


updateJobsStatus

void updateJobsStatus(java.util.ArrayList<IGridJob> selectedJobs)
Tells updaters of the given jobs to update statues of the jobs.

Parameters:
selectedJobs - to have its status updated

jobStatusChanged

void jobStatusChanged(IGridJob job,
                      IGridJobStatus oldStatus)
Tells updater of the given job that status has been updated externally (i.e. job status wasn't updated in job status updater).

Parameters:
job - Job, which status has changed.
oldStatus - status which was set, before job status was updated

removeJobStatusUpdater

void removeJobStatusUpdater(IGridJob job,
                            boolean waitForUpdater,
                            IProgressMonitor monitor)
Cancel current operation in job status updater and remove it from job scheduler

Parameters:
job - the job, for which updater will be removed
waitForUpdater - true if this metchod should wait to moment, when job updater finish current operation
monitor - optionally monitor, which is checked during waiting for finishing updater

g-Eclipse
Release 1.0.0