|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.nava.informa.utils.poller.PersistenceObserver
public class PersistenceObserver
Watches for event about new items and calls given manager to create items in channels.
Constructor Summary | |
---|---|
PersistenceObserver(PersistenceManagerIF manager)
Creates observer. |
Method Summary | |
---|---|
void |
channelChanged(ChannelIF channel)
Invoked when Poller detected changes in channel information (title and etc). |
void |
channelErrored(ChannelIF channel,
Exception e)
Invoked by Poller when poller of the channel failed. |
void |
itemFound(ItemIF item,
ChannelIF channel)
Invoked by Poller when new item is approved for addition. |
void |
pollFinished(ChannelIF channel)
Invoked by Poller when checking of the channel finished. |
void |
pollStarted(ChannelIF channel)
Invoked by Poller when checking of the channel started. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PersistenceObserver(PersistenceManagerIF manager)
manager
- persistence manager to use.
IllegalArgumentException
- if manager isn't specified.Method Detail |
---|
public final void itemFound(ItemIF item, ChannelIF channel)
itemFound
in interface PollerObserverIF
item
- item added.channel
- destination channel.public void channelErrored(ChannelIF channel, Exception e)
channelErrored
in interface PollerObserverIF
channel
- channel.e
- original cause of failure.public void channelChanged(ChannelIF channel)
channelChanged
in interface PollerObserverIF
channel
- channel.public void pollStarted(ChannelIF channel)
pollStarted
in interface PollerObserverIF
channel
- channel.public void pollFinished(ChannelIF channel)
pollFinished
in interface PollerObserverIF
channel
- channel.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |