net.i2p.router.update
Class NewsHandler

java.lang.Object
  extended by net.i2p.router.update.UpdateHandler
      extended by net.i2p.router.update.NewsHandler
All Implemented Interfaces:
Checker, Updater

 class NewsHandler
extends UpdateHandler
implements Checker

Task to periodically look for updates to the news.xml, and to keep track of whether that has an announcement for a new version. Overrides UpdateRunner for convenience, this is not an Updater

Since:
0.9.4 moved from NewsFetcher

Field Summary
 
Fields inherited from class net.i2p.router.update.UpdateHandler
_context, _mgr
 
Constructor Summary
NewsHandler(RouterContext ctx, ConsoleUpdateManager mgr)
           
 
Method Summary
 UpdateTask check(UpdateType type, UpdateMethod method, String id, String currentVersion, long maxTime)
          This will check for news or router updates (it does the same thing).
 
Methods inherited from class net.i2p.router.update.UpdateHandler
update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NewsHandler

public NewsHandler(RouterContext ctx,
                   ConsoleUpdateManager mgr)
Method Detail

check

public UpdateTask check(UpdateType type,
                        UpdateMethod method,
                        String id,
                        String currentVersion,
                        long maxTime)
This will check for news or router updates (it does the same thing). Should not block.

Specified by:
check in interface Checker
Parameters:
currentVersion - ignored, stored locally
id - plugin name or ignored
maxTime - how long you have
Returns:
active task or null if unable to check