|
xmlBlaster 1.6.2 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
This scheduler waiks up in intervals and triggers a database check.
Supported configuration:
| Field Summary | |
private I_ChangeDetector |
changeDetector
|
private static java.util.logging.Logger |
log
|
private long |
period
|
private java.util.Timer |
timer
|
| Fields inherited from class java.util.TimerTask |
|
| Constructor Summary | |
AlertScheduler()
Default constructor, you need to call init(org.xmlBlaster.contrib.I_Info, org.xmlBlaster.contrib.dbwatcher.detector.I_ChangeDetector) thereafter. |
|
AlertScheduler(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. |
void |
startProducing()
Starts the alert producer. |
void |
stopProducing()
Sets the producer to standby. |
| 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 |
| Field Detail |
private static java.util.logging.Logger log
private I_ChangeDetector changeDetector
private java.util.Timer timer
private long period
| Constructor Detail |
public AlertScheduler()
init(org.xmlBlaster.contrib.I_Info, org.xmlBlaster.contrib.dbwatcher.detector.I_ChangeDetector) thereafter.
public AlertScheduler(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_AlertProducerinfo - The configuration environment
java.lang.Exception - Can be any plugin specific exceptionI_DataConverter.init(I_Info)public void startProducing()
I_AlertProducer
startProducing in interface I_AlertProducerI_AlertProducer.startProducing()
public void stopProducing()
throws java.lang.Exception
I_AlertProducer
stopProducing in interface I_AlertProducerjava.lang.Exception - of any typeI_AlertProducer.stopProducing()public void run()
run in interface java.lang.Runnable
public void shutdown()
throws java.lang.Exception
shutdown in interface I_AlertProducerjava.lang.Exception - of any typeI_AlertProducer.shutdown()
|
xmlBlaster 1.6.2 API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||