Package org.osgi.jmx.framework
Interface PackageStateMBean
- 
public interface PackageStateMBeanThis MBean provides information about the package state of the framework. 
- 
- 
Field Summary
Fields Modifier and Type Field Description static java.lang.StringEXPORTING_BUNDLESThe key EXPORTING_BUNDLE, used inEXPORTING_BUNDLES_ITEM.static ItemEXPORTING_BUNDLES_ITEMThe item containing the bundle identifier inPACKAGE_TYPE.static java.lang.StringIMPORTING_BUNDLESThe key IMPORTING_BUNDLES, used inIMPORTING_BUNDLES_ITEM.static ItemIMPORTING_BUNDLES_ITEMThe item containing the bundle identifier inPACKAGE_TYPE.static java.lang.StringNAMEThe key NAME, used inNAME_ITEM.static ItemNAME_ITEMThe item containing the name of the package inPACKAGE_TYPE.static java.lang.StringOBJECTNAMEThe fully qualified object name of this MBean.static javax.management.openmbean.CompositeTypePACKAGE_TYPEThe Composite Type for a CompositeData representing a package.static javax.management.openmbean.TabularTypePACKAGES_TYPEThe Tabular Type used inlistPackages().static java.lang.StringREMOVAL_PENDINGThe name of the item containing the pending removal status of the package in the CompositeData.static ItemREMOVAL_PENDING_ITEMThe item representing the removal pending status of a package.static java.lang.StringVERSIONThe name of the item containing the package version in the CompositeData.static ItemVERSION_ITEMThe item containing the version of the package inPACKAGE_TYPE. 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long[]getExportingBundles(java.lang.String packageName, java.lang.String version)Answer the identifier of the bundle exporting the packagelong[]getImportingBundles(java.lang.String packageName, java.lang.String version, long exportingBundle)Answer the list of identifiers of the bundles importing the packagebooleanisRemovalPending(java.lang.String packageName, java.lang.String version, long exportingBundle)Answer if this package is exported by a bundle which has been updated or uninstalledjavax.management.openmbean.TabularDatalistPackages()Answer the package state of the system in tabular form The Tabular Data is typed byPACKAGES_TYPE, which hasPACKAGE_TYPEas its Composite Type. 
 - 
 
- 
- 
Field Detail
- 
OBJECTNAME
static final java.lang.String OBJECTNAME
The fully qualified object name of this MBean.- See Also:
 - Constant Field Values
 
 
- 
EXPORTING_BUNDLES
static final java.lang.String EXPORTING_BUNDLES
The key EXPORTING_BUNDLE, used inEXPORTING_BUNDLES_ITEM.- See Also:
 - Constant Field Values
 
 
- 
EXPORTING_BUNDLES_ITEM
static final Item EXPORTING_BUNDLES_ITEM
The item containing the bundle identifier inPACKAGE_TYPE. The key isEXPORTING_BUNDLESand the type isJmxConstants.LONG_ARRAY_TYPE. 
- 
IMPORTING_BUNDLES
static final java.lang.String IMPORTING_BUNDLES
The key IMPORTING_BUNDLES, used inIMPORTING_BUNDLES_ITEM.- See Also:
 - Constant Field Values
 
 
- 
IMPORTING_BUNDLES_ITEM
static final Item IMPORTING_BUNDLES_ITEM
The item containing the bundle identifier inPACKAGE_TYPE. The key isIMPORTING_BUNDLESand the type isJmxConstants.LONG_ARRAY_TYPE. 
- 
NAME
static final java.lang.String NAME
The key NAME, used inNAME_ITEM.- See Also:
 - Constant Field Values
 
 
- 
NAME_ITEM
static final Item NAME_ITEM
The item containing the name of the package inPACKAGE_TYPE. The key isNAMEand the type isSimpleType.LONG. 
- 
REMOVAL_PENDING
static final java.lang.String REMOVAL_PENDING
The name of the item containing the pending removal status of the package in the CompositeData. Used- See Also:
 - Constant Field Values
 
 
- 
REMOVAL_PENDING_ITEM
static final Item REMOVAL_PENDING_ITEM
The item representing the removal pending status of a package. The key isREMOVAL_PENDINGand the type isSimpleType.BOOLEAN. 
- 
VERSION
static final java.lang.String VERSION
The name of the item containing the package version in the CompositeData. Used inVERSION_ITEM.- See Also:
 - Constant Field Values
 
 
- 
VERSION_ITEM
static final Item VERSION_ITEM
The item containing the version of the package inPACKAGE_TYPE. The key isVERSIONand the type isSimpleType.STRING. 
- 
PACKAGE_TYPE
static final javax.management.openmbean.CompositeType PACKAGE_TYPE
The Composite Type for a CompositeData representing a package. This type consists of: The key is defined asNAMEandEXPORTING_BUNDLES 
- 
PACKAGES_TYPE
static final javax.management.openmbean.TabularType PACKAGES_TYPE
 
 - 
 
- 
Method Detail
- 
getExportingBundles
long[] getExportingBundles(java.lang.String packageName, java.lang.String version) throws java.io.IOExceptionAnswer the identifier of the bundle exporting the package- Parameters:
 packageName- - the package nameversion- - the version of the package- Returns:
 - the bundle identifiers exporting such a package
 - Throws:
 java.io.IOException- if the operation failsjava.lang.IllegalArgumentException- if the package indicated does not exist
 
- 
getImportingBundles
long[] getImportingBundles(java.lang.String packageName, java.lang.String version, long exportingBundle) throws java.io.IOExceptionAnswer the list of identifiers of the bundles importing the package- Parameters:
 packageName- The package nameversion- The version of the packageexportingBundle- The exporting bundle for the given package- Returns:
 - the list of bundle identifiers
 - Throws:
 java.io.IOException- if the operation failsjava.lang.IllegalArgumentException- if the package indicated does not exist
 
- 
listPackages
javax.management.openmbean.TabularData listPackages() throws java.io.IOExceptionAnswer the package state of the system in tabular form The Tabular Data is typed byPACKAGES_TYPE, which hasPACKAGE_TYPEas its Composite Type.- Returns:
 - the tabular representation of the package state
 - Throws:
 java.io.IOException- When fails
 
- 
isRemovalPending
boolean isRemovalPending(java.lang.String packageName, java.lang.String version, long exportingBundle) throws java.io.IOExceptionAnswer if this package is exported by a bundle which has been updated or uninstalled- Parameters:
 packageName- The package nameversion- The version of the packageexportingBundle- The bundle exporting the package- Returns:
 - true if this package is being exported by a bundle that has been updated or uninstalled.
 - Throws:
 java.io.IOException- if the operation failsjava.lang.IllegalArgumentException- if the package indicated does not exist
 
 - 
 
 -