|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PackageStateMBean
This MBean provides information about the package state of the framework.
| Field Summary | |
|---|---|
static java.lang.String |
EXPORTING_BUNDLE
The key EXPORTING_BUNDLE, used in EXPORTING_BUNDLE_ITEM. |
static Item |
EXPORTING_BUNDLE_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 item names in the CompositeData representing the 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
|
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. |
| Method Summary | |
|---|---|
long |
getExportingBundle(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)
Answer the list of identifiers of the bundles importing the package ### packageName and version is not unique |
boolean |
isRemovalPending(java.lang.String packageName,
java.lang.String version)
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. |
| Field Detail |
|---|
static final java.lang.String OBJECTNAME
static final java.lang.String EXPORTING_BUNDLE
EXPORTING_BUNDLE_ITEM.
static final Item EXPORTING_BUNDLE_ITEM
PACKAGE_TYPE. The
key is EXPORTING_BUNDLE and the type is SimpleType.LONG.
### Is ExportingBundle not a better name?
static final java.lang.String IMPORTING_BUNDLES
IMPORTING_BUNDLES_ITEM.
static final Item IMPORTING_BUNDLES_ITEM
PACKAGE_TYPE. The
key is EXPORTING_BUNDLE and the type is SimpleType.LONG.
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
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_BUNDLE
static final javax.management.openmbean.TabularType PACKAGES_TYPE
listPackages(). They key is
NAME, VERSION, and EXPORTING_BUNDLE.
| Method Detail |
|---|
long getExportingBundle(java.lang.String packageName,
java.lang.String version)
throws java.io.IOException
packageName - - the package nameversion - - the version of the package
java.io.IOException - if the operation fails
java.lang.IllegalArgumentException - if the package indicated does not exist
long[] getImportingBundles(java.lang.String packageName,
java.lang.String version)
throws java.io.IOException
packageName - - the package nameversion - - the version of the package
java.io.IOException - if the operation fails
java.lang.IllegalArgumentException - if the package indicated does not exist
javax.management.openmbean.TabularData listPackages()
throws java.io.IOException
PACKAGES_TYPE, which has
PACKAGE_TYPE as its Composite Type.
java.io.IOException - When fails
boolean isRemovalPending(java.lang.String packageName,
java.lang.String version)
throws java.io.IOException
packageName - - the package nameversion - - the version of the package
java.io.IOException - if the operation fails
java.lang.IllegalArgumentException - if the package indicated does not exist
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||