|
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 org.xmlBlaster.contrib.replication.OracleByEventsScheduler
public class OracleByEventsScheduler
This scheduler wakes up in intervals and triggers a database check.
Supported configuration:
Constructor Summary | |
---|---|
OracleByEventsScheduler()
Default constructor, you need to call init(org.xmlBlaster.contrib.I_Info, org.xmlBlaster.contrib.dbwatcher.detector.I_ChangeDetector) thereafter. |
|
OracleByEventsScheduler(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. |
static void |
registerEvent(java.sql.Connection conn,
java.lang.String event)
|
void |
shutdown()
Stop the scheduler. |
void |
startProducing()
Starts the alert producer. |
void |
stopProducing()
Sets the producer to standby. |
static void |
unregisterEvent(java.sql.Connection conn,
java.lang.String event)
|
static void |
waitForEvent(java.sql.Connection conn,
java.lang.String event,
long timeout)
This method does not return exceptions (also catches Throwable). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OracleByEventsScheduler()
init(org.xmlBlaster.contrib.I_Info, org.xmlBlaster.contrib.dbwatcher.detector.I_ChangeDetector)
thereafter.
public OracleByEventsScheduler(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
info
- 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_AlertProducer
I_AlertProducer.startProducing()
public void stopProducing() throws java.lang.Exception
I_AlertProducer
stopProducing
in interface I_AlertProducer
java.lang.Exception
- of any typeI_AlertProducer.stopProducing()
public void shutdown() throws java.lang.Exception
shutdown
in interface I_AlertProducer
java.lang.Exception
- of any typeI_AlertProducer.shutdown()
public static void waitForEvent(java.sql.Connection conn, java.lang.String event, long timeout) throws java.lang.Exception
conn
- The database connection to use.event
- the name of the even on which to waittimeout
- the maximum time to wait in ms
java.lang.Exception
public static void registerEvent(java.sql.Connection conn, java.lang.String event) throws java.lang.Exception
java.lang.Exception
public static void unregisterEvent(java.sql.Connection conn, java.lang.String event) throws java.lang.Exception
java.lang.Exception
|
xmlBlaster 2.2.0 contributions API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |