xmlBlaster 2.2.0 API

org.xmlBlaster.contrib.dbwatcher.detector
Interface I_AlertProducer

All Known Implementing Classes:
AlertScheduler, OracleByEventsScheduler, ReplicationScheduler, XmlBlasterPublisher

public interface I_AlertProducer

Interface which hides a scheduler or a trigger.

The plugin needs to call I_ChangeDetector.checkAgain(Map) whenever it thinks it's time to do so.

Author:
Marcel Ruff

Method Summary
 void init(I_Info info, I_ChangeDetector changeDetector)
          Needs to be called after construction.
 void shutdown()
          Stop producing alerts and cleanup resources.
 void startProducing()
          Starts the alert producer.
 void stopProducing()
          Sets the producer to standby.
 

Method Detail

init

void init(I_Info info,
          I_ChangeDetector changeDetector)
          throws java.lang.Exception
Needs to be called after construction.

Parameters:
info - The configuration environment
Throws:
java.lang.Exception - Can be any plugin specific exception

startProducing

void startProducing()
                    throws java.lang.Exception
Starts the alert producer.

Throws:
java.lang.Exception - of any type

stopProducing

void stopProducing()
                   throws java.lang.Exception
Sets the producer to standby. A call to #startProducing() starts it again

Throws:
java.lang.Exception - of any type

shutdown

void shutdown()
              throws java.lang.Exception
Stop producing alerts and cleanup resources.

Throws:
java.lang.Exception - of any type

xmlBlaster 2.2.0 API

Copyright © 1999-2014 The xmlBlaster.org contributers.