- java.lang.Object
-
- com.aoindustries.aoserv.client.AOServObject<K,T>
-
- com.aoindustries.aoserv.client.CachedObject<Integer,V>
-
- com.aoindustries.aoserv.client.CachedObjectIntegerKey<HttpdServer>
-
- com.aoindustries.aoserv.client.web.HttpdServer
-
- All Implemented Interfaces:
Streamable,StreamReadable,StreamWritable,Row,AOServReadable,AOServStreamable,AOServWritable,SingleTableObject<Integer,HttpdServer>
public final class HttpdServer extends CachedObjectIntegerKey<HttpdServer>
AnHttpdServerrepresents one running instance of the Apache web server. Each physical server may run any number of Apache web servers, and each of those may respond to multiple IP addresses and ports, and serve content for many sites.- Author:
- AO Industries, Inc.
- See Also:
HttpdBind,Site,VirtualHost
-
-
Field Summary
-
Fields inherited from class com.aoindustries.aoserv.client.CachedObjectIntegerKey
pkey
-
Fields inherited from class com.aoindustries.aoserv.client.CachedObject
table
-
Fields inherited from class com.aoindustries.aoserv.client.AOServObject
USE_ARRAY_OF_DOMAIN, USE_SQL_DATA, USE_SQL_DATA_WRITE
-
-
Constructor Summary
Constructors Constructor Description HttpdServer()
-
Method Summary
-
Methods inherited from class com.aoindustries.aoserv.client.CachedObjectIntegerKey
equals, getKey, getPkey, hashCode
-
Methods inherited from class com.aoindustries.aoserv.client.CachedObject
getTable, setTable
-
Methods inherited from class com.aoindustries.aoserv.client.AOServObject
compare, compare, compare, compare, compareIgnoreCaseConsistentWithEquals, compareTo, compareTo, compareTo, getAccountingCode, getColumn, getColumns, getColumns, getDomainLabel, getDomainLabels, getDomainName, getDto, getEmail, getGecos, getGroupId, getHashedKey, getHashedPassword, getHostname, getInetAddress, getLinuxID, getLinuxUserName, getMacAddress, getMySQLDatabaseName, getMySQLServerName, getMysqlUserName, getPort, getPostgresDatabaseName, getPostgresServerName, getPostgresUserId, getTableSchema, getTimeMillis, getTimeMillis, getUnixPath, getUserId, read, toString, write
-
-
-
-
Method Detail
-
canAddSites
public boolean canAddSites()
-
getColumnImpl
protected Object getColumnImpl(int i)
- Specified by:
getColumnImplin classAOServObject<Integer,HttpdServer>
-
getHttpdBinds
public List<HttpdBind> getHttpdBinds() throws IOException, SQLException
- Throws:
IOExceptionSQLException
-
getHttpdSites
public List<Site> getHttpdSites() throws IOException, SQLException
- Throws:
IOExceptionSQLException
-
getHttpdWorkers
public List<Worker> getHttpdWorkers() throws IOException, SQLException
- Throws:
IOExceptionSQLException
-
getLinuxServerAccount_pkey
public int getLinuxServerAccount_pkey()
-
getLinuxServerAccount
public UserServer getLinuxServerAccount() throws SQLException, IOException
- Throws:
SQLExceptionIOException
-
getLinuxServerGroup_pkey
public int getLinuxServerGroup_pkey()
-
getLinuxServerGroup
public GroupServer getLinuxServerGroup() throws SQLException, IOException
- Throws:
SQLExceptionIOException
-
getModPhpVersion
public SoftwareVersion getModPhpVersion() throws SQLException, IOException
- Throws:
SQLExceptionIOException
-
useSuexec
public boolean useSuexec()
-
getPackage
public Package getPackage() throws IOException, SQLException
- Throws:
IOExceptionSQLException
-
isShared
public boolean isShared()
-
useModPERL
public boolean useModPERL()
-
getTimeOut
public int getTimeOut()
Gets the timeout value in seconds.
-
getMaxConcurrency
public int getMaxConcurrency()
Gets the maximum concurrency of this server (number of children processes/threads).
-
getMonitoringConcurrencyLow
public int getMonitoringConcurrencyLow()
Gets the concurrency that is considered a low-priority alert or-1if no alert allowed at this level.
-
getMonitoringConcurrencyMedium
public int getMonitoringConcurrencyMedium()
Gets the concurrency that is considered a medium-priority alert or-1if no alert allowed at this level.
-
getMonitoringConcurrencyHigh
public int getMonitoringConcurrencyHigh()
Gets the concurrency that is considered a high-priority alert or-1if no alert allowed at this level.
-
getMonitoringConcurrencyCritical
public int getMonitoringConcurrencyCritical()
Gets the concurrency that is considered a critical-priority alert or-1if no alert allowed at this level. This is the level that will alert people 24x7.
-
getName
public String getName()
Gets the name of the httpd server instance. The default instance has a null name. Additional instances will have non-empty names. The name is unique per server, including only one default instance.- See Also:
getSystemdEscapedName()
-
getSystemdEscapedName
public String getSystemdEscapedName()
Gets the systemd-encoded name of the httpd server instance. The default instance has a null name. Additional instances will have non-empty names. The name is unique per server, including only one default instance.- See Also:
getName(),SystemdUtil.encode(java.lang.String)
-
getLinuxServer
public Server getLinuxServer() throws SQLException, IOException
- Throws:
SQLExceptionIOException
-
getModAccessCompat
public Boolean getModAccessCompat()
-
getModActions
public Boolean getModActions()
-
getModAlias
public Boolean getModAlias()
-
getModAuthBasic
public Boolean getModAuthBasic()
-
getModAuthnCore
public Boolean getModAuthnCore()
-
getModAuthnFile
public Boolean getModAuthnFile()
-
getModAuthzCore
public Boolean getModAuthzCore()
-
getModAuthzGroupfile
public Boolean getModAuthzGroupfile()
-
getModAuthzHost
public Boolean getModAuthzHost()
-
getModAuthzUser
public Boolean getModAuthzUser()
-
getModAutoindex
public Boolean getModAutoindex()
-
getModDeflate
public Boolean getModDeflate()
-
getModDir
public Boolean getModDir()
-
getModFilter
public Boolean getModFilter()
-
getModHeaders
public Boolean getModHeaders()
-
getModInclude
public Boolean getModInclude()
-
getModJk
public Boolean getModJk()
-
getModLogConfig
public Boolean getModLogConfig()
-
getModMime
public Boolean getModMime()
-
getModMimeMagic
public Boolean getModMimeMagic()
-
getModNegotiation
public Boolean getModNegotiation()
-
getModProxy
public Boolean getModProxy()
-
getModProxyHttp
public Boolean getModProxyHttp()
-
getModReqtimeout
public Boolean getModReqtimeout()
-
getModRewrite
public Boolean getModRewrite()
-
getModSetenvif
public Boolean getModSetenvif()
-
getModSocacheShmcb
public Boolean getModSocacheShmcb()
-
getModSsl
public Boolean getModSsl()
-
getModStatus
public Boolean getModStatus()
-
getModWsgi
public Boolean getModWsgi()
-
getTableID
public Table.TableID getTableID()
- Specified by:
getTableIDin classAOServObject<Integer,HttpdServer>
-
init
public void init(ResultSet result) throws SQLException
Description copied from class:AOServObjectInitializes this object from the raw database contents.- Specified by:
initin classAOServObject<Integer,HttpdServer>- Parameters:
result- theResultSetcontaining the row to copy into this object- Throws:
SQLException
-
read
public void read(StreamableInput in, AoservProtocol.Version protocolVersion) throws IOException
- Specified by:
readin interfaceAOServReadable- Specified by:
readin interfaceAOServStreamable- Specified by:
readin classAOServObject<Integer,HttpdServer>- Throws:
IOException
-
toStringImpl
public String toStringImpl()
Description copied from class:AOServObjectAOServObject.toString()implementation that is allowed to throw exceptions.Implementation Note:
This default implementation callsAOServObject.toString()on the key (fromAOServObject.getKey()). When the key isnull, uses the default implementation fromObject.toString().- Overrides:
toStringImplin classCachedObjectIntegerKey<HttpdServer>
-
write
public void write(StreamableOutput out, AoservProtocol.Version protocolVersion) throws IOException
- Specified by:
writein interfaceAOServStreamable- Specified by:
writein interfaceAOServWritable- Specified by:
writein classAOServObject<Integer,HttpdServer>- Throws:
IOException
-
getConcurrency
public int getConcurrency() throws IOException, SQLExceptionGets the current concurrency of this HTTP server.- Throws:
IOExceptionSQLException
-
-