public class BundleWiringState extends java.lang.Object implements BundleWiringStateMBean
ATTRIBUTES, ATTRIBUTES_ITEM, ATTRIBUTES_TYPE, BUNDLE_CAPABILITY, BUNDLE_CAPABILITY_ITEM, BUNDLE_CAPABILITY_TYPE, BUNDLE_ID, BUNDLE_ID_ITEM, BUNDLE_REQUIREMENT, BUNDLE_REQUIREMENT_ITEM, BUNDLE_REQUIREMENT_TYPE, BUNDLE_REVISION_ID, BUNDLE_REVISION_ID_ITEM, BUNDLE_WIRE_TYPE, BUNDLE_WIRES_TYPE_ARRAY, BUNDLE_WIRING_TYPE, BUNDLES_WIRING_TYPE, CAPABILITIES, CAPABILITIES_ITEM, CAPABILITY_TYPE_ARRAY, DIRECTIVE_TYPE, DIRECTIVES, DIRECTIVES_ITEM, DIRECTIVES_TYPE, KEY, KEY_ITEM, NAMESPACE, NAMESPACE_ITEM, OBJECTNAME, PROVIDED_WIRES, PROVIDED_WIRES_ITEM, PROVIDER_BUNDLE_ID, PROVIDER_BUNDLE_ID_ITEM, PROVIDER_BUNDLE_REVISION_ID, PROVIDER_BUNDLE_REVISION_ID_ITEM, REQUIRED_WIRES, REQUIRED_WIRES_ITEM, REQUIREMENT_TYPE_ARRAY, REQUIREMENTS, REQUIREMENTS_ITEM, REQUIRER_BUNDLE_ID, REQUIRER_BUNDLE_ID_ITEM, REQUIRER_BUNDLE_REVISION_ID, REQUIRER_BUNDLE_REVISION_ID_ITEM, REVISION_CAPABILITIES_TYPE, REVISION_REQUIREMENTS_TYPE, REVISIONS_CAPABILITIES_TYPE, REVISIONS_REQUIREMENTS_TYPE, VALUE, VALUE_ITEM| Constructor and Description |
|---|
BundleWiringState(org.osgi.framework.BundleContext bundleContext,
Logger logger) |
| Modifier and Type | Method and Description |
|---|---|
javax.management.openmbean.CompositeData[] |
getCurrentRevisionDeclaredCapabilities(long bundleId,
java.lang.String namespace)
Returns the capabilities for the current bundle revision.
|
javax.management.openmbean.CompositeData[] |
getCurrentRevisionDeclaredRequirements(long bundleId,
java.lang.String namespace)
Returns the requirements for the current bundle revision.
|
javax.management.openmbean.CompositeData |
getCurrentWiring(long bundleId,
java.lang.String namespace)
Returns the bundle wiring for the current bundle revision.
|
javax.management.openmbean.TabularData |
getCurrentWiringClosure(long rootBundleId,
java.lang.String namespace)
Returns the bundle wiring closure for the current revision of the
specified bundle.
|
javax.management.openmbean.TabularData |
getRevisionsDeclaredCapabilities(long bundleId,
java.lang.String namespace)
Returns the capabilities for all revisions of the bundle.
|
javax.management.openmbean.TabularData |
getRevisionsDeclaredRequirements(long bundleId,
java.lang.String namespace)
Returns the requirements for all revisions of the bundle.
|
javax.management.openmbean.TabularData |
getRevisionsWiring(long bundleId,
java.lang.String namespace)
Returns the bundle wirings for all revisions of the bundle.
|
javax.management.openmbean.TabularData |
getRevisionsWiringClosure(long rootBundleId,
java.lang.String namespace)
Returns the bundle wiring closure for all revisions of the specified
bundle.
|
public BundleWiringState(org.osgi.framework.BundleContext bundleContext,
Logger logger)
public javax.management.openmbean.CompositeData[] getCurrentRevisionDeclaredRequirements(long bundleId,
java.lang.String namespace)
throws java.io.IOException
BundleWiringStateMBeangetCurrentRevisionDeclaredRequirements in interface BundleWiringStateMBeanbundleId - The bundle ID.namespace - The namespace of the requirements to be returned by this
operation.bundleId and namespace.java.io.IOException - if the connection could not be made because of a
communication problem.for the details of the CompositeData.public javax.management.openmbean.CompositeData[] getCurrentRevisionDeclaredCapabilities(long bundleId,
java.lang.String namespace)
throws java.io.IOException
BundleWiringStateMBeangetCurrentRevisionDeclaredCapabilities in interface BundleWiringStateMBeanbundleId - The bundle ID.namespace - The namespace of the capabilities to be returned by this
operation.bundleId and namespace.java.io.IOException - if the connection could not be made because of a
communication problem.for the details of the CompositeData.public javax.management.openmbean.CompositeData getCurrentWiring(long bundleId,
java.lang.String namespace)
throws java.io.IOException
BundleWiringStateMBeangetCurrentWiring in interface BundleWiringStateMBeanbundleId - The bundle ID.namespace - The namespace of the requirements and capabilities for
which to return information.bundleId and namespace.java.io.IOException - if the connection could not be made because of a
communication problem.for the details of the CompositeData.public javax.management.openmbean.TabularData getCurrentWiringClosure(long rootBundleId,
java.lang.String namespace)
throws java.io.IOException
BundleWiringStateMBeangetCurrentWiringClosure in interface BundleWiringStateMBeanrootBundleId - the root bundle of the closure.namespace - The namespace of the requirements and capabilities for
which to return information.java.io.IOException - if the connection could not be made because of a
communication problem.for the details of the TabularData.public javax.management.openmbean.TabularData getRevisionsDeclaredRequirements(long bundleId,
java.lang.String namespace)
throws java.io.IOException
BundleWiringStateMBeangetRevisionsDeclaredRequirements in interface BundleWiringStateMBeanbundleId - The bundle ID.namespace - The namespace of the requirements to be returned by this
operation.bundleId.java.io.IOException - if the connection could not be made because of a
communication problem.for the details of TabularData.
The requirements are in no particular order, and may change in
subsequent calls to this operation.public javax.management.openmbean.TabularData getRevisionsDeclaredCapabilities(long bundleId,
java.lang.String namespace)
throws java.io.IOException
BundleWiringStateMBeangetRevisionsDeclaredCapabilities in interface BundleWiringStateMBeanbundleId - The bundle ID.namespace - The namespace of the capabilities to be returned by this
operation.bundleIdjava.io.IOException - if the connection could not be made because of a
communication problem.for the details of TabularData.
The capabilities are in no particular order, and may change in
subsequent calls to this operation.public javax.management.openmbean.TabularData getRevisionsWiring(long bundleId,
java.lang.String namespace)
throws java.io.IOException
BundleWiringStateMBeangetRevisionsWiring in interface BundleWiringStateMBeanbundleId - The bundle ID.namespace - The namespace of the requirements and capabilities for
which to return information.bundleId and
namespace.java.io.IOException - if the connection could not be made because of a
communication problem.for the details of TabularData.
The bundle wirings are in no particular order, and may change in
subsequent calls to this operations.public javax.management.openmbean.TabularData getRevisionsWiringClosure(long rootBundleId,
java.lang.String namespace)
throws java.io.IOException
BundleWiringStateMBeangetRevisionsWiringClosure in interface BundleWiringStateMBeanrootBundleId - The root bundle ID.namespace - The namespace of the requirements and capabilities for
which to return information.java.io.IOException - if the connection could not be made because of a
communication problem.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.Copyright © 2009-2019 The Apache Software Foundation. All Rights Reserved.