| Modifier and Type | Field and Description |
|---|---|
| private Object | container
The container (Server/Service) for which this factory was created. |
| private static final Log | |
| private static final MBeanServer | mserver
The |
| protected static final StringManager |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private String | |
| public String | Returns: the object name of the created connectorMBean Name of the associated parent component parent, String The IP address on which to bind address, int TCP port number to listen on port)Create a new AjpConnector |
| private String | createConnector(String
MBean Name of the associated parent component parent, String The IP address on which to bind address, int TCP port number to listen on port, boolean Create a AJP/1.3 Connector isAjp, boolean Create a secure Connector isSSL)Create a new Connector |
| public String | Returns: the object name of the created realmMBean Name of the associated parent component parent, String the datasource name dataSourceName, String the column name for the role names roleNameCol, String the column name for the user credentials userCredCol, String the column name for the user names userNameCol, String the table name for the roles table userRoleTable, String the table name for the users userTable)Create a new DataSource Realm. |
| public String | Returns: the object name of the created connectorMBean Name of the associated parent component parent, String The IP address on which to bind address, int TCP port number to listen on port)Create a new HttpConnector |
| public String | Returns: the object name of the created connectorMBean Name of the associated parent component parent, String The IP address on which to bind address, int TCP port number to listen on port)Create a new HttpsConnector |
| public String | Returns: the object name of the created realmMBean Name of the associated parent component parent)Create a new JNDI Realm. |
| public String | Returns: the object name of the created realmMBean Name of the associated parent component parent)Create a new Memory Realm. |
| public String | Returns: the object name of the created contextMBean Name of the associated parent component parent, String The context path for this Context path, String Document base directory (or WAR) for this Context docBase)Create a new StandardContext. |
| public String | Returns: the object name of the created contextMBean Name of the associated parent component parent, String The context path for this Context path, String Document base directory (or WAR) for this Context docBase, boolean if XML descriptors should be validated xmlValidation, boolean if the XML processor should namespace aware xmlNamespaceAware)Create a new StandardContext. |
| public String | Returns: the object name of the created hostMBean Name of the associated parent component parent, String Unique name of this Host name, String Application base directory name appBase, boolean Should we auto deploy? autoDeploy, boolean Deploy on server startup? deployOnStartup, boolean Should we deploy Context XML config files property? deployXML, boolean Should we unpack WARs when auto deploying? unpackWARs)Create a new StandardHost. |
| public String | Returns: the object name of the created managerMBean Name of the associated parent component parent)Create a new StandardManager. |
| public String | Returns: the object name of the created serviceDomain name for the container instance domain, String Name of the default host to be used in the Engine defaultHost, String Base directory value for Engine baseDir)Creates a new StandardService and StandardEngine. |
| public String | Returns: the object name of the created realmMBean Name of the associated parent component parent, String Global JNDI resource name of the associated UserDatabase resourceName)Create a new UserDatabaseRealm. |
| public String | Returns: The MBean name of theValve that was created or null if the Valve does not
implement JmxEnabled.The fully qualified class name of the className, String Valve to createThe MBean name of the associated parent parent)Container.Create a new Valve and associate it with a |
| public String | Returns: the object name of the created loaderMBean Name of the associated parent component parent)Create a new Web Application Loader. |
| private Container | getParentContainerFromChild(ObjectName oname)
Get Parent ContainerBase to add its child component from child component's ObjectName as a String |
| private Container | getParentContainerFromParent(ObjectName pname)
Get Parent Container to add its child component from parent's ObjectName |
| private String | Returns: empty string if t==null || t.equals("/")path string t)Little convenience method to remove redundant code when retrieving the path string |
| private Service | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | setContainer(Object
The associated container container)Set the container that this factory was created for. |
| container | back to summary |
|---|---|
| private Object container The container (Server/Service) for which this factory was created. | |
| log | back to summary |
|---|---|
| private static final Log log | |
| mserver | back to summary |
|---|---|
| private static final MBeanServer mserver The | |
| sm | back to summary |
|---|---|
| protected static final StringManager sm | |
| MBeanFactory | back to summary |
|---|---|
| public MBeanFactory() | |
| addRealmToParent | back to summary |
|---|---|
| private String addRealmToParent(String parent, Realm realm) throws Exception | |
| createAjpConnector | back to summary |
|---|---|
| public String createAjpConnector(String parent, String address, int port) throws Exception Create a new AjpConnector | |
| createConnector | back to summary |
|---|---|
| private String createConnector(String parent, String address, int port, boolean isAjp, boolean isSSL) throws Exception Create a new Connector | |
| createDataSourceRealm | back to summary |
|---|---|
| public String createDataSourceRealm(String parent, String dataSourceName, String roleNameCol, String userCredCol, String userNameCol, String userRoleTable, String userTable) throws Exception Create a new DataSource Realm.
| |
| createHttpConnector | back to summary |
|---|---|
| public String createHttpConnector(String parent, String address, int port) throws Exception Create a new HttpConnector | |
| createHttpsConnector | back to summary |
|---|---|
| public String createHttpsConnector(String parent, String address, int port) throws Exception Create a new HttpsConnector | |
| createJNDIRealm | back to summary |
|---|---|
| public String createJNDIRealm(String parent) throws Exception Create a new JNDI Realm. | |
| createMemoryRealm | back to summary |
|---|---|
| public String createMemoryRealm(String parent) throws Exception Create a new Memory Realm. | |
| createStandardContext | back to summary |
|---|---|
| public String createStandardContext(String parent, String path, String docBase) throws Exception Create a new StandardContext. | |
| createStandardContext | back to summary |
|---|---|
| public String createStandardContext(String parent, String path, String docBase, boolean xmlValidation, boolean xmlNamespaceAware) throws Exception Create a new StandardContext. | |
| createStandardHost | back to summary |
|---|---|
| public String createStandardHost(String parent, String name, String appBase, boolean autoDeploy, boolean deployOnStartup, boolean deployXML, boolean unpackWARs) throws Exception Create a new StandardHost.
| |
| createStandardManager | back to summary |
|---|---|
| public String createStandardManager(String parent) throws Exception Create a new StandardManager. | |
| createStandardServiceEngine | back to summary |
|---|---|
| public String createStandardServiceEngine(String domain, String defaultHost, String baseDir) throws Exception Creates a new StandardService and StandardEngine. | |
| createUserDatabaseRealm | back to summary |
|---|---|
| public String createUserDatabaseRealm(String parent, String resourceName) throws Exception Create a new UserDatabaseRealm. | |
| createValve | back to summary |
|---|---|
| public String createValve(String className, String parent) throws Exception Create a new Valve and associate it with a
| |
| createWebappLoader | back to summary |
|---|---|
| public String createWebappLoader(String parent) throws Exception Create a new Web Application Loader. | |
| getParentContainerFromChild | back to summary |
|---|---|
| private Container getParentContainerFromChild(ObjectName oname) throws Exception Get Parent ContainerBase to add its child component from child component's ObjectName as a String | |
| getParentContainerFromParent | back to summary |
|---|---|
| private Container getParentContainerFromParent(ObjectName pname) throws Exception Get Parent Container to add its child component from parent's ObjectName | |
| getPathStr | back to summary |
|---|---|
| private String getPathStr(String t) Little convenience method to remove redundant code when retrieving the path string | |
| getService | back to summary |
|---|---|
| private Service getService(ObjectName oname) throws Exception | |
| removeConnector | back to summary |
|---|---|
| public void removeConnector(String name) throws Exception Remove an existing Connector. | |
| removeContext | back to summary |
|---|---|
| public void removeContext(String contextName) throws Exception Remove an existing Context. | |
| removeHost | back to summary |
|---|---|
| public void removeHost(String name) throws Exception Remove an existing Host. | |
| removeLoader | back to summary |
|---|---|
| public void removeLoader(String name) throws Exception Remove an existing Loader. | |
| removeManager | back to summary |
|---|---|
| public void removeManager(String name) throws Exception Remove an existing Manager. | |
| removeRealm | back to summary |
|---|---|
| public void removeRealm(String name) throws Exception Remove an existing Realm. | |
| removeService | back to summary |
|---|---|
| public void removeService(String name) throws Exception Remove an existing Service. | |
| removeValve | back to summary |
|---|---|
| public void removeValve(String name) throws Exception Remove an existing Valve. | |
| setContainer | back to summary |
|---|---|
| public void setContainer(Object container) Set the container that this factory was created for.
| |