Notifications

Theoretically notification exists to inform somebody when a scraper has an error, or whenever a scraper successfully runs. In reality it's untested and the only implementation of the org.osjava.oscube.service.notify.Notifier interface is NullNotifier, which does nothing.

Implementing your own Notifier

Below is the method you'll need to implement your own Notifier.

public void notify(Config cfg, Session session) throws NotificationException;
To configure your notifiers:
Xxx.notifier.success=<classname>
Xxx.notifier.error=<classname>
When writing your error Notifier, the Exception thrown is available via the Session object as the "error" variable.