|
Apache Tomcat 7.0.4 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.catalina.mbeans.MBeanFactory
public class MBeanFactory
A ModelMBean implementation for the
org.apache.catalina.core.StandardServer component.
| 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 |
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 |
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. |
String |
createStandardHost(String parent,
String name,
String appBase,
boolean autoDeploy,
boolean deployOnStartup,
boolean deployXML,
boolean unpackWARs)
Create a new StandardHost. |
String |
createStandardManager(String parent)
Create a new StandardManager. |
String |
createStandardServiceEngine(String domain,
String defaultHost,
String baseDir)
Creates a new StandardService and StandardEngine. |
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 |
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. |
void |
setContainer(Object container)
Set the container that this factory was created for. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MBeanFactory()
ModelMBean with default
ModelMBeanInfo information.
MBeanException - if the initializer of an object
throws an exception
RuntimeOperationsException - if an IllegalArgumentException
occurs| Method Detail |
|---|
public void setContainer(Object container)
public String findObjectName(String type)
type - MBean type
public String createAccessLoggerValve(String parent)
throws Exception
parent - MBean Name of the associated parent component
Exception - if an MBean cannot be created or registered
public String createAjpConnector(String parent,
String address,
int port)
throws Exception
parent - MBean Name of the associated parent componentaddress - The IP address on which to bindport - TCP port number to listen on
Exception - if an MBean cannot be created or registered
public String createDataSourceRealm(String parent,
String dataSourceName,
String roleNameCol,
String userCredCol,
String userNameCol,
String userRoleTable,
String userTable)
throws Exception
parent - MBean Name of the associated parent component
Exception - if an MBean cannot be created or registered
public String createHttpConnector(String parent,
String address,
int port)
throws Exception
parent - MBean Name of the associated parent componentaddress - The IP address on which to bindport - TCP port number to listen on
Exception - if an MBean cannot be created or registered
public String createHttpsConnector(String parent,
String address,
int port)
throws Exception
parent - MBean Name of the associated parent componentaddress - The IP address on which to bindport - TCP port number to listen on
Exception - if an MBean cannot be created or registered
public String createJDBCRealm(String parent,
String driverName,
String connectionName,
String connectionPassword,
String connectionURL)
throws Exception
parent - MBean Name of the associated parent component
Exception - if an MBean cannot be created or registered
public String createJNDIRealm(String parent)
throws Exception
parent - MBean Name of the associated parent component
Exception - if an MBean cannot be created or registered
public String createMemoryRealm(String parent)
throws Exception
parent - MBean Name of the associated parent component
Exception - if an MBean cannot be created or registered
public String createRemoteAddrValve(String parent)
throws Exception
parent - MBean Name of the associated parent component
Exception - if an MBean cannot be created or registered
public String createRemoteHostValve(String parent)
throws Exception
parent - MBean Name of the associated parent component
Exception - if an MBean cannot be created or registered
public String createSingleSignOn(String parent)
throws Exception
parent - MBean Name of the associated parent component
Exception - if an MBean cannot be created or registered
public String createStandardContext(String parent,
String path,
String docBase)
throws Exception
parent - MBean Name of the associated parent componentpath - The context path for this ContextdocBase - Document base directory (or WAR) for this Context
Exception - if an MBean cannot be created or registered
public String createStandardContext(String parent,
String path,
String docBase,
boolean xmlValidation,
boolean xmlNamespaceAware,
boolean tldValidation,
boolean tldNamespaceAware)
throws Exception
parent - MBean Name of the associated parent componentpath - The context path for this ContextdocBase - Document base directory (or WAR) for this Context
Exception - if an MBean cannot be created or registered
public String createStandardHost(String parent,
String name,
String appBase,
boolean autoDeploy,
boolean deployOnStartup,
boolean deployXML,
boolean unpackWARs)
throws 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?
Exception - if an MBean cannot be created or registered
public String createStandardServiceEngine(String domain,
String defaultHost,
String baseDir)
throws Exception
domain - Domain name for the container instancedefaultHost - Name of the default host to be used in the EnginebaseDir - Base directory value for Engine
Exception - if an MBean cannot be created or registered
public String createStandardManager(String parent)
throws Exception
parent - MBean Name of the associated parent component
Exception - if an MBean cannot be created or registered
public String createUserDatabaseRealm(String parent,
String resourceName)
throws Exception
parent - MBean Name of the associated parent componentresourceName - Global JNDI resource name of the associated
UserDatabase
Exception - if an MBean cannot be created or registered
public String createWebappLoader(String parent)
throws Exception
parent - MBean Name of the associated parent component
Exception - if an MBean cannot be created or registered
public void removeConnector(String name)
throws Exception
name - MBean Name of the component to remove
Exception - if a component cannot be removed
public void removeContext(String contextName)
throws Exception
contextName - MBean Name of the component to remove
Exception - if a component cannot be removed
public void removeHost(String name)
throws Exception
name - MBean Name of the component to remove
Exception - if a component cannot be removed
public void removeLoader(String name)
throws Exception
name - MBean Name of the component to remove
Exception - if a component cannot be removed
public void removeManager(String name)
throws Exception
name - MBean Name of the component to remove
Exception - if a component cannot be removed
public void removeRealm(String name)
throws Exception
name - MBean Name of the component to remove
Exception - if a component cannot be removed
public void removeService(String name)
throws Exception
name - MBean Name of the component to remove
Exception - if a component cannot be removed
public void removeValve(String name)
throws Exception
name - MBean Name of the component to remove
Exception - if a component cannot be removed
|
Apache Tomcat 7.0.4 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||