|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object JobChangeAdapter com.ibm.etools.iseries.edit.language.model.DdsModelLpexAdapter.ParseJobScheduler
public class DdsModelLpexAdapter.ParseJobScheduler
This class schedules jobs to parse the model from the editor's contents in the background. The singleton pattern is used.
Constructor Summary | |
---|---|
DdsModelLpexAdapter.ParseJobScheduler()
|
Method Summary | |
---|---|
void |
createPendingJob(DdsModelLpexAdapter.ParseDdsModelJob newJob)
If there is a pending job - merge with it otherwise create a pending job. |
void |
done(IJobChangeEvent event)
|
boolean |
isJobScheduled()
Has a parse job already been scheduled |
boolean |
isPendingJobScheduled()
Is there another parse job pending when the current one completes |
boolean |
isScheduledJobYoungerThan(long timestamp)
The currently schedule job was created after the given timestamp If there is no schedule job, returns false |
void |
jobHasFinished(Job finishedJob)
If the scheduled job has ended then schedule another one because something changed since the scheduled job started running. |
void |
notifyWhenAllParsingComplete(com.ibm.etools.iseries.edit.language.model.DdsModelLpexAdapter.IParseJobListener jobListener)
The callback method in IParseJobListener is guaranteed to be called exactly once after
all parse jobs have run to completion. |
void |
schedule(DdsModelLpexAdapter.ParseDdsModelJob newJob)
Schedule a job If a job is already scheduled but not running merge with it. |
void |
scheduleParse()
Schedule a job to parse the contents of the Lpex editor. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DdsModelLpexAdapter.ParseJobScheduler()
Method Detail |
---|
public void scheduleParse()
public void schedule(DdsModelLpexAdapter.ParseDdsModelJob newJob)
public void createPendingJob(DdsModelLpexAdapter.ParseDdsModelJob newJob)
rangeBottom
- - bottom of range of elements whose sequence numbers may need fixingrangeTop
- - top of range of elements whose sequence numbers may need fixingpublic void jobHasFinished(Job finishedJob)
finishedJob
- public void done(IJobChangeEvent event)
public boolean isJobScheduled()
public boolean isPendingJobScheduled()
public boolean isScheduledJobYoungerThan(long timestamp)
timestamp
- public void notifyWhenAllParsingComplete(com.ibm.etools.iseries.edit.language.model.DdsModelLpexAdapter.IParseJobListener jobListener)
IParseJobListener
is guaranteed to be called exactly once after
all parse jobs have run to completion.
If this has happened before this method is called, then the callback method is called right away
jobListener
-
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |