public class MBeanFactory
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static StringManager |
sm |
Constructor and Description |
---|
MBeanFactory() |
Modifier and Type | Method and Description |
---|---|
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 |
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)
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.
|
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.
|
protected static final StringManager sm
public void setContainer(java.lang.Object container)
container
- The associated containerpublic 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 componentdataSourceName
- the datasource nameroleNameCol
- the column name for the role namesuserCredCol
- the column name for the user credentialsuserNameCol
- the column name for the user namesuserRoleTable
- the table name for the roles tableuserTable
- the table name for the usersjava.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 componentdriverName
- JDBC driver nameconnectionName
- the user name for the connectionconnectionPassword
- the password for the connectionconnectionURL
- the connection URL to the databasejava.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 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) 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 ContextxmlValidation
- if XML descriptors should be validatedxmlNamespaceAware
- if the XML processor should namespace awarejava.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
JmxEnabled
.java.lang.Exception
- if an MBean cannot be created or registeredpublic 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-2018 Apache Software Foundation. All Rights Reserved.