Class HttpdSharedTomcatManager<T extends TomcatCommon>
java.lang.Object
com.aoindustries.aoserv.daemon.httpd.tomcat.HttpdSharedTomcatManager<T>
- All Implemented Interfaces:
StopStartable
- Direct Known Subclasses:
VersionedSharedTomcatManager
public abstract class HttpdSharedTomcatManager<T extends TomcatCommon>
extends Object
implements StopStartable
Manages SharedTomcat configurations.
- Author:
- AO Industries, Inc.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic voiddoRebuild(List<File> deleteFileList, Set<SharedTomcat> sharedTomcatsNeedingRestarted, Set<PackageManager.PackageName> usedPackages) Responsible for control of all things in/wwwgroup.Gets the PID file.protected Set<PackageManager.PackageName> Gets any packages that must be installed for this site.booleanDetermines if the persistent processes for this site should be running.start()Starts all processes for this website if it is not running.stop()Stops all processes for this website if it is running.static voidstopStartAndRestart(Set<SharedTomcat> sharedTomcatsNeedingRestarted) Stops any daemons that should not be running.protected abstract booleanupgradeSharedTomcatDirectory(String optSlash, PosixFile siteDirectory) Upgrades the site directory contents for an auto-upgrade.
-
Field Details
-
Method Details
-
doRebuild
public static void doRebuild(List<File> deleteFileList, Set<SharedTomcat> sharedTomcatsNeedingRestarted, Set<PackageManager.PackageName> usedPackages) throws IOException, SQLException Responsible for control of all things in/wwwgroup.Only called by the already synchronized
HttpdManager.doRebuild()method.- Throws:
IOExceptionSQLException
-
stopStartAndRestart
public static void stopStartAndRestart(Set<SharedTomcat> sharedTomcatsNeedingRestarted) throws IOException, SQLException Stops any daemons that should not be running. Restarts any sites that need restarted. Starts any daemons that should be running.Makes calls with a one-minute time-out. Logs errors on calls as warnings, continues to next site.
Only called by the already synchronized
HttpdManager.doRebuild()method.- Throws:
IOExceptionSQLException
-
getRequiredPackages
Gets any packages that must be installed for this site.By default, uses the package required for Tomcat.
- Throws:
IOExceptionSQLException
-
getPidFile
Gets the PID file.- Throws:
IOExceptionSQLException
-
isStartable
Description copied from interface:StopStartableDetermines if the persistent processes for this site should be running.- Specified by:
isStartablein interfaceStopStartable- Throws:
IOExceptionSQLException
-
getStartStopScriptPath
- Throws:
IOExceptionSQLException
-
getStartStopScriptWorkingDirectory
- Throws:
IOExceptionSQLException
-
stop
Description copied from interface:StopStartableStops all processes for this website if it is running.- Specified by:
stopin interfaceStopStartable- Returns:
trueif actually stopped orfalseif was already stopped ornullwhen unknown- Throws:
IOExceptionSQLException
-
start
Description copied from interface:StopStartableStarts all processes for this website if it is not running.- Specified by:
startin interfaceStopStartable- Returns:
trueif actually started orfalseif was already started ornullwhen unknown- Throws:
IOExceptionSQLException
-
