public interface PackageStateMBean
Modifier and Type | Field and Description |
---|---|
static java.lang.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 java.lang.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 java.lang.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 java.lang.String |
OBJECTNAME
The fully qualified object name of this MBean.
|
static javax.management.openmbean.CompositeType |
PACKAGE_TYPE
The Composite Type for a CompositeData representing a package.
|
static javax.management.openmbean.TabularType |
PACKAGES_TYPE
The Tabular Type used in
listPackages() . |
static java.lang.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 java.lang.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(java.lang.String packageName,
java.lang.String version)
Answer the identifier of the bundle exporting the package
|
long[] |
getImportingBundles(java.lang.String packageName,
java.lang.String version,
long exportingBundle)
Answer the list of identifiers of the bundles importing the package
|
boolean |
isRemovalPending(java.lang.String packageName,
java.lang.String version,
long exportingBundle)
Answer if this package is exported by a bundle which has been updated or
uninstalled
|
javax.management.openmbean.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 java.lang.String OBJECTNAME
static final java.lang.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 java.lang.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 java.lang.String NAME
NAME_ITEM
.static final Item NAME_ITEM
PACKAGE_TYPE
. The
key is NAME
and the type is SimpleType.LONG
.static final java.lang.String REMOVAL_PENDING
static final Item REMOVAL_PENDING_ITEM
REMOVAL_PENDING
and the type is SimpleType.BOOLEAN
.static final java.lang.String VERSION
VERSION_ITEM
.static final Item VERSION_ITEM
PACKAGE_TYPE
.
The key is VERSION
and the type is SimpleType.STRING
.static final javax.management.openmbean.CompositeType PACKAGE_TYPE
NAME
and EXPORTING_BUNDLES
static final javax.management.openmbean.TabularType PACKAGES_TYPE
long[] getExportingBundles(java.lang.String packageName, java.lang.String version) throws java.io.IOException
packageName
- - the package nameversion
- - the version of the packagejava.io.IOException
- if the operation failsjava.lang.IllegalArgumentException
- if the package indicated does not existlong[] getImportingBundles(java.lang.String packageName, java.lang.String version, long exportingBundle) throws java.io.IOException
packageName
- The package nameversion
- The version of the packageexportingBundle
- The exporting bundle for the given packagejava.io.IOException
- if the operation failsjava.lang.IllegalArgumentException
- if the package indicated does not existjavax.management.openmbean.TabularData listPackages() throws java.io.IOException
PACKAGES_TYPE
, which has
PACKAGE_TYPE
as its Composite Type.java.io.IOException
- When failsboolean isRemovalPending(java.lang.String packageName, java.lang.String version, long exportingBundle) throws java.io.IOException
packageName
- The package nameversion
- The version of the packageexportingBundle
- The bundle exporting the packagejava.io.IOException
- if the operation failsjava.lang.IllegalArgumentException
- if the package indicated does not existCopyright © OSGi Alliance (2000, 2018). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0