public interface IJobDirectory
ITaurusJobs of an active application.
The singleton instance can be obtained with
TaurusFactory.getJobDirectory().
Not intended to be implemented by clients.
| Modifier and Type | Method and Description |
|---|---|
void |
addJob(ITaurusJob pJob,
boolean pNotify)
Add the given TAURUS job to the job directory.
|
void |
addObserver(java.util.Observer pObserver)
Add the given observer to this class.
|
void |
changeJobStatus(ITaurusJob pJob)
Deprecated.
method parameters are too limited. Use
changeJobStatus(ITaurusJob) instead. |
void |
deleteObserver(java.util.Observer pObserver)
Delete the given observer for this class.
|
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.
|
void addJob(ITaurusJob pJob, boolean pNotify)
pJob - TAURUS job to be addedpNotify - flag which determines whether the observers of the element
list directory are notifiedvoid removeJob(ITaurusJob pJob)
pJob - TAURUS job to be removed@Deprecated void changeJobStatus(ITaurusJob pJob)
changeJobStatus(ITaurusJob) instead.pJob - TAURUS job which status has changedvoid jobStatusChanged(JobStateChangedEvent pEvent)
pEvent - the event describing the changejava.util.List<ITaurusJob> getJobList() throws TaurusCoreException
ITaurusJobs.TaurusCoreException - if loading the job cache failsvoid addObserver(java.util.Observer pObserver)
pObserver - observervoid deleteObserver(java.util.Observer pObserver)
pObserver - observervoid saveJobs()
throws TaurusCoreException
TaurusCoreException - if saving the job cache failsvoid loadJobs()
throws TaurusCoreException
TaurusCoreException - if loading the job cache failsvoid synchronizeJobs(org.eclipse.core.runtime.IProgressMonitor pMon)
throws TaurusCoreException
pMon - progress monitorTaurusCoreException - if no ITaurusJobUtilities extension was found or the
job cache could not be updatedvoid removeAllJobs()
throws TaurusCoreException
TaurusCoreException - if the job cache could not be updatedCopyright © 2015 Micro Focus GmbH. All rights reserved.