| java.lang.Object org.apache.catalina.mbeans.MBeanUtils
MBeanUtils | public class MBeanUtils (Code) | | Public utility methods in support of the server side MBeans implementation.
author: Craig R. McClanahan author: Amy Roh version: $Revision: 1.24 $ $Date: 2004/02/27 14:58:45 $ |
Method Summary | |
static ModelMBean | createMBean(Connector connector) Create, register, and return an MBean for this
Connector object. | static ModelMBean | createMBean(Context context) Create, register, and return an MBean for this
Context object. | static ModelMBean | createMBean(ContextEnvironment environment) Create, register, and return an MBean for this
ContextEnvironment object. | static ModelMBean | createMBean(ContextResource resource) Create, register, and return an MBean for this
ContextResource object. | static ModelMBean | createMBean(ContextResourceLink resourceLink) Create, register, and return an MBean for this
ContextResourceLink object. | static ModelMBean | createMBean(DefaultContext context) Create, register, and return an MBean for this
DefaultContext object. | static ModelMBean | createMBean(Engine engine) Create, register, and return an MBean for this
Engine object. | static ModelMBean | createMBean(Group group) Create, register, and return an MBean for this
Group object. | static ModelMBean | createMBean(Host host) Create, register, and return an MBean for this
Host object. | static ModelMBean | createMBean(Loader loader) Create, register, and return an MBean for this
Loader object. | static ModelMBean | createMBean(Logger logger) Create, register, and return an MBean for this
Logger object. | static ModelMBean | createMBean(Manager manager) Create, register, and return an MBean for this
Manager object. | static ModelMBean | createMBean(MBeanFactory factory) Create, register, and return an MBean for this
MBeanFactory object. | static ModelMBean | createMBean(NamingResources resource) Create, register, and return an MBean for this
NamingResources object. | static ModelMBean | createMBean(Realm realm) Create, register, and return an MBean for this
Realm object. | static ModelMBean | createMBean(Role role) Create, register, and return an MBean for this
Role object. | static ModelMBean | createMBean(Server server) Create, register, and return an MBean for this
Server object. | static ModelMBean | createMBean(Service service) Create, register, and return an MBean for this
Service object. | static ModelMBean | createMBean(User user) Create, register, and return an MBean for this
User object. | static ModelMBean | createMBean(UserDatabase userDatabase) Create, register, and return an MBean for this
UserDatabase object. | static ModelMBean | createMBean(Valve valve) Create, register, and return an MBean for this
Valve object. | static String | createManagedName(Object component) Create and return the name of the ManagedBean that
corresponds to this Catalina component. | static ObjectName | createObjectName(String domain, Connector connector) Create an ObjectName for this
Connector object. | static ObjectName | createObjectName(String domain, Context context) Create an ObjectName for this
Context object. | public static ObjectName | createObjectName(String domain, ContextEnvironment environment) Create an ObjectName for this
Service object. | public static ObjectName | createObjectName(String domain, ContextResource resource) Create an ObjectName for this
ContextResource object. | public static ObjectName | createObjectName(String domain, ContextResourceLink resourceLink) Create an ObjectName for this
ContextResourceLink object. | static ObjectName | createObjectName(String domain, DefaultContext context) Create an ObjectName for this
DefaultContext object. | static ObjectName | createObjectName(String domain, Engine engine) Create an ObjectName for this
Engine object. | static ObjectName | createObjectName(String domain, Group group) Create an ObjectName for this
Group object. | static ObjectName | createObjectName(String domain, Host host) Create an ObjectName for this
Host object. | static ObjectName | createObjectName(String domain, Loader loader) Create an ObjectName for this
Loader object. | static ObjectName | createObjectName(String domain, Logger logger) Create an ObjectName for this
Logger object. | static ObjectName | createObjectName(String domain, Manager manager) Create an ObjectName for this
Manager object. | static ObjectName | createObjectName(String domain, NamingResources resources) Create an ObjectName for this
Server object. | static ObjectName | createObjectName(String domain, MBeanFactory factory) Create an ObjectName for this
MBeanFactory object. | static ObjectName | createObjectName(String domain, Realm realm) Create an ObjectName for this
Realm object. | static ObjectName | createObjectName(String domain, Role role) Create an ObjectName for this
Role object. | static ObjectName | createObjectName(String domain, Server server) Create an ObjectName for this
Server object. | static ObjectName | createObjectName(String domain, Service service) Create an ObjectName for this
Service object. | static ObjectName | createObjectName(String domain, User user) Create an ObjectName for this
User object. | static ObjectName | createObjectName(String domain, UserDatabase userDatabase) Create an ObjectName for this
UserDatabase object. | static ObjectName | createObjectName(String domain, Valve valve) Create an ObjectName for this
Valve object. | public static void | createRMIAdaptor(String adaptorType, String host, int port) Create a RMI adapter [MX4J specific]. | public static synchronized Registry | createRegistry() Create and configure (if necessary) and return the registry of
managed object descriptions. | public static synchronized MBeanServer | createServer() Create and configure (if necessary) and return the
MBeanServer with which we will be
registering our ModelMBean implementations. | static void | destroyMBean(Connector connector, Service service) Deregister the MBean for this
Connector object. | static void | destroyMBean(Context context) Deregister the MBean for this
Context object. | 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 void | destroyMBean(DefaultContext context) Deregister the MBean for this
DefaultContext object. | static void | destroyMBean(Engine engine) Deregister the MBean for this
Engine object. | static void | destroyMBean(Group group) Deregister the MBean for this
Group object. | static void | destroyMBean(Host host) Deregister the MBean for this
Host object. | static void | destroyMBean(Loader loader) Deregister the MBean for this
Loader object. | static void | destroyMBean(Logger logger) Deregister the MBean for this
Logger object. | static void | destroyMBean(Manager manager) Deregister the MBean for this
Manager object. | static void | destroyMBean(NamingResources resources) Deregister the MBean for this
NamingResources object. | static void | destroyMBean(Realm realm) Deregister the MBean for this
Realm object. | static void | destroyMBean(Role role) Deregister the MBean for this
Role object. | static void | destroyMBean(Server server) Deregister the MBean for this
Server object. | static void | destroyMBean(Service service) Deregister the MBean for this
Service object. | static void | destroyMBean(User user) Deregister the MBean for this
User object. | static void | destroyMBean(UserDatabase userDatabase) Deregister the MBean for this
UserDatabase object. | static void | destroyMBean(Valve valve, Container container) Deregister the MBean for this
Valve object. | static int | getSeq(String key) | public static synchronized void | loadMBeanDescriptors(String resource) Load an MBean descriptor resource. |
createMBean | static ModelMBean createMBean(Connector connector) throws Exception(Code) | | Create, register, and return an MBean for this
Connector object.
Parameters: connector - The Connector to be managed exception: Exception - if an MBean cannot be created or registered |
createMBean | static ModelMBean createMBean(Context context) throws Exception(Code) | | Create, register, and return an MBean for this
Context object.
Parameters: context - The Context to be managed exception: Exception - if an MBean cannot be created or registered |
createMBean | static ModelMBean createMBean(ContextEnvironment environment) throws Exception(Code) | | Create, register, and return an MBean for this
ContextEnvironment object.
Parameters: environment - The ContextEnvironment to be managed exception: Exception - if an MBean cannot be created or registered |
createMBean | static ModelMBean createMBean(ContextResource resource) throws Exception(Code) | | Create, register, and return an MBean for this
ContextResource object.
Parameters: resource - The ContextResource to be managed exception: Exception - if an MBean cannot be created or registered |
createMBean | static ModelMBean createMBean(ContextResourceLink resourceLink) throws Exception(Code) | | Create, register, and return an MBean for this
ContextResourceLink object.
Parameters: resourceLink - The ContextResourceLink to be managed exception: Exception - if an MBean cannot be created or registered |
createMBean | static ModelMBean createMBean(DefaultContext context) throws Exception(Code) | | Create, register, and return an MBean for this
DefaultContext object.
Parameters: context - The DefaultContext to be managed exception: Exception - if an MBean cannot be created or registered |
createMBean | static ModelMBean createMBean(Engine engine) throws Exception(Code) | | Create, register, and return an MBean for this
Engine object.
Parameters: engine - The Engine to be managed exception: Exception - if an MBean cannot be created or registered |
createMBean | static ModelMBean createMBean(Group group) throws Exception(Code) | | Create, register, and return an MBean for this
Group object.
Parameters: group - The Group to be managed exception: Exception - if an MBean cannot be created or registered |
createMBean | static ModelMBean createMBean(Host host) throws Exception(Code) | | Create, register, and return an MBean for this
Host object.
Parameters: host - The Host to be managed exception: Exception - if an MBean cannot be created or registered |
createMBean | static ModelMBean createMBean(Loader loader) throws Exception(Code) | | Create, register, and return an MBean for this
Loader object.
Parameters: loader - The Loader to be managed exception: Exception - if an MBean cannot be created or registered |
createMBean | static ModelMBean createMBean(Logger logger) throws Exception(Code) | | Create, register, and return an MBean for this
Logger object.
Parameters: logger - The Logger to be managed exception: Exception - if an MBean cannot be created or registered |
createMBean | static ModelMBean createMBean(Manager manager) throws Exception(Code) | | Create, register, and return an MBean for this
Manager object.
Parameters: manager - The Manager to be managed exception: Exception - if an MBean cannot be created or registered |
createMBean | static ModelMBean createMBean(MBeanFactory factory) throws Exception(Code) | | Create, register, and return an MBean for this
MBeanFactory object.
Parameters: factory - The MBeanFactory to be managed exception: Exception - if an MBean cannot be created or registered |
createMBean | static ModelMBean createMBean(NamingResources resource) throws Exception(Code) | | Create, register, and return an MBean for this
NamingResources object.
Parameters: resource - The NamingResources to be managed exception: Exception - if an MBean cannot be created or registered |
createMBean | static ModelMBean createMBean(Realm realm) throws Exception(Code) | | Create, register, and return an MBean for this
Realm object.
Parameters: realm - The Realm to be managed exception: Exception - if an MBean cannot be created or registered |
createMBean | static ModelMBean createMBean(Role role) throws Exception(Code) | | Create, register, and return an MBean for this
Role object.
Parameters: role - The Role to be managed exception: Exception - if an MBean cannot be created or registered |
createMBean | static ModelMBean createMBean(Server server) throws Exception(Code) | | Create, register, and return an MBean for this
Server object.
Parameters: server - The Server to be managed exception: Exception - if an MBean cannot be created or registered |
createMBean | static ModelMBean createMBean(Service service) throws Exception(Code) | | Create, register, and return an MBean for this
Service object.
Parameters: service - The Service to be managed exception: Exception - if an MBean cannot be created or registered |
createMBean | static ModelMBean createMBean(User user) throws Exception(Code) | | Create, register, and return an MBean for this
User object.
Parameters: user - The User to be managed exception: Exception - if an MBean cannot be created or registered |
createMBean | static ModelMBean createMBean(UserDatabase userDatabase) throws Exception(Code) | | Create, register, and return an MBean for this
UserDatabase object.
Parameters: userDatabase - The UserDatabase to be managed exception: Exception - if an MBean cannot be created or registered |
createMBean | static ModelMBean createMBean(Valve valve) throws Exception(Code) | | Create, register, and return an MBean for this
Valve object.
Parameters: valve - The Valve to be managed exception: Exception - if an MBean cannot be created or registered |
createManagedName | static String createManagedName(Object component)(Code) | | Create and return the name of the ManagedBean that
corresponds to this Catalina component.
Parameters: component - The component for which to create a name |
createRMIAdaptor | public static void createRMIAdaptor(String adaptorType, String host, int port) throws Exception(Code) | | Create a RMI adapter [MX4J specific].
|
createRegistry | public static synchronized Registry createRegistry()(Code) | | Create and configure (if necessary) and return the registry of
managed object descriptions.
|
createServer | public static synchronized MBeanServer createServer()(Code) | | Create and configure (if necessary) and return the
MBeanServer with which we will be
registering our ModelMBean implementations.
|
destroyMBean | static void destroyMBean(Connector connector, Service service) throws Exception(Code) | | Deregister the MBean for this
Connector object.
Parameters: connector - The Connector to be managed exception: Exception - if an MBean cannot be deregistered |
destroyMBean | static void destroyMBean(Context context) throws Exception(Code) | | Deregister the MBean for this
Context object.
Parameters: context - The Context to be managed exception: Exception - if an MBean cannot be deregistered |
destroyMBean | static void destroyMBean(ContextEnvironment environment) throws Exception(Code) | | Deregister the MBean for this
ContextEnvironment object.
Parameters: environment - The ContextEnvironment to be managed exception: Exception - if an MBean cannot be deregistered |
destroyMBean | static void destroyMBean(ContextResource resource) throws Exception(Code) | | Deregister the MBean for this
ContextResource object.
Parameters: resource - The ContextResource to be managed exception: Exception - if an MBean cannot be deregistered |
destroyMBean | static void destroyMBean(ContextResourceLink resourceLink) throws Exception(Code) | | Deregister the MBean for this
ContextResourceLink object.
Parameters: resourceLink - The ContextResourceLink to be managed exception: Exception - if an MBean cannot be deregistered |
destroyMBean | static void destroyMBean(DefaultContext context) throws Exception(Code) | | Deregister the MBean for this
DefaultContext object.
Parameters: context - The DefaultContext to be managed exception: Exception - if an MBean cannot be deregistered |
destroyMBean | static void destroyMBean(Engine engine) throws Exception(Code) | | Deregister the MBean for this
Engine object.
Parameters: engine - The Engine to be managed exception: Exception - if an MBean cannot be deregistered |
destroyMBean | static void destroyMBean(Group group) throws Exception(Code) | | Deregister the MBean for this
Group object.
Parameters: group - The Group to be managed exception: Exception - if an MBean cannot be deregistered |
destroyMBean | static void destroyMBean(Host host) throws Exception(Code) | | Deregister the MBean for this
Host object.
Parameters: host - The Host to be managed exception: Exception - if an MBean cannot be deregistered |
destroyMBean | static void destroyMBean(Loader loader) throws Exception(Code) | | Deregister the MBean for this
Loader object.
Parameters: loader - The Loader to be managed exception: Exception - if an MBean cannot be deregistered |
destroyMBean | static void destroyMBean(Logger logger) throws Exception(Code) | | Deregister the MBean for this
Logger object.
Parameters: logger - The Logger to be managed exception: Exception - if an MBean cannot be deregistered |
destroyMBean | static void destroyMBean(Manager manager) throws Exception(Code) | | Deregister the MBean for this
Manager object.
Parameters: manager - The Manager to be managed exception: Exception - if an MBean cannot be deregistered |
destroyMBean | static void destroyMBean(NamingResources resources) throws Exception(Code) | | Deregister the MBean for this
NamingResources object.
Parameters: resources - The NamingResources to be managed exception: Exception - if an MBean cannot be deregistered |
destroyMBean | static void destroyMBean(Realm realm) throws Exception(Code) | | Deregister the MBean for this
Realm object.
Parameters: realm - The Realm to be managed exception: Exception - if an MBean cannot be deregistered |
destroyMBean | static void destroyMBean(Role role) throws Exception(Code) | | Deregister the MBean for this
Role object.
Parameters: role - The Role to be managed exception: Exception - if an MBean cannot be deregistered |
destroyMBean | static void destroyMBean(Server server) throws Exception(Code) | | Deregister the MBean for this
Server object.
Parameters: server - The Server to be managed exception: Exception - if an MBean cannot be deregistered |
destroyMBean | static void destroyMBean(Service service) throws Exception(Code) | | Deregister the MBean for this
Service object.
Parameters: service - The Service to be managed exception: Exception - if an MBean cannot be deregistered |
destroyMBean | static void destroyMBean(User user) throws Exception(Code) | | Deregister the MBean for this
User object.
Parameters: user - The User to be managed exception: Exception - if an MBean cannot be deregistered |
destroyMBean | static void destroyMBean(UserDatabase userDatabase) throws Exception(Code) | | Deregister the MBean for this
UserDatabase object.
Parameters: userDatabase - The UserDatabase to be managed exception: Exception - if an MBean cannot be deregistered |
destroyMBean | static void destroyMBean(Valve valve, Container container) throws Exception(Code) | | Deregister the MBean for this
Valve object.
Parameters: valve - The Valve to be managed exception: Exception - if an MBean cannot be deregistered |
loadMBeanDescriptors | public static synchronized void loadMBeanDescriptors(String resource)(Code) | | Load an MBean descriptor resource.
|
|
|