org.apache.catalina.mbeans

Class MBeanFactory


public class MBeanFactory
extends BaseModelMBean

A ModelMBean implementation for the org.apache.catalina.core.StandardServer component.

Version:
$Revision: 1.24 $ $Date: 2004/04/17 02:50:26 $

Author:
Amy Roh

Constructor Summary

MBeanFactory()
Construct a ModelMBean with default ModelMBeanInfo information.

Method Summary

String
createAccessLoggerValve(String parent)
Create a new AccessLoggerValve.
String
createAjpConnector(String parent, String address, int port)
Create a new AjpConnector
String
createDataSourceRealm(String parent, String dataSourceName, String roleNameCol, String userCredCol, String userNameCol, String userRoleTable, String userTable)
Create a new DataSource Realm.
String
createDefaultContext(String parent)
Create a new DefaultContext.
String
createFileLogger(String parent)
Create a new FileLogger.
String
createHttpConnector(String parent, String address, int port)
Create a new HttpConnector
String
createHttpsConnector(String parent, String address, int port)
Create a new HttpsConnector
String
createJDBCRealm(String parent, String driverName, String connectionName, String connectionPassword, String connectionURL)
Create a new JDBC Realm.
String
createJNDIRealm(String parent)
Create a new JNDI Realm.
String
createMemoryRealm(String parent)
Create a new Memory Realm.
String
createRemoteAddrValve(String parent)
Create a new Remote Address Filter Valve.
String
createRemoteHostValve(String parent)
Create a new Remote Host Filter Valve.
String
createRequestDumperValve(String parent)
Create a new Request Dumper Valve.
String
createSingleSignOn(String parent)
Create a new Single Sign On Valve.
String
createStandardContext(String parent, String path, String docBase)
Create a new StandardContext.
String
createStandardContext(String parent, String path, String docBase, boolean xmlValidation, boolean xmlNamespaceAware, boolean tldValidation, boolean tldNamespaceAware)
Create a new StandardContext.
Vector
createStandardEngineService(String parent, String engineName, String defaultHost, String serviceName)
Create a new StandardEngine.
String
createStandardHost(String parent, String name, String appBase, boolean autoDeploy, boolean deployXML, boolean liveDeploy, boolean unpackWARs, boolean xmlNamespaceAware, boolean xmlValidation)
Create a new StandardHost.
String
createStandardManager(String parent)
Create a new StandardManager.
String
createStandardService(String parent, String name, String domain)
Create a new StandardService.
String
createSystemErrLogger(String parent)
Create a new System Error Logger.
String
createSystemOutLogger(String parent)
Create a new System Output Logger.
String
createUserDatabaseRealm(String parent, String resourceName)
Create a new UserDatabaseRealm.
String
createWebappLoader(String parent)
Create a new Web Application Loader.
String
findObjectName(String type)
Return the managed bean definition for the specified bean type
void
removeConnector(String name)
Remove an existing Connector.
void
removeContext(String contextName)
Remove an existing Context.
void
removeHost(String name)
Remove an existing Host.
void
removeLoader(String name)
Remove an existing Loader.
void
removeLogger(String name)
Remove an existing Logger.
void
removeManager(String name)
Remove an existing Manager.
void
removeRealm(String name)
Remove an existing Realm.
void
removeService(String name)
Remove an existing Service.
void
removeValve(String name)
Remove an existing Valve.

Constructor Details

MBeanFactory

public MBeanFactory()
            throws MBeanException,
                   RuntimeOperationsException
Construct a ModelMBean with default ModelMBeanInfo information.

Method Details

createAccessLoggerValve

public String createAccessLoggerValve(String parent)
            throws Exception
Create a new AccessLoggerValve.

Parameters:
parent - MBean Name of the associated parent component


createAjpConnector

public String createAjpConnector(String parent,
                                 String address,
                                 int port)
            throws Exception
Create a new AjpConnector

Parameters:
parent - MBean Name of the associated parent component
address - The IP address on which to bind
port - TCP port number to listen on


createDataSourceRealm

public String createDataSourceRealm(String parent,
                                    String dataSourceName,
                                    String roleNameCol,
                                    String userCredCol,
                                    String userNameCol,
                                    String userRoleTable,
                                    String userTable)
            throws Exception
Create a new DataSource Realm.

Parameters:
parent - MBean Name of the associated parent component


createDefaultContext

public String createDefaultContext(String parent)
            throws Exception
Create a new DefaultContext.

Parameters:
parent - MBean Name of the associated parent component


createFileLogger

public String createFileLogger(String parent)
            throws Exception
Create a new FileLogger.

Parameters:
parent - MBean Name of the associated parent component


createHttpConnector

public String createHttpConnector(String parent,
                                  String address,
                                  int port)
            throws Exception
Create a new HttpConnector

Parameters:
parent - MBean Name of the associated parent component
address - The IP address on which to bind
port - TCP port number to listen on


createHttpsConnector

public String createHttpsConnector(String parent,
                                   String address,
                                   int port)
            throws Exception
Create a new HttpsConnector

Parameters:
parent - MBean Name of the associated parent component
address - The IP address on which to bind
port - TCP port number to listen on


createJDBCRealm

public String createJDBCRealm(String parent,
                              String driverName,
                              String connectionName,
                              String connectionPassword,
                              String connectionURL)
            throws Exception
Create a new JDBC Realm.

Parameters:
parent - MBean Name of the associated parent component


createJNDIRealm

public String createJNDIRealm(String parent)
            throws Exception
Create a new JNDI Realm.

Parameters:
parent - MBean Name of the associated parent component


createMemoryRealm

public String createMemoryRealm(String parent)
            throws Exception
Create a new Memory Realm.

Parameters:
parent - MBean Name of the associated parent component


createRemoteAddrValve

public String createRemoteAddrValve(String parent)
            throws Exception
Create a new Remote Address Filter Valve.

Parameters:
parent - MBean Name of the associated parent component


createRemoteHostValve

public String createRemoteHostValve(String parent)
            throws Exception
Create a new Remote Host Filter Valve.

Parameters:
parent - MBean Name of the associated parent component


createRequestDumperValve

public String createRequestDumperValve(String parent)
            throws Exception
Create a new Request Dumper Valve.

Parameters:
parent - MBean Name of the associated parent component


createSingleSignOn

public String createSingleSignOn(String parent)
            throws Exception
Create a new Single Sign On Valve.

Parameters:
parent - MBean Name of the associated parent component


createStandardContext

public String createStandardContext(String parent,
                                    String path,
                                    String docBase)
            throws Exception
Create a new StandardContext.

Parameters:
parent - MBean Name of the associated parent component
path - The context path for this Context
docBase - Document base directory (or WAR) for this Context


createStandardContext

public String createStandardContext(String parent,
                                    String path,
                                    String docBase,
                                    boolean xmlValidation,
                                    boolean xmlNamespaceAware,
                                    boolean tldValidation,
                                    boolean tldNamespaceAware)
            throws Exception
Create a new StandardContext.

Parameters:
parent - MBean Name of the associated parent component
path - The context path for this Context
docBase - Document base directory (or WAR) for this Context


createStandardEngineService

public Vector createStandardEngineService(String parent,
                                          String engineName,
                                          String defaultHost,
                                          String serviceName)
            throws Exception
Create a new StandardEngine.

Parameters:
parent - MBean Name of the associated parent component
defaultHost - Default hostname of this Engine


createStandardHost

public String createStandardHost(String parent,
                                 String name,
                                 String appBase,
                                 boolean autoDeploy,
                                 boolean deployXML,
                                 boolean liveDeploy,
                                 boolean unpackWARs,
                                 boolean xmlNamespaceAware,
                                 boolean xmlValidation)
            throws Exception
Create a new StandardHost.

Parameters:
parent - MBean Name of the associated parent component
name - Unique name of this Host
appBase - Application base directory name
autoDeploy - Should we auto deploy?
deployXML - Should we deploy Context XML config files property?
liveDeploy - Should we live deploy?
unpackWARs - Should we unpack WARs when auto deploying?
xmlNamespaceAware - Should we turn on/off XML namespace awareness?
xmlValidation - Should we turn on/off XML validation?


createStandardManager

public String createStandardManager(String parent)
            throws Exception
Create a new StandardManager.

Parameters:
parent - MBean Name of the associated parent component


createStandardService

public String createStandardService(String parent,
                                    String name,
                                    String domain)
            throws Exception
Create a new StandardService.

Parameters:
parent - MBean Name of the associated parent component
name - Unique name of this StandardService


createSystemErrLogger

public String createSystemErrLogger(String parent)
            throws Exception
Create a new System Error Logger.

Parameters:
parent - MBean Name of the associated parent component


createSystemOutLogger

public String createSystemOutLogger(String parent)
            throws Exception
Create a new System Output Logger.

Parameters:
parent - MBean Name of the associated parent component


createUserDatabaseRealm

public String createUserDatabaseRealm(String parent,
                                      String resourceName)
            throws Exception
Create a new UserDatabaseRealm.

Parameters:
parent - MBean Name of the associated parent component
resourceName - Global JNDI resource name of the associated UserDatabase


createWebappLoader

public String createWebappLoader(String parent)
            throws Exception
Create a new Web Application Loader.

Parameters:
parent - MBean Name of the associated parent component


findObjectName

public String findObjectName(String type)
Return the managed bean definition for the specified bean type

Parameters:
type - MBean type


removeConnector

public void removeConnector(String name)
            throws Exception
Remove an existing Connector.

Parameters:
name - MBean Name of the comonent to remove


removeContext

public void removeContext(String contextName)
            throws Exception
Remove an existing Context.

Parameters:


removeHost

public void removeHost(String name)
            throws Exception
Remove an existing Host.

Parameters:
name - MBean Name of the comonent to remove


removeLoader

public void removeLoader(String name)
            throws Exception
Remove an existing Loader.

Parameters:
name - MBean Name of the comonent to remove


removeLogger

public void removeLogger(String name)
            throws Exception
Remove an existing Logger.

Parameters:
name - MBean Name of the comonent to remove


removeManager

public void removeManager(String name)
            throws Exception
Remove an existing Manager.

Parameters:
name - MBean Name of the comonent to remove


removeRealm

public void removeRealm(String name)
            throws Exception
Remove an existing Realm.

Parameters:
name - MBean Name of the comonent to remove


removeService

public void removeService(String name)
            throws Exception
Remove an existing Service.

Parameters:
name - MBean Name of the component to remove


removeValve

public void removeValve(String name)
            throws Exception
Remove an existing Valve.

Parameters:
name - MBean Name of the comonent to remove


Copyright B) 2000-2003 Apache Software Foundation. All Rights Reserved.