public interface PackageStateMBean
| Modifier and Type | Field and Description |
|---|---|
static String |
EXPORTING_BUNDLES
The key EXPORTING_BUNDLE, used in
EXPORTING_BUNDLES_ITEM. |
static Item |
EXPORTING_BUNDLES_ITEM
The item containing the bundle identifier in
PACKAGE_TYPE. |
static String |
IMPORTING_BUNDLES
The key IMPORTING_BUNDLES, used in
IMPORTING_BUNDLES_ITEM. |
static Item |
IMPORTING_BUNDLES_ITEM
The item containing the bundle identifier in
PACKAGE_TYPE. |
static String |
NAME
The key NAME, used in
NAME_ITEM. |
static Item |
NAME_ITEM
The item containing the name of the package in
PACKAGE_TYPE. |
static String |
OBJECTNAME
The fully qualified object name of this MBean.
|
static CompositeType |
PACKAGE_TYPE
The Composite Type for a CompositeData representing a package.
|
static TabularType |
PACKAGES_TYPE
The Tabular Type used in
listPackages(). |
static String |
REMOVAL_PENDING
The name of the item containing the pending removal status of the package
in the CompositeData.
|
static Item |
REMOVAL_PENDING_ITEM
The item representing the removal pending status of a package.
|
static String |
VERSION
The name of the item containing the package version in the CompositeData.
|
static Item |
VERSION_ITEM
The item containing the version of the package in
PACKAGE_TYPE. |
| Modifier and Type | Method and Description |
|---|---|
long[] |
getExportingBundles(String packageName,
String version)
Answer the identifier of the bundle exporting the package
|
long[] |
getImportingBundles(String packageName,
String version,
long exportingBundle)
Answer the list of identifiers of the bundles importing the package
|
boolean |
isRemovalPending(String packageName,
String version,
long exportingBundle)
Answer if this package is exported by a bundle which has been updated or
uninstalled
|
TabularData |
listPackages()
Answer the package state of the system in tabular form
The Tabular Data is typed by
PACKAGES_TYPE, which has
PACKAGE_TYPE as its Composite Type. |
static final String OBJECTNAME
static final String EXPORTING_BUNDLES
EXPORTING_BUNDLES_ITEM.static final Item EXPORTING_BUNDLES_ITEM
PACKAGE_TYPE. The
key is EXPORTING_BUNDLES and the type is
JmxConstants.LONG_ARRAY_TYPE.static final String IMPORTING_BUNDLES
IMPORTING_BUNDLES_ITEM.static final Item IMPORTING_BUNDLES_ITEM
PACKAGE_TYPE. The
key is IMPORTING_BUNDLES and the type is
JmxConstants.LONG_ARRAY_TYPE.static final String NAME
NAME_ITEM.static final Item NAME_ITEM
PACKAGE_TYPE. The
key is NAME and the type is SimpleType.LONG.static final String REMOVAL_PENDING
static final Item REMOVAL_PENDING_ITEM
REMOVAL_PENDING and the type is SimpleType.BOOLEAN.static final String VERSION
VERSION_ITEM.static final Item VERSION_ITEM
PACKAGE_TYPE.
The key is VERSION and the type is SimpleType.STRING.static final CompositeType PACKAGE_TYPE
NAME and EXPORTING_BUNDLESstatic final TabularType PACKAGES_TYPE
long[] getExportingBundles(String packageName, String version) throws IOException
packageName - - the package nameversion - - the version of the packageIOException - if the operation failsIllegalArgumentException - if the package indicated does not existlong[] getImportingBundles(String packageName, String version, long exportingBundle) throws IOException
packageName - The package nameversion - The version of the packageexportingBundle - The exporting bundle for the given packageIOException - if the operation failsIllegalArgumentException - if the package indicated does not existTabularData listPackages() throws IOException
PACKAGES_TYPE, which has
PACKAGE_TYPE as its Composite Type.IOException - When failsboolean isRemovalPending(String packageName, String version, long exportingBundle) throws IOException
packageName - The package nameversion - The version of the packageexportingBundle - The bundle exporting the packageIOException - if the operation failsIllegalArgumentException - if the package indicated does not existCopyright © OSGi Alliance (2000, 2015). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0