de.nava.informa.utils.poller
Interface PollerObserverIF

All Known Implementing Classes:
CompositeObserver, PersistenceObserver

public interface PollerObserverIF

Observer of events outgoing from Poller.

Author:
Aleksey Gureev (spyromus@noizeramp.com)

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 successfully.
 void pollStarted(ChannelIF channel)
          Invoked by Poller when checking of the channel started.
 

Method Detail

itemFound

void itemFound(ItemIF item,
               ChannelIF channel)
Invoked by Poller when new item is approved for addition. Item is transient and should be added to specified channel.

Parameters:
item - item added.
channel - destination channel.

channelErrored

void channelErrored(ChannelIF channel,
                    Exception e)
Invoked by Poller when poller of the channel failed.

Parameters:
channel - channel.
e - original cause of failure.

channelChanged

void channelChanged(ChannelIF channel)
Invoked when Poller detected changes in channel information (title and etc).

Parameters:
channel - channel.

pollStarted

void pollStarted(ChannelIF channel)
Invoked by Poller when checking of the channel started.

Parameters:
channel - channel.

pollFinished

void pollFinished(ChannelIF channel)
Invoked by Poller when checking of the channel finished successfully.

Parameters:
channel - channel.


Copyright © 2002-2007 Niko Schmuck. All Rights Reserved.