com.flexive.shared.mbeans
Class MBeanHelper

java.lang.Object
  extended by com.flexive.shared.mbeans.MBeanHelper

public final class MBeanHelper
extends java.lang.Object

MBean Helper class

Author:
Markus Plesser (markus.plesser@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at)

Field Summary
static java.lang.String DEPLOYMENT_ID
           
 
Constructor Summary
MBeanHelper()
           
 
Method Summary
static Pair<javax.management.MBeanServer,javax.management.MBeanInfo> getMBeanInfo(javax.management.ObjectName name)
          Searches all available MBean servers for the given object name.
static javax.management.MBeanServer locateServer()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEPLOYMENT_ID

public static final java.lang.String DEPLOYMENT_ID
Constructor Detail

MBeanHelper

public MBeanHelper()
Method Detail

locateServer

public static javax.management.MBeanServer locateServer()

getMBeanInfo

public static Pair<javax.management.MBeanServer,javax.management.MBeanInfo> getMBeanInfo(javax.management.ObjectName name)
                                                                                  throws javax.management.ReflectionException,
                                                                                         javax.management.IntrospectionException,
                                                                                         javax.management.InstanceNotFoundException
Searches all available MBean servers for the given object name.

Parameters:
name - the object name
Returns:
the MBeanInfo of the first server that contains an entry of this name
Throws:
javax.management.InstanceNotFoundException - if the given object was not found on any server
javax.management.IntrospectionException - thrown by server factory
javax.management.ReflectionException - thrown by server factory