|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.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 PollerObserverIFitem - item added.channel - destination channel.
public void channelErrored(ChannelIF channel,
Exception e)
channelErrored in interface PollerObserverIFchannel - channel.e - original cause of failure.public void channelChanged(ChannelIF channel)
channelChanged in interface PollerObserverIFchannel - channel.public void pollStarted(ChannelIF channel)
pollStarted in interface PollerObserverIFchannel - channel.public void pollFinished(ChannelIF channel)
pollFinished in interface PollerObserverIFchannel - channel.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||