Packages that use UpdateType
Package
Description
Router-side update checking and installation: fetching update notifications, downloading and verifying updates, and staging them for the restart.
The router console user interface, implemented in routerconsole.jar, with these classes supporting the webapp in routerconsole.war.
Update checking and installation interfaces: update types, version comparison, status reporting and the UpdateManager used by the router and the console to offer updates.
I2P version of the Snark BitTorrent client, enhanced for I2P: peers are I2P destinations, torrents can be served anonymously as hidden services, and metadata carries I2P-specific comment fields.
Uses of UpdateType in net.i2p.router.update
Fields in net.i2p.router.update declared as UpdateTypeModifier and TypeFieldDescriptionprotected final UpdateTypeUpdateRunner._typeUpdate type.final UpdateTypeConsoleUpdateManager.RegisteredChecker.typeThe update type this registration serves.final UpdateTypeConsoleUpdateManager.RegisteredUpdater.typeThe update type this registration serves.final UpdateTypeConsoleUpdateManager.UpdateItem.typeThe update type this item identifies.Methods in net.i2p.router.update that return UpdateTypeModifier and TypeMethodDescriptionUpdateRunner.getType()Returns what kind of update this runner handles.Methods in net.i2p.router.update with parameters of type UpdateTypeModifier and TypeMethodDescriptionvoidConsoleUpdateManager.check(UpdateType type) Fire off a checker task Non-blocking.voidConsoleUpdateManager.check(UpdateType type, String id) Fire off a checker task Non-blocking.DevSU3UpdateHandler.check(UpdateType type, UpdateMethod method, String id, String currentVersion, long maxTime) Look for a dev SU3 update.DummyHandler.check(UpdateType type, UpdateMethod method, String id, String currentVersion, long maxTime) Spins off an UpdateTask that sleeps.NewsHandler.check(UpdateType type, UpdateMethod method, String id, String currentVersion, long maxTime) This will check for news or router updates (it does the same thing).PluginUpdateHandler.check(UpdateType type, UpdateMethod method, String appName, String currentVersion, long maxTime) Check a single plugin.UnsignedUpdateHandler.check(UpdateType type, UpdateMethod method, String id, String currentVersion, long maxTime) Offer a checker for the unsigned router zip, or nothing at all if this type or method is not the one being asked about, no source is configured, or no previous check time has been stamped yet.ConsoleUpdateManager.checkAvailable(UpdateType type) Is an update available? Blocking.ConsoleUpdateManager.checkAvailable(UpdateType type, long maxWait) Is an update available? Blocking.ConsoleUpdateManager.checkAvailable(UpdateType type, String id, long maxWait) Is an update available? Blocking.private StringConsoleUpdateManager.getDownloadedOrInstalledVersion(UpdateType type, String id) The highest of the installed or downloaded version.ConsoleUpdateManager.getUpdateAvailable(UpdateType type) Is an update available? Non-blocking, returns result of last check or notification from an Updater.ConsoleUpdateManager.getUpdateAvailable(UpdateType type, String id) Is an update available? Non-blocking, returns result of last check or notification from an Updater.ConsoleUpdateManager.getUpdateConstraint(UpdateType type, String id) Is there a reason we can't download the update?ConsoleUpdateManager.getUpdateDownloaded(UpdateType type) Is an update downloaded? Non-blocking, returns result of last download.ConsoleUpdateManager.getUpdateDownloaded(UpdateType type, String id) Is an update downloaded? Non-blocking, returns result of last download.ConsoleUpdateManager.getUpdateURLs(UpdateType type, String id, UpdateMethod method) Where to find various resources.private booleanConsoleUpdateManager.handleRouterFile(URI uri, String actualVersion, File f, UpdateType updateType) Process sud, su2, or su3.booleanConsoleUpdateManager.isCheckInProgress(UpdateType type) Is a check in progress?booleanConsoleUpdateManager.isCheckInProgress(UpdateType type, String id) Is a check in progress?booleanConsoleUpdateManager.isUpdateInProgress(UpdateType type) Is a download in progress?booleanConsoleUpdateManager.isUpdateInProgress(UpdateType type, String id) Is a download in progress?(package private) static StringConsoleUpdateManager.itemDisplayName(UpdateType type, String id) Display name for an update item.private voidConsoleUpdateManager.notifyDownloaded(UpdateType type, String id, String version) Adds to downloaded, removes from available.voidConsoleUpdateManager.notifyInstalled(UpdateType type, String id, String version) Adds to installed, removes from downloaded and available.booleanConsoleUpdateManager.notifyVersionAvailable(UpdateTask task, URI newsSource, UpdateType type, String id, Map<UpdateMethod, List<URI>> sourceMap, String newVersion, String minVersion) Called by the Checker, either after check() was called, or it found out on its own.booleanConsoleUpdateManager.notifyVersionAvailable(UpdateTask task, URI newsSource, UpdateType type, String id, UpdateMethod method, List<URI> updateSources, String newVersion, String minVersion) Called by the Updater, either afterConsoleUpdateManager.check(UpdateType)was called, or it found out on its own.voidConsoleUpdateManager.notifyVersionConstraint(UpdateTask task, URI newsSource, UpdateType type, String id, String newVersion, String message) A new version is available but cannot be downloaded or installed due to some constraint.voidConsoleUpdateManager.register(Checker updater, UpdateType type, UpdateMethod method, int priority) Add the Checker to the set consulted for each update type and method.voidConsoleUpdateManager.register(UpdatePostProcessor upp, UpdateType type, int fileType) Register a post-processor for this UpdateType and SU3File file type.voidConsoleUpdateManager.register(Updater updater, UpdateType type, UpdateMethod method, int priority) Add the Updater to the set consulted for each update type and method.voidConsoleUpdateManager.stopCheck(UpdateType type) Stop this check.voidConsoleUpdateManager.stopCheck(UpdateType type, String id) Stop this check.voidConsoleUpdateManager.stopUpdate(UpdateType type) Stop this download.voidConsoleUpdateManager.stopUpdate(UpdateType type, String id) Stop this download.voidConsoleUpdateManager.unregister(Checker updater, UpdateType type, UpdateMethod method) Remove the Checker previously registered for the type and method.voidConsoleUpdateManager.unregister(Updater updater, UpdateType type, UpdateMethod method) Remove the Updater previously registered for the type and method.booleanConsoleUpdateManager.update(UpdateType type) Non-blocking.booleanConsoleUpdateManager.update(UpdateType type, long maxTime) Non-blocking.booleanConsoleUpdateManager.update(UpdateType type, String id) Non-blocking.booleanConsoleUpdateManager.update(UpdateType type, String id, long maxTime) Non-blocking.DevSU3UpdateHandler.update(UpdateType type, UpdateMethod method, List<URI> updateSources, String id, String newVersion, long maxTime) Start a download and return a handle to the download task.DummyHandler.update(UpdateType type, UpdateMethod method, List<URI> updateSources, String id, String newVersion, long maxTime) Spins off an UpdateTask that sleeps.PluginUpdateHandler.update(UpdateType type, UpdateMethod method, List<URI> updateSources, String appName, String newVersion, long maxTime) Download a single plugin.UnsignedUpdateHandler.update(UpdateType type, UpdateMethod method, List<URI> updateSources, String id, String newVersion, long maxTime) Start a download and return a handle to the download task.UpdateHandler.update(UpdateType type, UpdateMethod method, List<URI> updateSources, String id, String newVersion, long maxTime) Start a download and return a handle to the download task.private booleanConsoleUpdateManager.update_fromCheck(UpdateType type, String id, long maxTime) Non-blocking.private static StringConsoleUpdateManager.versionFor(Map<UpdateType, String> typeVersions, UpdateType type) The installed version string registered for a worker's type, or a dash when that type has no installed version.Method parameters in net.i2p.router.update with type arguments of type UpdateTypeModifier and TypeMethodDescriptionprivate static StringConsoleUpdateManager.versionFor(Map<UpdateType, String> typeVersions, UpdateType type) The installed version string registered for a worker's type, or a dash when that type has no installed version.Constructors in net.i2p.router.update with parameters of type UpdateTypeModifierConstructorDescriptionRegisteredChecker(Checker u, UpdateType t, UpdateMethod m, int priority) Record a Checker for the given type, method and priority.RegisteredUpdater(Updater u, UpdateType t, UpdateMethod m, int priority) Record an Updater for the given type, method and priority.UpdateItem(UpdateType t, String id) Identify an installed update by type and plugin name.UpdateRunner(RouterContext ctx, ConsoleUpdateManager mgr, UpdateType type, List<URI> uris) Uses router version for partial checks.UpdateRunner(RouterContext ctx, ConsoleUpdateManager mgr, UpdateType type, List<URI> uris, String currentVersion) Constructor with explicit current version.UpdateRunner(RouterContext ctx, ConsoleUpdateManager mgr, UpdateType type, UpdateMethod method, List<URI> uris) Uses router version for partial checks.UpdateRunner(RouterContext ctx, ConsoleUpdateManager mgr, UpdateType type, UpdateMethod method, List<URI> uris, String currentVersion) Full constructor.Uses of UpdateType in net.i2p.router.web
Methods in net.i2p.router.web with parameters of type UpdateTypeModifier and TypeMethodDescriptionprivate voidUpdateHandler.update(UpdateType type) Starts an update of the given kind.Uses of UpdateType in net.i2p.update
Subclasses with type arguments of type UpdateType in net.i2p.updateMethods in net.i2p.update that return UpdateTypeModifier and TypeMethodDescriptionUpdateTask.getType()Get the update type.static UpdateTypeReturns the enum constant of this class with the specified name.static UpdateType[]UpdateType.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in net.i2p.update with parameters of type UpdateTypeModifier and TypeMethodDescriptionChecker.check(UpdateType type, UpdateMethod method, String id, String currentVersion, long maxTime) Check for updates.UpdateManager.checkAvailable(UpdateType type) Is an update available? Blocking.UpdateManager.checkAvailable(UpdateType type, long maxWait) Is an update available? Blocking.UpdateManager.checkAvailable(UpdateType type, String id, long maxWait) Is an update available? Blocking.booleanUpdateManager.isUpdateInProgress(UpdateType type) Is a router update being downloaded?booleanUpdateManager.isUpdateInProgress(UpdateType type, String id) Is a router update being downloaded?voidUpdateManager.notifyInstalled(UpdateType type, String id, String version) Tell the UpdateManager that a version is already installed.booleanUpdateManager.notifyVersionAvailable(UpdateTask task, URI newsSource, UpdateType type, String id, Map<UpdateMethod, List<URI>> sourceMap, String newVersion, String minVersion) Called by the Checker, either after check() was called, or it found out on its own.booleanUpdateManager.notifyVersionAvailable(UpdateTask task, URI newsSource, UpdateType type, String id, UpdateMethod method, List<URI> updateSources, String newVersion, String minVersion) Called by the Checker, either after check() was called, or it found out on its own.voidUpdateManager.notifyVersionConstraint(UpdateTask task, URI newsSource, UpdateType type, String id, String newVersion, String message) A new version is available but cannot be downloaded or installed due to some constraint.voidUpdateManager.register(Checker checker, UpdateType type, UpdateMethod method, int priority) Register a checker for updates.voidUpdateManager.register(UpdatePostProcessor upp, UpdateType type, int fileType) Register a post-processor for this UpdateType and SU3File file type.voidUpdateManager.register(Updater updater, UpdateType type, UpdateMethod method, int priority) Call once for each type/method pair.voidUpdateManager.unregister(Checker checker, UpdateType type, UpdateMethod method) Unregister a checker.voidUpdateManager.unregister(Updater updater, UpdateType type, UpdateMethod method) Unregister an updater.booleanUpdateManager.update(UpdateType type) Non-blocking.booleanUpdateManager.update(UpdateType type, long maxTime) Non-blocking.booleanUpdateManager.update(UpdateType type, String id) Non-blocking.booleanUpdateManager.update(UpdateType type, String id, long maxTime) Non-blocking.Updater.update(UpdateType type, UpdateMethod method, List<URI> updateSources, String id, String newVersion, long maxTime) Start a download and return a handle to the download task.voidUpdatePostProcessor.updateDownloadedAndVerified(UpdateType type, int fileType, String version, File file) Notify the post-processor that an update has been downloaded and verified.Uses of UpdateType in org.klomp.snark
Fields in org.klomp.snark declared as UpdateTypeModifier and TypeFieldDescriptionprivate final UpdateTypeUpdateRunner._typeThe type of update being run.Methods in org.klomp.snark that return UpdateTypeMethods in org.klomp.snark with parameters of type UpdateTypeModifier and TypeMethodDescriptionUpdateHandler.update(UpdateType type, UpdateMethod method, List<URI> updateSources, String id, String newVersion, long maxTime) Start a download and return a handle to the download task.Constructors in org.klomp.snark with parameters of type UpdateTypeModifierConstructorDescriptionUpdateRunner(I2PAppContext ctx, UpdateManager umgr, SnarkManager smgr, UpdateType type, List<URI> uris, String newVersion) Update runner.