Interface BundleWiringStateMBean


  • public interface BundleWiringStateMBean
    This MBean represents the bundle wiring state.

    It can be used to retrieve the declared capabilities, declared requirements, and wiring for the current and past revisions of bundles.

    • Method Detail

      • getCurrentRevisionDeclaredRequirements

        javax.management.openmbean.CompositeData[] getCurrentRevisionDeclaredRequirements​(long bundleId,
                                                                                          java.lang.String namespace)
                                                                                   throws java.io.IOException,
                                                                                          javax.management.JMException
        Returns the requirements for the current bundle revision.
        Parameters:
        bundleId - The bundle ID.
        namespace - The namespace of the requirements to be returned by this operation.
        Returns:
        the declared requirements for the current revision of bundleId and namespace.
        Throws:
        javax.management.JMException - if there is a JMX problem.
        java.io.IOException - if the connection could not be made because of a communication problem.
        See Also:
        for the details of the CompositeData.
      • getCurrentRevisionDeclaredCapabilities

        javax.management.openmbean.CompositeData[] getCurrentRevisionDeclaredCapabilities​(long bundleId,
                                                                                          java.lang.String namespace)
                                                                                   throws java.io.IOException,
                                                                                          javax.management.JMException
        Returns the capabilities for the current bundle revision.
        Parameters:
        bundleId - The bundle ID.
        namespace - The namespace of the capabilities to be returned by this operation.
        Returns:
        the declared capabilities for the current revision of bundleId and namespace.
        Throws:
        javax.management.JMException - if there is a JMX problem.
        java.io.IOException - if the connection could not be made because of a communication problem.
        See Also:
        for the details of the CompositeData.
      • getCurrentWiring

        javax.management.openmbean.CompositeData getCurrentWiring​(long bundleId,
                                                                  java.lang.String namespace)
                                                           throws java.io.IOException,
                                                                  javax.management.JMException
        Returns the bundle wiring for the current bundle revision.
        Parameters:
        bundleId - The bundle ID.
        namespace - The namespace of the requirements and capabilities for which to return information.
        Returns:
        the wiring information for the current revision of bundleId and namespace.
        Throws:
        javax.management.JMException - if there is a JMX problem.
        java.io.IOException - if the connection could not be made because of a communication problem.
        See Also:
        for the details of the CompositeData.
      • getCurrentWiringClosure

        javax.management.openmbean.TabularData getCurrentWiringClosure​(long rootBundleId,
                                                                       java.lang.String namespace)
                                                                throws java.io.IOException,
                                                                       javax.management.JMException
        Returns the bundle wiring closure for the current revision of the specified bundle. The wiring closure contains all the wirings from the root bundle revision to all bundle revisions it is wired to and all their transitive wirings.
        Parameters:
        rootBundleId - the root bundle of the closure.
        namespace - The namespace of the requirements and capabilities for which to return information.
        Returns:
        a tabular representation of all the wirings in the closure. The bundle revision IDs only have meaning in the context of the current result. The revision of the rootBundle is set to 0. Therefore the root bundle of the closure can be looked up in the table by its bundle ID and revision 0.
        Throws:
        javax.management.JMException - if there is a JMX problem.
        java.io.IOException - if the connection could not be made because of a communication problem.
        See Also:
        for the details of the TabularData.
      • getRevisionsDeclaredRequirements

        javax.management.openmbean.TabularData getRevisionsDeclaredRequirements​(long bundleId,
                                                                                java.lang.String namespace)
                                                                         throws java.io.IOException,
                                                                                javax.management.JMException
        Returns the requirements for all revisions of the bundle.
        Parameters:
        bundleId - The bundle ID.
        namespace - The namespace of the requirements to be returned by this operation.
        Returns:
        the declared requirements for all revisions of bundleId.
        Throws:
        javax.management.JMException - if there is a JMX problem.
        java.io.IOException - if the connection could not be made because of a communication problem.
        See Also:
        for the details of TabularData. The requirements are in no particular order, and may change in subsequent calls to this operation.
      • getRevisionsDeclaredCapabilities

        javax.management.openmbean.TabularData getRevisionsDeclaredCapabilities​(long bundleId,
                                                                                java.lang.String namespace)
                                                                         throws java.io.IOException,
                                                                                javax.management.JMException
        Returns the capabilities for all revisions of the bundle.
        Parameters:
        bundleId - The bundle ID.
        namespace - The namespace of the capabilities to be returned by this operation.
        Returns:
        the declared capabilities for all revisions of bundleId
        Throws:
        javax.management.JMException - if there is a JMX problem.
        java.io.IOException - if the connection could not be made because of a communication problem.
        See Also:
        for the details of TabularData. The capabilities are in no particular order, and may change in subsequent calls to this operation.
      • getRevisionsWiring

        javax.management.openmbean.TabularData getRevisionsWiring​(long bundleId,
                                                                  java.lang.String namespace)
                                                           throws java.io.IOException,
                                                                  javax.management.JMException
        Returns the bundle wirings for all revisions of the bundle.
        Parameters:
        bundleId - The bundle ID.
        namespace - The namespace of the requirements and capabilities for which to return information.
        Returns:
        the wiring information for all revisions of bundleId and namespace.
        Throws:
        javax.management.JMException - if there is a JMX problem.
        java.io.IOException - if the connection could not be made because of a communication problem.
        See Also:
        for the details of TabularData. The bundle wirings are in no particular order, and may change in subsequent calls to this operations.
      • getRevisionsWiringClosure

        javax.management.openmbean.TabularData getRevisionsWiringClosure​(long rootBundleId,
                                                                         java.lang.String namespace)
                                                                  throws java.io.IOException,
                                                                         javax.management.JMException
        Returns the bundle wiring closure for all revisions of the specified bundle. The wiring closure contains all the wirings from the root bundle revision to all bundle revisions it is wired to and all their transitive wirings.
        Parameters:
        rootBundleId - The root bundle ID.
        namespace - The namespace of the requirements and capabilities for which to return information.
        Returns:
        a tabular representation of all the wirings in the closure. The bundle revision IDs only have meaning in the context of the current result.
        Throws:
        javax.management.JMException - if there is a JMX problem.
        java.io.IOException - if the connection could not be made because of a communication problem.
        See Also:
        for the details of TabularData. The bundle wirings are in no particular order, and may change in subsequent calls to this operation. Furthermore, the bundle revision IDs are local and cannot be reused across invocations.