public class BundleWiringState extends 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 |
|---|---|
CompositeData[] |
getCurrentRevisionDeclaredCapabilities(long bundleId,
String namespace)
Returns the capabilities for the current bundle revision.
|
CompositeData[] |
getCurrentRevisionDeclaredRequirements(long bundleId,
String namespace)
Returns the requirements for the current bundle revision.
|
CompositeData |
getCurrentWiring(long bundleId,
String namespace)
Returns the bundle wiring for the current bundle revision.
|
TabularData |
getCurrentWiringClosure(long rootBundleId,
String namespace)
Returns the bundle wiring closure for the current revision of the
specified bundle.
|
TabularData |
getRevisionsDeclaredCapabilities(long bundleId,
String namespace)
Returns the capabilities for all revisions of the bundle.
|
TabularData |
getRevisionsDeclaredRequirements(long bundleId,
String namespace)
Returns the requirements for all revisions of the bundle.
|
TabularData |
getRevisionsWiring(long bundleId,
String namespace)
Returns the bundle wirings for all revisions of the bundle.
|
TabularData |
getRevisionsWiringClosure(long rootBundleId,
String namespace)
Returns the bundle wiring closure for all revisions of the specified
bundle.
|
public BundleWiringState(org.osgi.framework.BundleContext bundleContext,
Logger logger)
public CompositeData[] getCurrentRevisionDeclaredRequirements(long bundleId, String namespace) throws IOException
BundleWiringStateMBeangetCurrentRevisionDeclaredRequirements in interface BundleWiringStateMBeanbundleId - The bundle ID.namespace - The namespace of the requirements to be returned by this
operation.bundleId and namespace.IOException - if the connection could not be made because of a
communication problem.for the details of the CompositeData.public CompositeData[] getCurrentRevisionDeclaredCapabilities(long bundleId, String namespace) throws IOException
BundleWiringStateMBeangetCurrentRevisionDeclaredCapabilities in interface BundleWiringStateMBeanbundleId - The bundle ID.namespace - The namespace of the capabilities to be returned by this
operation.bundleId and namespace.IOException - if the connection could not be made because of a
communication problem.for the details of the CompositeData.public CompositeData getCurrentWiring(long bundleId, String namespace) throws IOException
BundleWiringStateMBeangetCurrentWiring in interface BundleWiringStateMBeanbundleId - The bundle ID.namespace - The namespace of the requirements and capabilities for
which to return information.bundleId and namespace.IOException - if the connection could not be made because of a
communication problem.for the details of the CompositeData.public TabularData getCurrentWiringClosure(long rootBundleId, String namespace) throws IOException
BundleWiringStateMBeangetCurrentWiringClosure in interface BundleWiringStateMBeanrootBundleId - the root bundle of the closure.namespace - The namespace of the requirements and capabilities for
which to return information.IOException - if the connection could not be made because of a
communication problem.for the details of the TabularData.public TabularData getRevisionsDeclaredRequirements(long bundleId, String namespace) throws IOException
BundleWiringStateMBeangetRevisionsDeclaredRequirements in interface BundleWiringStateMBeanbundleId - The bundle ID.namespace - The namespace of the requirements to be returned by this
operation.bundleId.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 TabularData getRevisionsDeclaredCapabilities(long bundleId, String namespace) throws IOException
BundleWiringStateMBeangetRevisionsDeclaredCapabilities in interface BundleWiringStateMBeanbundleId - The bundle ID.namespace - The namespace of the capabilities to be returned by this
operation.bundleIdIOException - 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 TabularData getRevisionsWiring(long bundleId, String namespace) throws IOException
BundleWiringStateMBeangetRevisionsWiring in interface BundleWiringStateMBeanbundleId - The bundle ID.namespace - The namespace of the requirements and capabilities for
which to return information.bundleId and
namespace.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 TabularData getRevisionsWiringClosure(long rootBundleId, String namespace) throws IOException
BundleWiringStateMBeangetRevisionsWiringClosure in interface BundleWiringStateMBeanrootBundleId - The root bundle ID.namespace - The namespace of the requirements and capabilities for
which to return information.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-2015 The Apache Software Foundation. All Rights Reserved.