|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PackageStateMBean
This MBean represents the Package state of the framework.
Field Summary | |
---|---|
static java.lang.String |
BUNDLE_IDENTIFIER
The name of the item containing the bundle identifier in the CompositeData |
static java.lang.String |
IMPORTING_BUNDLES
The name of the item containing the importing bundles in the CompositeData |
static java.lang.String[] |
PACKAGE
The item names in the CompositeData representing the OSGi Package |
static java.lang.String |
PACKAGE_NAME
The name of the item containing the package name in the CompositeData |
static java.lang.String |
PACKAGE_PENDING_REMOVAL
The name of the item containing the pending removal status of the package in the CompositeData |
static java.lang.String |
PACKAGE_VERSION
The name of the item containing the package version in the CompositeData |
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 |
javax.management.openmbean.TabularData |
getPackages()
Answer the package state of the system in tabular form |
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 |
Field Detail |
---|
static final java.lang.String BUNDLE_IDENTIFIER
static final java.lang.String IMPORTING_BUNDLES
static final java.lang.String PACKAGE_NAME
static final java.lang.String PACKAGE_PENDING_REMOVAL
static final java.lang.String PACKAGE_VERSION
static final java.lang.String[] PACKAGE
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 existlong[] 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 existjavax.management.openmbean.TabularData getPackages()
java.io.IOException
for the details of the TabularType.
Each row of the returned table represents a single package. For each
package, the following row is returned
- name - String
- version - String
- removal pending - boolean
- exporting bundle - long
- importing bundles - long[]
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 |