org.apache.catalina.mbeans
Class MBeanUtils
java.lang.Object
org.apache.catalina.mbeans.MBeanUtils
public class MBeanUtils
extends java.lang.Object
Public utility methods in support of the server side MBeans implementation.
Version:
- Craig R. McClanahan
- Amy Roh
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.
|
createObjectName
public static ObjectName createObjectName(String domain,
ContextEnvironment environment)
throws MalformedObjectNameException
Create an ObjectName
for this
Service
object.
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.
domain
- Domain in which this name is to be createdresource
- The ContextResource to be named
createObjectName
public static ObjectName createObjectName(String domain,
ContextResourceLink resourceLink)
throws MalformedObjectNameException
Create an ObjectName
for this
ContextResourceLink
object.
domain
- Domain in which this name is to be createdresourceLink
- 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.