public class MBeanFactory
extends java.lang.Object
A ModelMBean implementation for the
org.apache.catalina.core.StandardServer
component.
Constructor and Description |
---|
MBeanFactory()
Construct a
ModelMBean with default
ModelMBeanInfo information. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
createAccessLoggerValve(java.lang.String parent)
Deprecated.
Will be removed in Tomcat 8.0.x. Replaced by
createValve(String, String) . |
java.lang.String |
createAjpConnector(java.lang.String parent,
java.lang.String address,
int port)
Create a new AjpConnector
|
java.lang.String |
createDataSourceRealm(java.lang.String parent,
java.lang.String dataSourceName,
java.lang.String roleNameCol,
java.lang.String userCredCol,
java.lang.String userNameCol,
java.lang.String userRoleTable,
java.lang.String userTable)
Create a new DataSource Realm.
|
java.lang.String |
createHttpConnector(java.lang.String parent,
java.lang.String address,
int port)
Create a new HttpConnector
|
java.lang.String |
createHttpsConnector(java.lang.String parent,
java.lang.String address,
int port)
Create a new HttpsConnector
|
java.lang.String |
createJDBCRealm(java.lang.String parent,
java.lang.String driverName,
java.lang.String connectionName,
java.lang.String connectionPassword,
java.lang.String connectionURL)
Create a new JDBC Realm.
|
java.lang.String |
createJNDIRealm(java.lang.String parent)
Create a new JNDI Realm.
|
java.lang.String |
createMemoryRealm(java.lang.String parent)
Create a new Memory Realm.
|
java.lang.String |
createRemoteAddrValve(java.lang.String parent)
Deprecated.
Will be removed in Tomcat 8.0.x. Replaced by
createValve(String, String) . |
java.lang.String |
createRemoteHostValve(java.lang.String parent)
Deprecated.
Will be removed in Tomcat 8.0.x. Replaced by
createValve(String, String) . |
java.lang.String |
createSingleSignOn(java.lang.String parent)
Deprecated.
Will be removed in Tomcat 8.0.x. Replaced by
createValve(String, String) . |
java.lang.String |
createStandardContext(java.lang.String parent,
java.lang.String path,
java.lang.String docBase)
Create a new StandardContext.
|
java.lang.String |
createStandardContext(java.lang.String parent,
java.lang.String path,
java.lang.String docBase,
boolean xmlValidation,
boolean xmlNamespaceAware,
boolean tldValidation,
boolean tldNamespaceAware)
Create a new StandardContext.
|
java.lang.String |
createStandardHost(java.lang.String parent,
java.lang.String name,
java.lang.String appBase,
boolean autoDeploy,
boolean deployOnStartup,
boolean deployXML,
boolean unpackWARs)
Create a new StandardHost.
|
java.lang.String |
createStandardManager(java.lang.String parent)
Create a new StandardManager.
|
java.lang.String |
createStandardServiceEngine(java.lang.String domain,
java.lang.String defaultHost,
java.lang.String baseDir)
Creates a new StandardService and StandardEngine.
|
java.lang.String |
createUserDatabaseRealm(java.lang.String parent,
java.lang.String resourceName)
Create a new UserDatabaseRealm.
|
java.lang.String |
createValve(java.lang.String className,
java.lang.String parent)
Create a new Valve and associate it with a
Container . |
java.lang.String |
createWebappLoader(java.lang.String parent)
Create a new Web Application Loader.
|
java.lang.String |
findObjectName(java.lang.String type)
Deprecated.
Unused
|
void |
removeConnector(java.lang.String name)
Remove an existing Connector.
|
void |
removeContext(java.lang.String contextName)
Remove an existing Context.
|
void |
removeHost(java.lang.String name)
Remove an existing Host.
|
void |
removeLoader(java.lang.String name)
Remove an existing Loader.
|
void |
removeManager(java.lang.String name)
Remove an existing Manager.
|
void |
removeRealm(java.lang.String name)
Remove an existing Realm.
|
void |
removeService(java.lang.String name)
Remove an existing Service.
|
void |
removeValve(java.lang.String name)
Remove an existing Valve.
|
void |
setContainer(java.lang.Object container)
Set the container that this factory was created for.
|
public MBeanFactory()
ModelMBean
with default
ModelMBeanInfo
information.javax.management.RuntimeOperationsException
- if an
IllegalArgumentException occurspublic void setContainer(java.lang.Object container)
@Deprecated public java.lang.String findObjectName(java.lang.String type)
type
- MBean type@Deprecated public java.lang.String createAccessLoggerValve(java.lang.String parent) throws java.lang.Exception
createValve(String, String)
.parent
- MBean Name of the associated parent componentjava.lang.Exception
- if an MBean cannot be created or registeredpublic java.lang.String createAjpConnector(java.lang.String parent, java.lang.String address, int port) throws java.lang.Exception
parent
- MBean Name of the associated parent componentaddress
- The IP address on which to bindport
- TCP port number to listen onjava.lang.Exception
- if an MBean cannot be created or registeredpublic java.lang.String createDataSourceRealm(java.lang.String parent, java.lang.String dataSourceName, java.lang.String roleNameCol, java.lang.String userCredCol, java.lang.String userNameCol, java.lang.String userRoleTable, java.lang.String userTable) throws java.lang.Exception
parent
- MBean Name of the associated parent componentjava.lang.Exception
- if an MBean cannot be created or registeredpublic java.lang.String createHttpConnector(java.lang.String parent, java.lang.String address, int port) throws java.lang.Exception
parent
- MBean Name of the associated parent componentaddress
- The IP address on which to bindport
- TCP port number to listen onjava.lang.Exception
- if an MBean cannot be created or registeredpublic java.lang.String createHttpsConnector(java.lang.String parent, java.lang.String address, int port) throws java.lang.Exception
parent
- MBean Name of the associated parent componentaddress
- The IP address on which to bindport
- TCP port number to listen onjava.lang.Exception
- if an MBean cannot be created or registeredpublic java.lang.String createJDBCRealm(java.lang.String parent, java.lang.String driverName, java.lang.String connectionName, java.lang.String connectionPassword, java.lang.String connectionURL) throws java.lang.Exception
parent
- MBean Name of the associated parent componentjava.lang.Exception
- if an MBean cannot be created or registeredpublic java.lang.String createJNDIRealm(java.lang.String parent) throws java.lang.Exception
parent
- MBean Name of the associated parent componentjava.lang.Exception
- if an MBean cannot be created or registeredpublic java.lang.String createMemoryRealm(java.lang.String parent) throws java.lang.Exception
parent
- MBean Name of the associated parent componentjava.lang.Exception
- if an MBean cannot be created or registered@Deprecated public java.lang.String createRemoteAddrValve(java.lang.String parent) throws java.lang.Exception
createValve(String, String)
.parent
- MBean Name of the associated parent componentjava.lang.Exception
- if an MBean cannot be created or registered@Deprecated public java.lang.String createRemoteHostValve(java.lang.String parent) throws java.lang.Exception
createValve(String, String)
.parent
- MBean Name of the associated parent componentjava.lang.Exception
- if an MBean cannot be created or registered@Deprecated public java.lang.String createSingleSignOn(java.lang.String parent) throws java.lang.Exception
createValve(String, String)
.parent
- MBean Name of the associated parent componentjava.lang.Exception
- if an MBean cannot be created or registeredpublic java.lang.String createStandardContext(java.lang.String parent, java.lang.String path, java.lang.String docBase) throws java.lang.Exception
parent
- MBean Name of the associated parent componentpath
- The context path for this ContextdocBase
- Document base directory (or WAR) for this Contextjava.lang.Exception
- if an MBean cannot be created or registeredpublic java.lang.String createStandardContext(java.lang.String parent, java.lang.String path, java.lang.String docBase, boolean xmlValidation, boolean xmlNamespaceAware, boolean tldValidation, boolean tldNamespaceAware) throws java.lang.Exception
parent
- MBean Name of the associated parent componentpath
- The context path for this ContextdocBase
- Document base directory (or WAR) for this Contextjava.lang.Exception
- if an MBean cannot be created or registeredpublic java.lang.String createStandardHost(java.lang.String parent, java.lang.String name, java.lang.String appBase, boolean autoDeploy, boolean deployOnStartup, boolean deployXML, boolean unpackWARs) throws java.lang.Exception
parent
- MBean Name of the associated parent componentname
- Unique name of this HostappBase
- Application base directory nameautoDeploy
- 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?java.lang.Exception
- if an MBean cannot be created or registeredpublic java.lang.String createStandardServiceEngine(java.lang.String domain, java.lang.String defaultHost, java.lang.String baseDir) throws java.lang.Exception
domain
- Domain name for the container instancedefaultHost
- Name of the default host to be used in the EnginebaseDir
- Base directory value for Enginejava.lang.Exception
- if an MBean cannot be created or registeredpublic java.lang.String createStandardManager(java.lang.String parent) throws java.lang.Exception
parent
- MBean Name of the associated parent componentjava.lang.Exception
- if an MBean cannot be created or registeredpublic java.lang.String createUserDatabaseRealm(java.lang.String parent, java.lang.String resourceName) throws java.lang.Exception
parent
- MBean Name of the associated parent componentresourceName
- Global JNDI resource name of the associated
UserDatabasejava.lang.Exception
- if an MBean cannot be created or registeredpublic java.lang.String createValve(java.lang.String className, java.lang.String parent) throws java.lang.Exception
Container
.className
- The fully qualified class name of the Valve
to
createparent
- The MBean name of the associated parent
Container
.Valve
that was created or
null
if the Valve
does not implement
LifecycleMBeanBase
.java.lang.Exception
public java.lang.String createWebappLoader(java.lang.String parent) throws java.lang.Exception
parent
- MBean Name of the associated parent componentjava.lang.Exception
- if an MBean cannot be created or registeredpublic void removeConnector(java.lang.String name) throws java.lang.Exception
name
- MBean Name of the component to removejava.lang.Exception
- if a component cannot be removedpublic void removeContext(java.lang.String contextName) throws java.lang.Exception
contextName
- MBean Name of the component to removejava.lang.Exception
- if a component cannot be removedpublic void removeHost(java.lang.String name) throws java.lang.Exception
name
- MBean Name of the component to removejava.lang.Exception
- if a component cannot be removedpublic void removeLoader(java.lang.String name) throws java.lang.Exception
name
- MBean Name of the component to removejava.lang.Exception
- if a component cannot be removedpublic void removeManager(java.lang.String name) throws java.lang.Exception
name
- MBean Name of the component to removejava.lang.Exception
- if a component cannot be removedpublic void removeRealm(java.lang.String name) throws java.lang.Exception
name
- MBean Name of the component to removejava.lang.Exception
- if a component cannot be removedpublic void removeService(java.lang.String name) throws java.lang.Exception
name
- MBean Name of the component to removejava.lang.Exception
- if a component cannot be removedpublic void removeValve(java.lang.String name) throws java.lang.Exception
name
- MBean Name of the component to removejava.lang.Exception
- if a component cannot be removedCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.