class PluginUpdateHandler extends Object implements Checker, Updater
Constructor and Description |
---|
PluginUpdateHandler(RouterContext ctx,
ConsoleUpdateManager mgr) |
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)
public 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)