Class HttpdJBossSiteManager<T extends TomcatCommon>
java.lang.Object
com.aoindustries.aoserv.daemon.httpd.HttpdSiteManager
com.aoindustries.aoserv.daemon.httpd.tomcat.HttpdTomcatSiteManager<T>
com.aoindustries.aoserv.daemon.httpd.jboss.HttpdJBossSiteManager<T>
- All Implemented Interfaces:
StopStartable
public abstract class HttpdJBossSiteManager<T extends TomcatCommon>
extends HttpdTomcatSiteManager<T>
Manages Site configurations.
- Author:
- AO Industries, Inc.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.aoindustries.aoserv.daemon.httpd.HttpdSiteManager
HttpdSiteManager.JkSetting, HttpdSiteManager.Location, HttpdSiteManager.PermanentRewriteRule, HttpdSiteManager.WebAppSettings
-
Field Summary
Fields inherited from class com.aoindustries.aoserv.daemon.httpd.tomcat.HttpdTomcatSiteManager
tomcatSite
Fields inherited from class com.aoindustries.aoserv.daemon.httpd.HttpdSiteManager
httpdSite
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
flagNeedsRestart
(Set<Site> sitesNeedingRestarted, Set<SharedTomcat> sharedTomcatsNeedingRestarted) Flags that the site needs restarted.static HttpdJBossSiteManager
<? extends TomcatCommon> getInstance
(Site jbossSite) Gets the specific manager for one type of web site.Gets the PID file for the wrapper script.Gets the path to the start/stop script.Gets the username to run the start/stop script as.Gets the working directory to run the start/stop script in.boolean
Determines if the persistent processes for this site should be running.Methods inherited from class com.aoindustries.aoserv.daemon.httpd.tomcat.HttpdTomcatSiteManager
buildSiteDirectory, buildSiteDirectoryContents, enableDisable, generateReadmeTxt, getHttpdWorker, getInstance, getJkSettings, getRejectedLocations, getRequiredPackages, getTomcatCommon, getWebapps, rebuildConfigFiles, start, stop, upgradeSiteDirectoryContents
Methods inherited from class com.aoindustries.aoserv.daemon.httpd.HttpdSiteManager
blockAllTraceAndTrackRequests, configureFtpDirectory, createCgiPhpScript, createTestIndex, enableAnonymousFtp, enableCgi, enablePhp, getApacheUid, getAutoWarningXml, getAutoWarningXmlOld, getInstance, getPermanentRewriteRules, startHttpdSite, stopAndDisableDaemons, stopHttpdSite
-
Field Details
-
jbossSite
-
-
Method Details
-
getInstance
public static HttpdJBossSiteManager<? extends TomcatCommon> getInstance(Site jbossSite) throws IOException, SQLException Gets the specific manager for one type of web site.- Throws:
IOException
SQLException
-
getPidFile
Description copied from class:HttpdTomcatSiteManager
Gets the PID file for the wrapper script. When this file exists the script is assumed to be running. This PID file may be shared between multiple sites in the case of a shared Tomcat. Also, it is possible that the JVM may be disabled while the site overall is not.- Specified by:
getPidFile
in classHttpdTomcatSiteManager<T extends TomcatCommon>
- Returns:
- the .pid file or
null
if should not be running - Throws:
IOException
SQLException
-
isStartable
Description copied from interface:StopStartable
Determines if the persistent processes for this site should be running.- Throws:
IOException
SQLException
-
getStartStopScriptPath
Description copied from class:HttpdTomcatSiteManager
Gets the path to the start/stop script.- Specified by:
getStartStopScriptPath
in classHttpdTomcatSiteManager<T extends TomcatCommon>
- Throws:
IOException
SQLException
-
getStartStopScriptUsername
Description copied from class:HttpdTomcatSiteManager
Gets the username to run the start/stop script as.- Specified by:
getStartStopScriptUsername
in classHttpdTomcatSiteManager<T extends TomcatCommon>
- Throws:
IOException
SQLException
-
getStartStopScriptWorkingDirectory
Description copied from class:HttpdTomcatSiteManager
Gets the working directory to run the start/stop script in.- Specified by:
getStartStopScriptWorkingDirectory
in classHttpdTomcatSiteManager<T extends TomcatCommon>
- Throws:
IOException
SQLException
-
flagNeedsRestart
protected void flagNeedsRestart(Set<Site> sitesNeedingRestarted, Set<SharedTomcat> sharedTomcatsNeedingRestarted) Description copied from class:HttpdTomcatSiteManager
Flags that the site needs restarted.- Specified by:
flagNeedsRestart
in classHttpdTomcatSiteManager<T extends TomcatCommon>
-