|
Framework Professional Edition Package |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface KitManagerService
The Kit Manager Service provides an interface for easy and centralized installation/uninstallation of bundle kits and demos. For remote installation the property mbs.script.base on the server must point to the server directory with the kit's bundles. The Kit Manager Service analyses and executes the given script, replacing the locations of the bundles with the correct remote locations as necessary. Note: This service doesn't support the "-S" parameter ("starts after installation of all bundles") of the install command
| Field Summary | |
|---|---|
static java.lang.String |
EXTERNAL_XML
An URL of a remote location of the text file with list of kits in an XML-like format |
static java.lang.String |
KITLIST_FILENAME
The name of the text file with list of kits in an XML-like format to be read from |
static java.lang.String |
LOCAL_SCRIPT_DIRS
A semicolon separated list of directories to be searched recursively for install scripts |
static java.lang.String |
SCRIPT_BASE
The script base. |
static java.lang.String |
SCRIPT_EXTENSION
The extension of the install script files |
static int |
SCRIPT_LOC
The index of the element in a String[] contained in the vector returned by listKits() which holds the script location |
static int |
SCRIPT_NAME
The index of the element in a String[] contained in the vector returned by listKits() which holds the script name |
| Method Summary | |
|---|---|
KitStatus |
analyseKit(java.lang.String relativeScriptLoc)
This method receives an install script, parses it, finds the bundles that were installed by that script and returns detailed info for the kit state - installed/not installed/bad script and the state of the bundles - present/ installed/not installed. |
InstallStatus |
installKit(java.lang.String relativeScriptLoc,
boolean repairOption)
This method receives an install script, parses it, replaces the locations as needed with the corrected remote locations and executes the commands through the Parser Service. |
java.util.Vector |
listKits()
This method lists the available kits. |
DependencyList |
uninstallKit(java.lang.String relativeScriptLoc,
boolean doUninstall)
This method receives an install script, parses it, replaces the locations as needed with the corrected remote locations and uninstalls the bundles found in the install script. |
java.lang.String |
uninstallList(long[] ids)
Uninstalls the list of Bundle IDs. |
| Field Detail |
|---|
static final java.lang.String KITLIST_FILENAME
static final java.lang.String EXTERNAL_XML
static final java.lang.String LOCAL_SCRIPT_DIRS
static final java.lang.String SCRIPT_BASE
static final java.lang.String SCRIPT_EXTENSION
static final int SCRIPT_NAME
static final int SCRIPT_LOC
| Method Detail |
|---|
java.util.Vector listKits()
throws java.net.MalformedURLException,
java.io.IOException
java.io.IOException - If an exception occurred while reading the kitslist file
java.net.MalformedURLException - if the EXTERNAL_XML property
contains invalid URL.
InstallStatus installKit(java.lang.String relativeScriptLoc,
boolean repairOption)
throws java.io.IOException
relativeScriptLoc - The location of the install script.repairOption - If true, the Bundle-Name, Bundle-Vendor and Bundle-Version
comments in the install script will be corrected
with the info from the manifests of the installed bundles
or the matching bundles in the Framework
java.io.IOException - If an exception occurred during the analysis or
installation (like invalid location of the script or a bundle).
DependencyList uninstallKit(java.lang.String relativeScriptLoc,
boolean doUninstall)
throws java.io.IOException
relativeScriptLoc - The location of the install script.doUninstall - Whether to uninstall all bundles if no dependencies are found or wait for confirmation.
if false, the method serves as a dependencies analyser.
java.io.IOException - If an exception occurred during the analysis or
uninstallation (like invalid location of the script or a bundle).
java.lang.String uninstallList(long[] ids)
throws java.io.IOException
ids - an array with the Bundle IDs to be uninstalled.
java.io.IOException - If an exception occurred during the analysis or
uninstallation.
KitStatus analyseKit(java.lang.String relativeScriptLoc)
throws java.io.IOException
relativeScriptLoc - The location of the install script.
java.io.IOException - If an exception occurred during the analysis
(like invalid location of the script or a bundle).
|
Framework Professional Edition Package |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||