net.i2p.update
Interface UpdateTask

All Known Implementing Classes:
NewsFetcher, PluginUpdateChecker, PluginUpdateRunner, UnsignedUpdateChecker, UnsignedUpdateRunner, UpdateRunner, UpdateRunner

public interface UpdateTask

A running check or download. Cannot be restarted.

Since:
0.9.4

Method Summary
 String getID()
          Valid for plugins
 UpdateMethod getMethod()
           
 UpdateType getType()
           
 URI getURI()
          The current URI being checked or downloaded from.
 boolean isRunning()
           
 void shutdown()
           
 void start()
          Tasks must not start themselves in the constructor.
 

Method Detail

start

void start()
Tasks must not start themselves in the constructor. Do it here.


shutdown

void shutdown()

isRunning

boolean isRunning()

getType

UpdateType getType()

getMethod

UpdateMethod getMethod()

getURI

URI getURI()
The current URI being checked or downloaded from. Can change if there are multiple URIs to try.


getID

String getID()
Valid for plugins