Class VersionedSharedTomcatManager<T extends VersionedTomcatCommon>
java.lang.Object
com.aoindustries.aoserv.daemon.httpd.tomcat.HttpdSharedTomcatManager<T>
com.aoindustries.aoserv.daemon.httpd.tomcat.VersionedSharedTomcatManager<T>
- All Implemented Interfaces:
StopStartable
public abstract class VersionedSharedTomcatManager<T extends VersionedTomcatCommon>
extends HttpdSharedTomcatManager<T>
Manages shared aspects of SharedTomcat version 8.5 and above.
- Author:
- AO Industries, Inc.
-
Field Summary
Fields inherited from class com.aoindustries.aoserv.daemon.httpd.tomcat.HttpdSharedTomcatManager
sharedTomcat
-
Method Summary
Modifier and TypeMethodDescriptionprotected byte[]
generateReadmeTxt
(String optSlash, String apacheTomcatDir, PosixFile installDir) Generates the README.txt that is used to detect major version changes to rebuild the Tomcat installation.protected static byte[]
generateTomcatScript
(String optSlash, String apacheTomcatDir, PosixFile installDir) getInstallFiles
(String optSlash, PosixFile installDir) Gets the set of files that are installed during install and upgrade/downgrade.protected boolean
upgradeSharedTomcatDirectory
(String optSlash, PosixFile siteDirectory) Upgrades the site directory contents for an auto-upgrade.protected void
writeServerXml
(String autoWarning, ChainWriter out, SharedTomcat sharedTomcat, List<SharedTomcatSite> sites) Writes the server.xml file.Methods inherited from class com.aoindustries.aoserv.daemon.httpd.tomcat.HttpdSharedTomcatManager
doRebuild, getPidFile, getRequiredPackages, getStartStopScriptPath, getStartStopScriptWorkingDirectory, isStartable, start, stop, stopStartAndRestart
-
Method Details
-
generateTomcatScript
protected static byte[] generateTomcatScript(String optSlash, String apacheTomcatDir, PosixFile installDir) throws IOException - Throws:
IOException
-
generateReadmeTxt
protected byte[] generateReadmeTxt(String optSlash, String apacheTomcatDir, PosixFile installDir) throws IOException, SQLException Generates the README.txt that is used to detect major version changes to rebuild the Tomcat installation.- Throws:
IOException
SQLException
- See Also:
-
getInstallFiles
protected List<Install> getInstallFiles(String optSlash, PosixFile installDir) throws IOException, SQLException Gets the set of files that are installed during install and upgrade/downgrade. Each path is relative to CATALINA_HOME/CATALINA_BASE.- Throws:
IOException
SQLException
- See Also: