Interface PackageStateMBean


  • public interface PackageStateMBean
    This MBean provides information about the package state of the framework.
    • Method Detail

      • getExportingBundles

        long[] getExportingBundles​(java.lang.String packageName,
                                   java.lang.String version)
                            throws java.io.IOException
        Answer the identifier of the bundle exporting the package
        Parameters:
        packageName - - the package name
        version - - the version of the package
        Returns:
        the bundle identifiers exporting such a package
        Throws:
        java.io.IOException - if the operation fails
        java.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.IOException
        Answer the list of identifiers of the bundles importing the package
        Parameters:
        packageName - The package name
        version - The version of the package
        exportingBundle - The exporting bundle for the given package
        Returns:
        the list of bundle identifiers
        Throws:
        java.io.IOException - if the operation fails
        java.lang.IllegalArgumentException - if the package indicated does not exist
      • listPackages

        javax.management.openmbean.TabularData listPackages()
                                                     throws java.io.IOException
        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.
        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.IOException
        Answer if this package is exported by a bundle which has been updated or uninstalled
        Parameters:
        packageName - The package name
        version - The version of the package
        exportingBundle - 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 fails
        java.lang.IllegalArgumentException - if the package indicated does not exist