fr.dyade.aaa.util.management
Class MXWrapper

java.lang.Object
  extended by fr.dyade.aaa.util.management.MXWrapper

public final class MXWrapper
extends java.lang.Object


Field Summary
static MXServer mxserver
           
static java.lang.String ServerImpl
          Name of the property that allow to configure the JMX server proxy: it gives the name of the implementation class of the MXServer interface.
 
Constructor Summary
MXWrapper()
           
 
Method Summary
static void addNotificationListener(javax.management.ObjectName name, javax.management.NotificationListener listener, javax.management.NotificationFilter filter, java.lang.Object handback)
          Adds a listener to a registered MBean.
static java.lang.Object getAttribute(javax.management.ObjectName objectName, java.lang.String attribute)
           
static javax.management.MBeanAttributeInfo[] getAttributes(javax.management.ObjectName objectName)
           
static java.lang.Object getMBeanInstance(javax.management.ObjectName objName)
           
static MXServer getMXServer()
           
static void init()
           
static java.lang.String objectName(java.lang.String domain, java.lang.String name)
           
static java.util.Set queryNames(javax.management.ObjectName objectName)
           
static java.lang.String registerMBean(java.lang.Object bean, java.lang.String fullName)
           
static java.lang.String registerMBean(java.lang.Object bean, java.lang.String domain, java.lang.String name)
           
static void removeNotificationListener(javax.management.ObjectName name, javax.management.NotificationListener listener)
          Removes a listener from a registered MBean.
static void removeNotificationListener(javax.management.ObjectName name, javax.management.NotificationListener listener, javax.management.NotificationFilter filter, java.lang.Object handback)
          Removes a listener from a registered MBean.
static void setAttribute(javax.management.ObjectName name, javax.management.Attribute attribute)
           
 javax.management.AttributeList setAttributes(javax.management.ObjectName name, javax.management.AttributeList attributes)
           
static void setMXServer(MXServer server)
           
static void unregisterMBean(java.lang.String fullName)
           
static void unregisterMBean(java.lang.String domain, java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ServerImpl

public static final java.lang.String ServerImpl
Name of the property that allow to configure the JMX server proxy: it gives the name of the implementation class of the MXServer interface. If the property is not defined JMX is not used.

See Also:
Constant Field Values

mxserver

public static MXServer mxserver
Constructor Detail

MXWrapper

public MXWrapper()
Method Detail

init

public static void init()
                 throws java.lang.Exception
Throws:
java.lang.Exception

objectName

public static java.lang.String objectName(java.lang.String domain,
                                          java.lang.String name)

registerMBean

public static java.lang.String registerMBean(java.lang.Object bean,
                                             java.lang.String domain,
                                             java.lang.String name)
                                      throws java.lang.Exception
Throws:
java.lang.Exception

registerMBean

public static java.lang.String registerMBean(java.lang.Object bean,
                                             java.lang.String fullName)
                                      throws java.lang.Exception
Throws:
java.lang.Exception

getMBeanInstance

public static java.lang.Object getMBeanInstance(javax.management.ObjectName objName)

unregisterMBean

public static void unregisterMBean(java.lang.String domain,
                                   java.lang.String name)
                            throws java.lang.Exception
Throws:
java.lang.Exception

unregisterMBean

public static void unregisterMBean(java.lang.String fullName)
                            throws java.lang.Exception
Throws:
java.lang.Exception

setMXServer

public static void setMXServer(MXServer server)

getMXServer

public static MXServer getMXServer()

setAttribute

public static void setAttribute(javax.management.ObjectName name,
                                javax.management.Attribute attribute)
                         throws java.lang.Exception
Throws:
java.lang.Exception

addNotificationListener

public static void addNotificationListener(javax.management.ObjectName name,
                                           javax.management.NotificationListener listener,
                                           javax.management.NotificationFilter filter,
                                           java.lang.Object handback)
                                    throws java.lang.Exception
Adds a listener to a registered MBean.

Throws:
java.lang.Exception

removeNotificationListener

public static void removeNotificationListener(javax.management.ObjectName name,
                                              javax.management.NotificationListener listener)
                                       throws java.lang.Exception
Removes a listener from a registered MBean.

Throws:
java.lang.Exception

removeNotificationListener

public static void removeNotificationListener(javax.management.ObjectName name,
                                              javax.management.NotificationListener listener,
                                              javax.management.NotificationFilter filter,
                                              java.lang.Object handback)
                                       throws java.lang.Exception
Removes a listener from a registered MBean.

Throws:
java.lang.Exception

getAttribute

public static java.lang.Object getAttribute(javax.management.ObjectName objectName,
                                            java.lang.String attribute)
                                     throws java.lang.Exception
Throws:
java.lang.Exception

getAttributes

public static javax.management.MBeanAttributeInfo[] getAttributes(javax.management.ObjectName objectName)
                                                           throws java.lang.Exception
Throws:
java.lang.Exception

setAttributes

public javax.management.AttributeList setAttributes(javax.management.ObjectName name,
                                                    javax.management.AttributeList attributes)
                                             throws java.lang.Exception
Throws:
java.lang.Exception

queryNames

public static java.util.Set queryNames(javax.management.ObjectName objectName)


Copyright © 2011 ScalAgent D.T.. All Rights Reserved.