public class JobDirectory extends java.util.Observable implements IJobDirectory
IJobDirectory.| Modifier and Type | Method and Description |
|---|---|
void |
addJob(ITaurusJob pJob,
boolean pNotify)
Add the given TAURUS job to the job directory.
|
void |
changeJobStatus(ITaurusJob pJob)
Deprecated.
|
static JobDirectory |
getInstance()
Gets the singleton instance.
|
java.util.List<ITaurusJob> |
getJobList()
Gets a list of all currently available
ITaurusJobs. |
void |
jobStatusChanged(JobStateChangedEvent pEvent)
Notifies the directory that a job status has changed, causing all
observers to be notified.
|
void |
loadJobs()
Load the job directory from the jt_jobs.xml file in the workspace.
|
void |
removeAllJobs()
Removes all cached jobs physically.
|
void |
removeJob(ITaurusJob pJob)
Remove the given job from the job directory.
|
void |
saveJobs()
Save the jobs of the job directory to the jt_jobs.xml file in the
workspace.
|
void |
synchronizeJobs(org.eclipse.core.runtime.IProgressMonitor pMon)
Synchronize the job directory with the existing jobs on the corresponding
remote system.
|
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObserversequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddObserver, deleteObserverpublic static JobDirectory getInstance()
public void addJob(ITaurusJob pJob, boolean pNotify)
IJobDirectoryaddJob in interface IJobDirectorypJob - TAURUS job to be addedpNotify - flag which determines whether the observers of the element
list directory are notifiedpublic java.util.List<ITaurusJob> getJobList() throws TaurusCoreException
IJobDirectoryITaurusJobs.getJobList in interface IJobDirectoryTaurusCoreException - if loading the job cache failspublic void synchronizeJobs(org.eclipse.core.runtime.IProgressMonitor pMon)
throws TaurusCoreException
IJobDirectorysynchronizeJobs in interface IJobDirectorypMon - progress monitorTaurusCoreException - if no ITaurusJobUtilities extension was found or the
job cache could not be updated@Deprecated public void changeJobStatus(ITaurusJob pJob)
IJobDirectorychangeJobStatus in interface IJobDirectorypJob - TAURUS job which status has changedpublic void loadJobs()
throws TaurusCoreException
IJobDirectoryloadJobs in interface IJobDirectoryTaurusCoreException - if loading the job cache failspublic void removeJob(ITaurusJob pJob)
IJobDirectoryremoveJob in interface IJobDirectorypJob - TAURUS job to be removedpublic void removeAllJobs()
throws TaurusCoreException
IJobDirectoryremoveAllJobs in interface IJobDirectoryTaurusCoreException - if the job cache could not be updatedpublic void saveJobs()
throws TaurusCoreException
IJobDirectorysaveJobs in interface IJobDirectoryTaurusCoreException - if saving the job cache failspublic void jobStatusChanged(JobStateChangedEvent pEvent)
IJobDirectoryjobStatusChanged in interface IJobDirectorypEvent - the event describing the changeCopyright © 2015 Micro Focus GmbH. All rights reserved.