public class MBeanUtils
extends java.lang.Object
Constructor and Description |
---|
MBeanUtils() |
Modifier and Type | Method and Description |
---|---|
static javax.management.DynamicMBean |
createMBean(ContextEnvironment environment)
Create, register, and return an MBean for this
ContextEnvironment object. |
static javax.management.DynamicMBean |
createMBean(ContextResource resource)
Create, register, and return an MBean for this
ContextResource object. |
static javax.management.DynamicMBean |
createMBean(ContextResourceLink resourceLink)
Create, register, and return an MBean for this
ContextResourceLink object. |
static javax.management.ObjectName |
createObjectName(java.lang.String domain,
ContextEnvironment environment)
Create an
ObjectName for this
Service object. |
static javax.management.ObjectName |
createObjectName(java.lang.String domain,
ContextResource resource)
Create an
ObjectName for this
ContextResource object. |
static javax.management.ObjectName |
createObjectName(java.lang.String domain,
ContextResourceLink resourceLink)
Create an
ObjectName for this
ContextResourceLink object. |
static Registry |
createRegistry()
Create and configure (if necessary) and return the registry of
managed object descriptions.
|
static javax.management.MBeanServer |
createServer()
Create and configure (if necessary) and return the
MBeanServer with which we will be
registering our DynamicMBean implementations. |
static void |
destroyMBean(ContextEnvironment environment)
Deregister the MBean for this
ContextEnvironment object. |
static void |
destroyMBean(ContextResource resource)
Deregister the MBean for this
ContextResource object. |
static void |
destroyMBean(ContextResourceLink resourceLink)
Deregister the MBean for this
ContextResourceLink object. |
public static javax.management.DynamicMBean createMBean(ContextEnvironment environment) throws java.lang.Exception
ContextEnvironment
object.environment
- The ContextEnvironment to be managedjava.lang.Exception
- if an MBean cannot be created or registeredpublic static javax.management.DynamicMBean createMBean(ContextResource resource) throws java.lang.Exception
ContextResource
object.resource
- The ContextResource to be managedjava.lang.Exception
- if an MBean cannot be created or registeredpublic static javax.management.DynamicMBean createMBean(ContextResourceLink resourceLink) throws java.lang.Exception
ContextResourceLink
object.resourceLink
- The ContextResourceLink to be managedjava.lang.Exception
- if an MBean cannot be created or registeredpublic static javax.management.ObjectName createObjectName(java.lang.String domain, ContextEnvironment environment) throws javax.management.MalformedObjectNameException
ObjectName
for this
Service
object.domain
- Domain in which this name is to be createdenvironment
- The ContextEnvironment to be namedjavax.management.MalformedObjectNameException
- if a name cannot be createdpublic static javax.management.ObjectName createObjectName(java.lang.String domain, ContextResource resource) throws javax.management.MalformedObjectNameException
ObjectName
for this
ContextResource
object.domain
- Domain in which this name is to be createdresource
- The ContextResource to be namedjavax.management.MalformedObjectNameException
- if a name cannot be createdpublic static javax.management.ObjectName createObjectName(java.lang.String domain, ContextResourceLink resourceLink) throws javax.management.MalformedObjectNameException
ObjectName
for this
ContextResourceLink
object.domain
- Domain in which this name is to be createdresourceLink
- The ContextResourceLink to be namedjavax.management.MalformedObjectNameException
- if a name cannot be createdpublic static Registry createRegistry()
public static javax.management.MBeanServer createServer()
MBeanServer
with which we will be
registering our DynamicMBean
implementations.public static void destroyMBean(ContextEnvironment environment) throws java.lang.Exception
ContextEnvironment
object.environment
- The ContextEnvironment to be managedjava.lang.Exception
- if an MBean cannot be deregisteredpublic static void destroyMBean(ContextResource resource) throws java.lang.Exception
ContextResource
object.resource
- The ContextResource to be managedjava.lang.Exception
- if an MBean cannot be deregisteredpublic static void destroyMBean(ContextResourceLink resourceLink) throws java.lang.Exception
ContextResourceLink
object.resourceLink
- The ContextResourceLink to be managedjava.lang.Exception
- if an MBean cannot be deregisteredCopyright © 2000-2018 Apache Software Foundation. All Rights Reserved.