org.apache.catalina.mbeans

Class MBeanFactory

public class MBeanFactory extends BaseModelMBean

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

Version: $Revision: 467222 $ $Date: 2006-10-24 05:17:11 +0200 (Tue, 24 Oct 2006) $

Author: Amy Roh

Constructor Summary
MBeanFactory()
Construct a ModelMBean with default ModelMBeanInfo information.
Method Summary
StringcreateAccessLoggerValve(String parent)
Create a new AccessLoggerValve.
StringcreateAjpConnector(String parent, String address, int port)
Create a new AjpConnector
StringcreateDataSourceRealm(String parent, String dataSourceName, String roleNameCol, String userCredCol, String userNameCol, String userRoleTable, String userTable)
Create a new DataSource Realm.
StringcreateHttpConnector(String parent, String address, int port)
Create a new HttpConnector
StringcreateHttpsConnector(String parent, String address, int port)
Create a new HttpsConnector
StringcreateJDBCRealm(String parent, String driverName, String connectionName, String connectionPassword, String connectionURL)
Create a new JDBC Realm.
StringcreateJNDIRealm(String parent)
Create a new JNDI Realm.
StringcreateMemoryRealm(String parent)
Create a new Memory Realm.
StringcreateRemoteAddrValve(String parent)
Create a new Remote Address Filter Valve.
StringcreateRemoteHostValve(String parent)
Create a new Remote Host Filter Valve.
StringcreateRequestDumperValve(String parent)
Create a new Request Dumper Valve.
StringcreateSingleSignOn(String parent)
Create a new Single Sign On Valve.
StringcreateStandardContext(String parent, String path, String docBase)
Create a new StandardContext.
StringcreateStandardContext(String parent, String path, String docBase, boolean xmlValidation, boolean xmlNamespaceAware, boolean tldValidation, boolean tldNamespaceAware)
Create a new StandardContext.
VectorcreateStandardEngineService(String parent, String engineName, String defaultHost, String serviceName)
Create a new StandardEngine.
StringcreateStandardHost(String parent, String name, String appBase, boolean autoDeploy, boolean deployOnStartup, boolean deployXML, boolean unpackWARs, boolean xmlNamespaceAware, boolean xmlValidation)
Create a new StandardHost.
StringcreateStandardManager(String parent)
Create a new StandardManager.
StringcreateStandardService(String parent, String name, String domain)
Create a new StandardService.
StringcreateUserDatabaseRealm(String parent, String resourceName)
Create a new UserDatabaseRealm.
StringcreateWebappLoader(String parent)
Create a new Web Application Loader.
StringfindObjectName(String type)
Return the managed bean definition for the specified bean type
voidremoveConnector(String name)
Remove an existing Connector.
voidremoveContext(String contextName)
Remove an existing Context.
voidremoveHost(String name)
Remove an existing Host.
voidremoveLoader(String name)
Remove an existing Loader.
voidremoveManager(String name)
Remove an existing Manager.
voidremoveRealm(String name)
Remove an existing Realm.
voidremoveService(String name)
Remove an existing Service.
voidremoveValve(String name)
Remove an existing Valve.

Constructor Detail

MBeanFactory

public MBeanFactory()
Construct a ModelMBean with default ModelMBeanInfo information.

Throws: MBeanException if the initializer of an object throws an exception RuntimeOperationsException if an IllegalArgumentException occurs

Method Detail

createAccessLoggerValve

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

Parameters: parent MBean Name of the associated parent component

Throws: Exception if an MBean cannot be created or registered

createAjpConnector

public String createAjpConnector(String parent, String address, int port)
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

Throws: Exception if an MBean cannot be created or registered

createDataSourceRealm

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

Parameters: parent MBean Name of the associated parent component

Throws: Exception if an MBean cannot be created or registered

createHttpConnector

public String createHttpConnector(String parent, String address, int port)
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

Throws: Exception if an MBean cannot be created or registered

createHttpsConnector

public String createHttpsConnector(String parent, String address, int port)
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

Throws: Exception if an MBean cannot be created or registered

createJDBCRealm

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

Parameters: parent MBean Name of the associated parent component

Throws: Exception if an MBean cannot be created or registered

createJNDIRealm

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

Parameters: parent MBean Name of the associated parent component

Throws: Exception if an MBean cannot be created or registered

createMemoryRealm

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

Parameters: parent MBean Name of the associated parent component

Throws: Exception if an MBean cannot be created or registered

createRemoteAddrValve

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

Parameters: parent MBean Name of the associated parent component

Throws: Exception if an MBean cannot be created or registered

createRemoteHostValve

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

Parameters: parent MBean Name of the associated parent component

Throws: Exception if an MBean cannot be created or registered

createRequestDumperValve

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

Parameters: parent MBean Name of the associated parent component

Throws: Exception if an MBean cannot be created or registered

createSingleSignOn

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

Parameters: parent MBean Name of the associated parent component

Throws: Exception if an MBean cannot be created or registered

createStandardContext

public String createStandardContext(String parent, String path, String docBase)
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

Throws: Exception if an MBean cannot be created or registered

createStandardContext

public String createStandardContext(String parent, String path, String docBase, boolean xmlValidation, boolean xmlNamespaceAware, boolean tldValidation, boolean tldNamespaceAware)
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

Throws: Exception if an MBean cannot be created or registered

createStandardEngineService

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

Parameters: parent MBean Name of the associated parent component engineName Unique name of this Engine defaultHost Default hostname of this Engine serviceName Unique name of this Service

Throws: Exception if an MBean cannot be created or registered

createStandardHost

public String createStandardHost(String parent, String name, String appBase, boolean autoDeploy, boolean deployOnStartup, boolean deployXML, boolean unpackWARs, boolean xmlNamespaceAware, boolean xmlValidation)
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? deployOnStartup Deploy on server startup? deployXML Should we deploy Context XML config files property? 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?

Throws: Exception if an MBean cannot be created or registered

createStandardManager

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

Parameters: parent MBean Name of the associated parent component

Throws: Exception if an MBean cannot be created or registered

createStandardService

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

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

Throws: Exception if an MBean cannot be created or registered

createUserDatabaseRealm

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

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

Throws: Exception if an MBean cannot be created or registered

createWebappLoader

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

Parameters: parent MBean Name of the associated parent component

Throws: Exception if an MBean cannot be created or registered

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)
Remove an existing Connector.

Parameters: name MBean Name of the component to remove

Throws: Exception if a component cannot be removed

removeContext

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

Parameters: contextName MBean Name of the comonent to remove

Throws: Exception if a component cannot be removed

removeHost

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

Parameters: name MBean Name of the comonent to remove

Throws: Exception if a component cannot be removed

removeLoader

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

Parameters: name MBean Name of the comonent to remove

Throws: Exception if a component cannot be removed

removeManager

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

Parameters: name MBean Name of the comonent to remove

Throws: Exception if a component cannot be removed

removeRealm

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

Parameters: name MBean Name of the comonent to remove

Throws: Exception if a component cannot be removed

removeService

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

Parameters: name MBean Name of the component to remove

Throws: Exception if a component cannot be removed

removeValve

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

Parameters: name MBean Name of the comonent to remove

Throws: Exception if a component cannot be removed

Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.