class PluginUpdateHandler extends Object implements Checker, Updater
| Constructor and Description |
|---|
PluginUpdateHandler(RouterContext ctx,
ConsoleUpdateManager mgr)Create a plugin update handler |
| Modifier and Type | Method and Description |
|---|---|
UpdateTask | check(UpdateType type,
UpdateMethod method,
String appName,
String currentVersion,
long maxTime)check a single plugin |
UpdateTask | update(UpdateType type,
UpdateMethod method,
List<URI> updateSources,
String appName,
String newVersion,
long maxTime)download a single plugin |
public PluginUpdateHandler(RouterContext ctx, ConsoleUpdateManager mgr)
ctx - the router contextmgr - the console update managerpublic UpdateTask check(UpdateType type, UpdateMethod method, String appName, String currentVersion, long maxTime)
public UpdateTask update(UpdateType type, UpdateMethod method, List<URI> updateSources, String appName, String newVersion, long maxTime)