|
xmlBlaster 2.2.0 contributions API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.TimerTask org.xmlBlaster.contrib.dbwatcher.detector.AlertScheduler org.xmlBlaster.contrib.replication.ReplicationScheduler
public class 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
java.lang.Exception
Method Detail |
---|
public void init(I_Info info, I_ChangeDetector changeDetector) throws java.lang.Exception
I_AlertProducer
init
in interface I_AlertProducer
init
in class AlertScheduler
info
- The configuration environment
java.lang.Exception
- Can be any plugin specific exceptionI_DataConverter.init(I_Info)
public void run()
run
in interface java.lang.Runnable
run
in class AlertScheduler
public void shutdown() throws java.lang.Exception
shutdown
in interface I_AlertProducer
shutdown
in class AlertScheduler
java.lang.Exception
- of any typeI_AlertProducer.shutdown()
|
xmlBlaster 2.2.0 contributions API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |