public class TomcatContainer extends ServerContainer
ServerContainer
to form a basic container which sets up and configures a Tomcat
container.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_TOMCAT_CONFIG_XML_DIR |
static java.lang.String |
DEFAULT_TOMCAT_CONTEXT_XML_REPLACEMENT_NAME |
static java.lang.String |
DEFAULT_TOMCAT_XML_REPLACEMENT_DIR |
cacheProperties, cacheXMLFile, DEFAULT_CONF_DIR, DEFAULT_CONFIG_DIR, DEFAULT_LOG_DIR, DEFAULT_LOGGING_LEVEL, description, gemfireLogFile, logDir, logger, loggingLevel, systemProperties
Constructor and Description |
---|
TomcatContainer(TomcatInstall install,
java.io.File containerConfigHome,
java.lang.String containerDescriptors)
Setup the Tomcat container
Sets up a configuration for the container using the specified installation and configuration
home.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAJPPort()
Get the AJP port of this container using
ServerContainer.getPort() with the argument
TomcatPropertySet.AJP_PORT |
void |
writeSettings()
Implements the
ServerContainer.writeSettings() function in order to write the proper
settings to the container
Method uses the ContainerInstall.editXMLFile(String, String, String, String, HashMap)
to edit the contextXMLFile with the ServerContainer.cacheProperties . |
cleanUp, deployWar, dumpLogs, generateUniqueContainerDescription, getCacheProperty, getConfiguration, getContainer, getInstall, getLoggingLevel, getPort, getPort, getRMIPort, getState, getSystemProperty, getWarFile, setCacheProperty, setCacheXMLFile, setLocator, setLoggingLevel, setSystemProperty, setWarFile, start, stop, toString
public static final java.lang.String DEFAULT_TOMCAT_CONFIG_XML_DIR
public static final java.lang.String DEFAULT_TOMCAT_XML_REPLACEMENT_DIR
public static final java.lang.String DEFAULT_TOMCAT_CONTEXT_XML_REPLACEMENT_NAME
public TomcatContainer(TomcatInstall install, java.io.File containerConfigHome, java.lang.String containerDescriptors) throws java.io.IOException
java.io.IOException
public java.lang.String getAJPPort()
ServerContainer.getPort()
with the argument
TomcatPropertySet.AJP_PORT
public void writeSettings() throws java.io.IOException
ServerContainer.writeSettings()
function in order to write the proper
settings to the container
Method uses the ContainerInstall.editXMLFile(String, String, String, String, HashMap)
to edit the contextXMLFile
with the ServerContainer.cacheProperties
. Method uses
writePropertiesToConfig(StandaloneLocalConfiguration, String, String, HashMap)
to
write the ServerContainer.systemProperties
to the serverXMLFile
using the container's
configuration (obtained from ServerContainer.getConfiguration()
).writeSettings
in class ServerContainer
java.io.IOException