|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.petals.kernel.server.MBeanHelper
public class MBeanHelper
This class helps the Launcher to register MBean
| Field Summary | |
|---|---|
static java.lang.String |
ADMIN_MBEAN
|
static java.lang.String |
CURRENCY_TIME_LIMIT
|
static java.lang.String |
DEPLOYMENT_MBEAN
|
static java.lang.String |
DOMAIN
|
static java.lang.String |
ENDPOINT_MBEAN
|
static java.lang.String |
INSTALLATION_MBEAN
|
static java.lang.String |
LOGGER_MBEAN
|
static java.lang.String |
MONITORING_MBEAN
|
static java.lang.String |
PETALS_ADMIN
|
static java.lang.String |
PETALS_LOGGER
|
static java.lang.String |
ROUTER_MONITOR
|
| Constructor Summary | |
|---|---|
MBeanHelper()
|
|
| Method Summary | |
|---|---|
static javax.management.modelmbean.RequiredModelMBean |
createCustomMBean(java.lang.Object object,
java.lang.Class<?> mbeanClass)
Create a custom MBean which process the method isXXX, setXXX, or getXXX as getter only if an attribute is define in the class. |
static javax.management.MBeanServer |
findLocalJMXServer(org.objectweb.fractal.api.Component petalsComposite)
Find the local JMX server in the petals component |
static void |
registerComponent(org.objectweb.fractal.api.control.ContentController contentController,
java.lang.String fractalName,
javax.management.MBeanServer jmxServer,
java.lang.Class mbeanClass,
java.lang.String mbeanName)
Register a fractal component-service to the jmx server. |
static void |
registerMBeans(org.objectweb.fractal.api.Component petalsComposite)
|
static javax.management.ObjectName |
retrieveServiceMBean(java.lang.String serviceName,
javax.management.MBeanServer jmxServer)
Return the MBean name from the jmx server with the specified pattern |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static java.lang.String CURRENCY_TIME_LIMIT
public static final java.lang.String DOMAIN
public static final java.lang.String ADMIN_MBEAN
public static final java.lang.String DEPLOYMENT_MBEAN
public static final java.lang.String INSTALLATION_MBEAN
public static final java.lang.String LOGGER_MBEAN
public static final java.lang.String MONITORING_MBEAN
public static final java.lang.String ENDPOINT_MBEAN
public static final java.lang.String PETALS_ADMIN
public static final java.lang.String ROUTER_MONITOR
public static final java.lang.String PETALS_LOGGER
| Constructor Detail |
|---|
public MBeanHelper()
| Method Detail |
|---|
public static final javax.management.MBeanServer findLocalJMXServer(org.objectweb.fractal.api.Component petalsComposite)
throws org.objectweb.fractal.api.NoSuchInterfaceException,
org.objectweb.fractal.adl.ADLException
petalsComposite - the petals component
org.objectweb.fractal.api.NoSuchInterfaceException
org.objectweb.fractal.adl.ADLException
public static final void registerMBeans(org.objectweb.fractal.api.Component petalsComposite)
throws java.lang.Exception
java.lang.Exception
public static final javax.management.ObjectName retrieveServiceMBean(java.lang.String serviceName,
javax.management.MBeanServer jmxServer)
throws javax.management.MalformedObjectNameException
serviceName - The name of the service to retrieve, must be nulljmxServer - The JMX server instance, must be non null
javax.management.MalformedObjectNameException
public static final void registerComponent(org.objectweb.fractal.api.control.ContentController contentController,
java.lang.String fractalName,
javax.management.MBeanServer jmxServer,
java.lang.Class mbeanClass,
java.lang.String mbeanName)
throws java.lang.Exception
contentController - contentcontroller where the fractal comp can be foundfractalName - the name of the fractal compjmxServer - the jmx server to register tombeanClass - the interface of the mbeanmbeanName - the name of the mbean
java.lang.Exception
public static final javax.management.modelmbean.RequiredModelMBean createCustomMBean(java.lang.Object object,
java.lang.Class<?> mbeanClass)
throws javax.management.RuntimeOperationsException,
javax.management.MBeanException,
javax.management.InstanceNotFoundException,
javax.management.modelmbean.InvalidTargetObjectTypeException
object - mbeanClass -
javax.management.RuntimeOperationsException
javax.management.MBeanException
javax.management.InstanceNotFoundException
javax.management.modelmbean.InvalidTargetObjectTypeException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||