public class BundleInstaller extends Object implements AutoCloseable
Constructor and Description |
---|
BundleInstaller(ToolAdapterOperatorDescriptor descriptor)
Creates an installer for the given adapter descriptor.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
install(boolean async)
Install the bundle (if any) of the current adapter operator.
|
static boolean |
isBundleFileAvailable(Bundle bundle)
Checks if a bundle file (archive or installer) is present.
|
void |
setCallback(Callable<Void> completionCallback)
Sets a callback to be invoked when the execution completes.
|
void |
setProgressMonitor(ProgressMonitor monitor)
Sets a progress monitor for this installer.
|
public BundleInstaller(ToolAdapterOperatorDescriptor descriptor)
descriptor
- The adapter descriptorpublic static boolean isBundleFileAvailable(Bundle bundle)
bundle
- The bundle to be checkedpublic void setProgressMonitor(ProgressMonitor monitor)
monitor
- The progress monitorpublic void setCallback(Callable<Void> completionCallback)
completionCallback
- The completion callbackpublic void install(boolean async)
async
- If true
, installation will be done on a separate thread.public void close() throws Exception
close
in interface AutoCloseable
Exception
Copyright © 2014–2017 European Space Agency (ESA). All rights reserved.