All Known Implementing Classes:
DevSU3UpdateChecker, DevSU3UpdateRunner, DummyHandler.DummyRunner, NewsFetcher, PluginUpdateChecker, PluginUpdateRunner, UnsignedUpdateChecker, UnsignedUpdateRunner, UpdateRunner, UpdateRunner

public interface UpdateTask
A running check or download. Cannot be restarted.
  • Method Details

    • start

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

      void shutdown()
      Shutdown the task.
    • isRunning

      boolean isRunning()
      Check if the task is currently running.
      Returns:
      true if running
    • getType

      UpdateType getType()
      Get the update type.
      Returns:
      what is being updated, as one of the UpdateType constants
    • getMethod

      UpdateMethod getMethod()
      Get the update method.
      Returns:
      how the update is retrieved, as one of the UpdateMethod constants
    • getURI

      URI getURI()
      The current URI being checked or downloaded from. Can change if there are multiple URIs to try.
      Returns:
      the URI being checked or downloaded from at the moment
    • getID

      String getID()
      Valid for plugins.
      Returns:
      the identifier of the plugin being updated, empty if this is not a plugin update