public class TomcatInstall extends ContainerInstall
| Modifier and Type | Class and Description |
|---|---|
static class |
TomcatInstall.TomcatVersion
Version of tomcat that this class will install
Includes the download URL for the each version, the version number associated with each
version, and other properties or XML attributes needed to setup tomcat containers within Cargo
|
ContainerInstall.ConnectionType| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
GEODE_BUILD_HOME_LIB |
DEFAULT_INSTALL_DIR, DEFAULT_MODULE_EXTRACTION_DIR, DEFAULT_MODULE_LOCATION, GEODE_BUILD_HOME, logger, TMP_DIR| Constructor and Description |
|---|
TomcatInstall(TomcatInstall.TomcatVersion version,
ContainerInstall.ConnectionType connType,
java.lang.String installDir) |
TomcatInstall(TomcatInstall.TomcatVersion version,
ContainerInstall.ConnectionType connType,
java.lang.String installDir,
java.lang.String modulesJarLocation,
java.lang.String extraJarsPath)
Download and setup an installation tomcat using the
ContainerInstall constructor and
some extra functions this class provides
Specifically, this function uses copyTomcatGeodeReqFiles(String, String) to install
geode session into Tomcat, setupDefaultSettings() to modify the context and server XML
files within the installation's 'conf' folder, and updateProperties() to set the jar
skipping properties needed to speedup container startup. |
TomcatInstall(TomcatInstall.TomcatVersion version,
java.lang.String installDir) |
| Modifier and Type | Method and Description |
|---|---|
TomcatContainer |
generateContainer(java.io.File containerConfigHome,
java.lang.String containerDescriptors)
Implementation of
ContainerInstall.generateContainer(File, String), which generates a
Tomcat specific container
Creates a TomcatContainer instance off of this installation. |
java.lang.String |
getContextSessionManagerClass()
Implements
ContainerInstall.getContextSessionManagerClass()
Gets the TomcatDeltaSessionManager class associated with this version. |
java.io.File |
getDefaultContextXMLFile()
Location of the context XML file in the installation's 'conf' directory
|
java.io.File |
getDefaultServerXMLFile()
Location of the server XML file in the installation's 'conf' directory
|
java.lang.String |
getInstallDescription()
A human readable description of the installation
|
java.lang.String |
getInstallId()
The cargo specific installation id needed to setup a cargo container
Based on the installation's
version. |
java.lang.String |
getServerLifeCycleListenerClass()
Get the server life cycle class that should be used
Generates the class based on whether the installation's connection type
ContainerInstall.connType is client server or peer to peer. |
void |
setupDefaultSettings()
Modifies the context and server XML files in the installation's 'conf' directory so that they
contain the session manager class (
getContextSessionManagerClass()) and life cycle
listener class (getServerLifeCycleListenerClass()) respectively |
clearPreviousInstall, editPropertyFile, editXMLFile, editXMLFile, editXMLFile, editXMLFile, editXMLFile, findAndExtractModule, findSessionTestingWar, generateContainer, generateContainer, getCacheXMLFile, getConnectionType, getDefaultLocatorAddress, getDefaultLocatorPort, getHome, getModulePath, getWarFilePath, isClientServer, setDefaultLocatorpublic TomcatInstall(TomcatInstall.TomcatVersion version, java.lang.String installDir) throws java.lang.Exception
java.lang.Exceptionpublic TomcatInstall(TomcatInstall.TomcatVersion version, ContainerInstall.ConnectionType connType, java.lang.String installDir) throws java.lang.Exception
java.lang.Exceptionpublic TomcatInstall(TomcatInstall.TomcatVersion version, ContainerInstall.ConnectionType connType, java.lang.String installDir, java.lang.String modulesJarLocation, java.lang.String extraJarsPath) throws java.lang.Exception
ContainerInstall constructor and
some extra functions this class provides
Specifically, this function uses copyTomcatGeodeReqFiles(String, String) to install
geode session into Tomcat, setupDefaultSettings() to modify the context and server XML
files within the installation's 'conf' folder, and updateProperties() to set the jar
skipping properties needed to speedup container startup.java.lang.Exceptionpublic void setupDefaultSettings()
getContextSessionManagerClass()) and life cycle
listener class (getServerLifeCycleListenerClass()) respectivelypublic java.lang.String getServerLifeCycleListenerClass()
ContainerInstall.connType is client server or peer to peer.public java.io.File getDefaultContextXMLFile()
public java.io.File getDefaultServerXMLFile()
public java.lang.String getContextSessionManagerClass()
ContainerInstall.getContextSessionManagerClass()
Gets the TomcatDeltaSessionManager class associated with this version. Use's the
version's toInteger function to do so.getContextSessionManagerClass in class ContainerInstallpublic TomcatContainer generateContainer(java.io.File containerConfigHome, java.lang.String containerDescriptors) throws java.io.IOException
ContainerInstall.generateContainer(File, String), which generates a
Tomcat specific container
Creates a TomcatContainer instance off of this installation.generateContainer in class ContainerInstallcontainerDescriptors - Additional descriptors used to identify a containerjava.io.IOExceptionpublic java.lang.String getInstallId()
version.getInstallId in class ContainerInstallpublic java.lang.String getInstallDescription()
ContainerInstallgetInstallDescription in class ContainerInstallContainerInstall.getInstallDescription()