org.apache.catalina.mbeans

Class MBeanUtils


public class MBeanUtils
extends java.lang.Object

Public utility methods in support of the server side MBeans implementation.

Version:
$Revision: 1.24 $ $Date: 2004/02/27 14:58:45 $

Authors:
Craig R. McClanahan
Amy Roh

Method Summary

static ObjectName
createObjectName(String domain, ContextEnvironment environment)
Create an ObjectName for this Service object.
static ObjectName
createObjectName(String domain, ContextResource resource)
Create an ObjectName for this ContextResource object.
static ObjectName
createObjectName(String domain, ContextResourceLink resourceLink)
Create an ObjectName for this ContextResourceLink object.
static void
createRMIAdaptor(String adaptorType, String host, int port)
Create a RMI adapter [MX4J specific].
static Registry
createRegistry()
Create and configure (if necessary) and return the registry of managed object descriptions.
static MBeanServer
createServer()
Create and configure (if necessary) and return the MBeanServer with which we will be registering our ModelMBean implementations.
static void
loadMBeanDescriptors(String resource)
Load an MBean descriptor resource.

Method Details

createObjectName

public static ObjectName createObjectName(String domain,
                                          ContextEnvironment environment)
            throws MalformedObjectNameException
Create an ObjectName for this Service object.

Parameters:
domain - Domain in which this name is to be created


createObjectName

public static ObjectName createObjectName(String domain,
                                          ContextResource resource)
            throws MalformedObjectNameException
Create an ObjectName for this ContextResource object.

Parameters:
domain - Domain in which this name is to be created
resource - The ContextResource to be named


createObjectName

public static ObjectName createObjectName(String domain,
                                          ContextResourceLink resourceLink)
            throws MalformedObjectNameException
Create an ObjectName for this ContextResourceLink object.

Parameters:
domain - Domain in which this name is to be created
resourceLink - The ContextResourceLink to be named


createRMIAdaptor

public static void createRMIAdaptor(String adaptorType,
                                    String host,
                                    int port)
            throws Exception
Create a RMI adapter [MX4J specific].


createRegistry

public static Registry createRegistry()
Create and configure (if necessary) and return the registry of managed object descriptions.


createServer

public static MBeanServer createServer()
Create and configure (if necessary) and return the MBeanServer with which we will be registering our ModelMBean implementations.


loadMBeanDescriptors

public static void loadMBeanDescriptors(String resource)
Load an MBean descriptor resource.


Copyright B) 2000-2003 Apache Software Foundation. All Rights Reserved.