public class SystemBundleUpdateTask extends AbstractInstallTask
ASYNC_ATTR_NAME
Constructor and Description |
---|
SystemBundleUpdateTask(TaskResourceGroup r,
TaskSupport taskSupport) |
Modifier and Type | Method and Description |
---|---|
void |
execute(InstallationContext ctx)
This is the heart of the task - it performs the actual task.
|
String |
getSortKey()
Tasks are sorted according to this key.
|
boolean |
isAsynchronousTask()
If this an asynchronous task it should return
true
The OSGi installer will set the attribute InstallTask.ASYNC_ATTR_NAME
with an integer value. |
getBundleContext, getBundleRefresher, getLogger, getStartLevel, getTaskSupport
compareTo, equals, getResource, getResourceGroup, hashCode, setFinishedState, setFinishedState, toString
public SystemBundleUpdateTask(TaskResourceGroup r, TaskSupport taskSupport)
public void execute(InstallationContext ctx)
InstallTask
execute
in class InstallTask
ctx
- The installation context.public boolean isAsynchronousTask()
InstallTask
true
The OSGi installer will set the attribute InstallTask.ASYNC_ATTR_NAME
with an integer value.
The next time, after the asynchronous task has been run and
the OSGi installer has restarted, this attribute will be set
on the resource.
Asynchronous tasks should only be used for tasks which require
the OSGi installer to stop and force it to restart, like
a bundle update of the installer itself or a system update.
The OSGi installer stops itself for an asynchronous task and
is not able to restart itself!isAsynchronousTask
in class InstallTask
true
otherwise false
public String getSortKey()
InstallTask
getSortKey
in class InstallTask
Copyright © 2007–2014 The Apache Software Foundation. All rights reserved.