|
Apache Tomcat 7.0.28 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.catalina.mbeans.MBeanUtils
public class MBeanUtils
Public utility methods in support of the server side MBeans implementation.
Constructor Summary | |
---|---|
MBeanUtils()
|
Method Summary | |
---|---|
static DynamicMBean |
createMBean(ContextEnvironment environment)
Create, register, and return an MBean for this ContextEnvironment object. |
static DynamicMBean |
createMBean(ContextResource resource)
Create, register, and return an MBean for this ContextResource object. |
static DynamicMBean |
createMBean(ContextResourceLink resourceLink)
Create, register, and return an MBean for this ContextResourceLink object. |
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 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 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. |
static String |
getContainerKeyProperties(Container container)
Deprecated. To be removed since to creates a circular dependency. Will be replaced in Tomcat 8 by a new method on Container . |
static String |
getDomain(Container container)
Deprecated. To be removed since to creates a circular dependency. Will be replaced in Tomcat 8 by a new method on Container . |
static String |
getDomain(Service service)
Deprecated. To be removed since to creates a circular dependency. Will be replaced in Tomcat 8 by a new method on Service . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MBeanUtils()
Method Detail |
---|
public static DynamicMBean createMBean(ContextEnvironment environment) throws Exception
ContextEnvironment
object.
environment
- The ContextEnvironment to be managed
Exception
- if an MBean cannot be created or registeredpublic static DynamicMBean createMBean(ContextResource resource) throws Exception
ContextResource
object.
resource
- The ContextResource to be managed
Exception
- if an MBean cannot be created or registeredpublic static DynamicMBean createMBean(ContextResourceLink resourceLink) throws Exception
ContextResourceLink
object.
resourceLink
- The ContextResourceLink to be managed
Exception
- if an MBean cannot be created or registeredpublic static ObjectName createObjectName(String domain, ContextEnvironment environment) throws MalformedObjectNameException
ObjectName
for this
Service
object.
domain
- Domain in which this name is to be createdenvironment
- The ContextEnvironment to be named
MalformedObjectNameException
- if a name cannot be createdpublic static ObjectName createObjectName(String domain, ContextResource resource) throws MalformedObjectNameException
ObjectName
for this
ContextResource
object.
domain
- Domain in which this name is to be createdresource
- The ContextResource to be named
MalformedObjectNameException
- if a name cannot be createdpublic static ObjectName createObjectName(String domain, ContextResourceLink resourceLink) throws MalformedObjectNameException
ObjectName
for this
ContextResourceLink
object.
domain
- Domain in which this name is to be createdresourceLink
- The ContextResourceLink to be named
MalformedObjectNameException
- if a name cannot be createdpublic static Registry createRegistry()
public static MBeanServer createServer()
MBeanServer
with which we will be
registering our DynamicMBean
implementations.
public static void destroyMBean(ContextEnvironment environment) throws Exception
ContextEnvironment
object.
environment
- The ContextEnvironment to be managed
Exception
- if an MBean cannot be deregisteredpublic static void destroyMBean(ContextResource resource) throws Exception
ContextResource
object.
resource
- The ContextResource to be managed
Exception
- if an MBean cannot be deregisteredpublic static void destroyMBean(ContextResourceLink resourceLink) throws Exception
ContextResourceLink
object.
resourceLink
- The ContextResourceLink to be managed
Exception
- if an MBean cannot be deregistered@Deprecated public static String getDomain(Service service)
Service
.
service
- @Deprecated public static String getDomain(Container container)
Container
.
container
- @Deprecated public static String getContainerKeyProperties(Container container)
Container
.
ObjectName
to indicate that it is associated with that container.
container
- The container the object is associated with
|
Apache Tomcat 7.0.28 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |