org.apache.felix.jmood.core
Interface FrameworkMBean

All Known Implementing Classes:
Framework

public interface FrameworkMBean

This mbean provides access to the basic framework information:

The idea underlying this is to provide both a reasonably fast way to access all the framework information, avoiding too much message-passing overhead, while at the same time provide console-friendly information.

Internally, implementations of Info objects include references to each other, so that with getBundleInfo() you get information, indirectly, of all the services and packages.

This mbean also dynamically registers mbeans representing those objects to ease-up direct usage by generic JMX mgmt consoles (such as Jconsole) that are not aware of the data types used. While CompositeDataTypes could be used (as in former JMood implementations), they are too cumbersome to use and place too much dependency on JMX.

See Also:
BundleInfo, PackageInfo, ServiceInfo

Method Summary
 BundleInfo[] getBundles()
           
 PackageInfo[] getPackageInfo()
           
 Hashtable getProperties()
          This hashtable contains the framework properties: FRAMEWORK_VERSION FRAMEWORK_VENDOR FRAMEWORK_LANGUAGE FRAMEWORK_OS_NAME FRAMEWORK_OS_VERSION FRAMEWORK_PROCESSOR
 String getProperty(String key)
           
 ServiceInfo[] getServiceInfo()
           
 

Method Detail

getBundles

BundleInfo[] getBundles()

getServiceInfo

ServiceInfo[] getServiceInfo()
                             throws InvalidSyntaxException
Throws:
InvalidSyntaxException

getPackageInfo

PackageInfo[] getPackageInfo()
                             throws ServiceNotAvailableException
Throws:
ServiceNotAvailableException

getProperties

Hashtable getProperties()
This hashtable contains the framework properties:

Plus, if available:

For any other properties, we suggest to use the getProperty(String key)

Returns:
See Also:
Constants

getProperty

String getProperty(String key)
Parameters:
key -
Returns:
return the property value or null if undefined. System properties are also searched for if the property is not found in the framework properties


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.