|
xmlBlaster 1.6.2 contributions API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.util.TimerTask
org.xmlBlaster.contrib.dbwatcher.detector.AlertScheduler
org.xmlBlaster.contrib.replication.ReplicationScheduler
ReplicationScheduler extends the AlertScheduler which is a poller to the database. The only purpose of this extention is to call a stored procedure which triggers a detection of changes in structure of the tables currently watched and/or replicated. The call to this stored procedure is only needed in such database implementations where it is not possible to get CREATE TABLE, DROP TABLE or ALTER TABLE events by means of trigger. This is for example the case of PostGres 8.0.
| Constructor Summary | |
ReplicationScheduler()
|
|
ReplicationScheduler(I_Info info,
I_ChangeDetector changeDetector)
Create a scheduler, calls init(org.xmlBlaster.contrib.I_Info, org.xmlBlaster.contrib.dbwatcher.detector.I_ChangeDetector). |
|
| Method Summary | |
void |
init(I_Info info,
I_ChangeDetector changeDetector)
Needs to be called after construction. |
void |
run()
Used by scheduler thread internally. |
void |
shutdown()
Stop the scheduler. |
| Methods inherited from class org.xmlBlaster.contrib.dbwatcher.detector.AlertScheduler |
startProducing, stopProducing |
| Methods inherited from class java.util.TimerTask |
cancel, scheduledExecutionTime |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ReplicationScheduler()
public ReplicationScheduler(I_Info info,
I_ChangeDetector changeDetector)
throws java.lang.Exception
init(org.xmlBlaster.contrib.I_Info, org.xmlBlaster.contrib.dbwatcher.detector.I_ChangeDetector).
info - The configuration environmentchangeDetector - The class to be alerted then and again| Method Detail |
public void init(I_Info info,
I_ChangeDetector changeDetector)
throws java.lang.Exception
I_AlertProducer
init in interface I_AlertProducerinit in class AlertSchedulerjava.lang.ExceptionI_DataConverter.init(I_Info)public void run()
run in interface java.lang.Runnablerun in class AlertScheduler
public void shutdown()
throws java.lang.Exception
shutdown in interface I_AlertProducershutdown in class AlertSchedulerjava.lang.ExceptionI_AlertProducer.shutdown()
|
xmlBlaster 1.6.2 contributions API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||