|
Apache Tomcat 7.0.4 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.catalina.mbeans.MBeanUtils
public class MBeanUtils
Public utility methods in support of the server side MBeans implementation.
| Constructor Summary | |
|---|---|
MBeanUtils()
|
|
| 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 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 String |
getContainerKeyProperties(Container container)
Calculate the key properties string to be added to an object's ObjectName to indicate that it is associated with that container. |
static String |
getDomain(Container container)
Determine the name of the domain to register MBeans for from a given Container. |
static String |
getDomain(Service service)
Determine the name of the domain to register MBeans for from a given 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 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 created
public 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 created
public 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 String getDomain(Service service)
service - public static String getDomain(Container container)
container - public static String getContainerKeyProperties(Container container)
ObjectName to indicate that it is associated with that container.
container - The container the object is associated with
|
Apache Tomcat 7.0.4 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||