java.lang.Object
com.aoindustries.aoserv.client.AoservObject<Integer,HttpdServer>
com.aoindustries.aoserv.client.CachedObject<Integer,HttpdServer>
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>
An
HttpdServer
represents 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:
-
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
ConstructorDescriptionDeprecated.Only required for implementation, do not use directly. -
Method Summary
Modifier and TypeMethodDescriptionboolean
protected Object
getColumnImpl
(int i) int
Gets the current concurrency of this HTTP server.int
int
int
Gets the maximum concurrency of this server (number of children processes/threads).getModJk()
int
Gets the concurrency that is considered a critical-priority alert or-1
if no alert allowed at this level.int
Gets the concurrency that is considered a high-priority alert or-1
if no alert allowed at this level.int
Gets the concurrency that is considered a low-priority alert or-1
if no alert allowed at this level.int
Gets the concurrency that is considered a medium-priority alert or-1
if no alert allowed at this level.getName()
Gets the name of the httpd server instance.Gets the systemd-encoded name of the httpd server instance.int
Gets the timeout value in seconds.void
Initializes this object from the raw database contents.boolean
isShared()
void
read
(StreamableInput in, AoservProtocol.Version protocolVersion) AoservObject.toString()
implementation that is allowed to throw exceptions.boolean
boolean
void
write
(StreamableOutput out, AoservProtocol.Version protocolVersion) 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
-
Constructor Details
-
HttpdServer
Deprecated.Only required for implementation, do not use directly.- See Also:
-
-
Method Details
-
canAddSites
public boolean canAddSites() -
getColumnImpl
- Specified by:
getColumnImpl
in classAoservObject<Integer,
HttpdServer>
-
getHttpdBinds
- Throws:
IOException
SQLException
-
getHttpdSites
- Throws:
IOException
SQLException
-
getHttpdWorkers
- Throws:
IOException
SQLException
-
getLinuxServerAccount_pkey
public int getLinuxServerAccount_pkey() -
getLinuxServerAccount
- Throws:
SQLException
IOException
-
getLinuxServerGroup_pkey
public int getLinuxServerGroup_pkey() -
getLinuxServerGroup
- Throws:
SQLException
IOException
-
getModPhpVersion
- Throws:
SQLException
IOException
-
useSuexec
public boolean useSuexec() -
getPackage
- Throws:
IOException
SQLException
-
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-1
if no alert allowed at this level. -
getMonitoringConcurrencyMedium
public int getMonitoringConcurrencyMedium()Gets the concurrency that is considered a medium-priority alert or-1
if no alert allowed at this level. -
getMonitoringConcurrencyHigh
public int getMonitoringConcurrencyHigh()Gets the concurrency that is considered a high-priority alert or-1
if no alert allowed at this level. -
getMonitoringConcurrencyCritical
public int getMonitoringConcurrencyCritical()Gets the concurrency that is considered a critical-priority alert or-1
if no alert allowed at this level. This is the level that will alert people 24x7. -
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
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:
-
getLinuxServer
- Throws:
SQLException
IOException
-
getModAccessCompat
-
getModActions
-
getModAlias
-
getModAuthBasic
-
getModAuthnCore
-
getModAuthnFile
-
getModAuthzCore
-
getModAuthzGroupfile
-
getModAuthzHost
-
getModAuthzUser
-
getModAutoindex
-
getModDeflate
-
getModDir
-
getModFilter
-
getModHeaders
-
getModInclude
-
getModJk
-
getModLogConfig
-
getModMime
-
getModMimeMagic
-
getModNegotiation
-
getModProxy
-
getModProxyHttp
-
getModReqtimeout
-
getModRewrite
-
getModSetenvif
-
getModSocacheShmcb
-
getModSsl
-
getModStatus
-
getModWsgi
-
getTableId
- Specified by:
getTableId
in classAoservObject<Integer,
HttpdServer>
-
init
Description copied from class:AoservObject
Initializes this object from the raw database contents.- Specified by:
init
in classAoservObject<Integer,
HttpdServer> - Parameters:
result
- theResultSet
containing the row to copy into this object- Throws:
SQLException
-
read
- Specified by:
read
in interfaceAoservReadable
- Specified by:
read
in interfaceAoservStreamable
- Specified by:
read
in classAoservObject<Integer,
HttpdServer> - Throws:
IOException
-
toStringImpl
Description copied from class:AoservObject
AoservObject.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:
toStringImpl
in classCachedObjectIntegerKey<HttpdServer>
-
write
- Specified by:
write
in interfaceAoservStreamable
- Specified by:
write
in interfaceAoservWritable
- Specified by:
write
in classAoservObject<Integer,
HttpdServer> - Throws:
IOException
-
getConcurrency
Gets the current concurrency of this HTTP server.- Throws:
IOException
SQLException
-