java.lang.Object
- All Implemented Interfaces:
Streamable,StreamReadable,StreamWritable,Row,AoservReadable,AoservStreamable,AoservWritable,Removable,SingleTableObject<Integer,Bind>
All listening network ports must be registered as a
NetBind. The
NetBind information is also used for internel server and external
network monitoring. If either a network port is not listening that should,
or a network port is listening that should not, monitoring personnel are notified
to remove the discrepancy.- Author:
- AO Industries, Inc.
-
Field Summary
FieldsFields inherited from class com.aoindustries.aoserv.client.CachedObjectIntegerKey
pkeyFields inherited from class com.aoindustries.aoserv.client.CachedObject
tableFields inherited from class com.aoindustries.aoserv.client.AoservObject
USE_ARRAY_OF_DOMAIN, USE_SQL_DATA, USE_SQL_DATA_WRITE -
Constructor Summary
ConstructorsConstructorDescriptionBind()Deprecated, for removal: This API element is subject to removal in a future version.Only required for implementation, do not use directly. -
Method Summary
Modifier and TypeMethodDescriptionstatic URIParametersdecodeParameters(String monitoringParameters) Decodes the parameters.static StringencodeParameters(URIParameters monitoringParameters) Encodes the parameters.Lists the reasons an object may not be removed.protected ObjectgetColumnImpl(int i) getHost()intgetId()intGets the unmodifiable map of parameters for this bind.getPort()intvoidInitializes this object from the raw database contents.booleanA net_bind is disabled when all Disablable uses of it are disabled.booleanvoidread(StreamableInput in, AoservProtocol.Version protocolVersion) voidremove()Removes this object, and all dependant objects, from the system.voidsetFirewalldZones(Set<FirewallZone.Name> firewalldZones) voidsetMonitoringEnabled(boolean monitoringEnabled) AoservObject.toString()implementation that is allowed to throw exceptions.voidwrite(StreamableOutput out, AoservProtocol.Version protocolVersion) Methods inherited from class com.aoindustries.aoserv.client.CachedObjectIntegerKey
equals, getKey, getPkey, hashCodeMethods inherited from class com.aoindustries.aoserv.client.CachedObject
getTable, setTableMethods 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
-
Field Details
-
COLUMN_SERVER_name
- See Also:
-
COLUMN_IP_ADDRESS_name
- See Also:
-
COLUMN_PORT_name
- See Also:
-
-
Constructor Details
-
Bind
Deprecated, for removal: This API element is subject to removal in a future version.Only required for implementation, do not use directly.- See Also:
-
-
Method Details
-
getColumnImpl
- Specified by:
getColumnImplin classAoservObject<Integer,Bind>
-
getId
public int getId() -
getPackage_name
-
getPackage
- Throws:
IOExceptionSQLException
-
getServer_pkey
public int getServer_pkey() -
getHost
- Throws:
SQLExceptionIOException
-
getIpAddress_id
public int getIpAddress_id() -
getIpAddress
- Throws:
SQLExceptionIOException
-
getPort
-
getAppProtocol_protocol
-
getAppProtocol
- Throws:
SQLExceptionIOException
-
isMonitoringEnabled
public boolean isMonitoringEnabled() -
getMonitoringParameters
Gets the unmodifiable map of parameters for this bind. -
init
Description copied from class:AoservObjectInitializes this object from the raw database contents.- Specified by:
initin classAoservObject<Integer,Bind> - Parameters:
result- theResultSetcontaining the row to copy into this object- Throws:
SQLException
-
read
- Specified by:
readin interfaceAoservReadable- Specified by:
readin interfaceAoservStreamable- Specified by:
readin classAoservObject<Integer,Bind> - Throws:
IOException
-
write
- Specified by:
writein interfaceAoservStreamable- Specified by:
writein interfaceAoservWritable- Specified by:
writein classAoservObject<Integer,Bind> - Throws:
IOException
-
getTableId
- Specified by:
getTableIdin classAoservObject<Integer,Bind>
-
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<Bind>- Throws:
IOExceptionSQLException
-
getDetails
- Throws:
SQLExceptionIOException
-
isDisabled
A net_bind is disabled when all Disablable uses of it are disabled. If there are no Disablable uses, it is considered enabled.- Throws:
SQLExceptionIOException- See Also:
-
getAoserverByDaemonNetBind
- Throws:
IOExceptionSQLException
-
getAoserverByJilterNetBind
- Throws:
IOExceptionSQLException
-
getCyrusImapdBind
- Throws:
IOExceptionSQLException
-
getCyrusImapdServerBySieveNetBind
- Throws:
IOExceptionSQLException
-
getHttpdBind
- Throws:
IOExceptionSQLException
-
getHttpdJbossSiteByJnpPort
- Throws:
IOExceptionSQLException
-
getHttpdJbossSiteByWebserverPort
- Throws:
IOExceptionSQLException
-
getHttpdJbossSiteByRmiPort
- Throws:
IOExceptionSQLException
-
getHttpdJbossSiteByHypersonicPort
- Throws:
IOExceptionSQLException
-
getHttpdJbossSiteByJmxPort
- Throws:
IOExceptionSQLException
-
getHttpdWorker
- Throws:
IOExceptionSQLException
-
getHttpdTomcatStdSiteByShutdownPort
- Throws:
IOExceptionSQLException
-
getSendmailBind
- Throws:
IOExceptionSQLException
-
getNetBindFirewalldZones
- Throws:
IOExceptionSQLException
-
getFirewalldZones
- Throws:
IOExceptionSQLException
-
getFirewalldZoneNames
- Throws:
IOExceptionSQLException
-
getNetTcpRedirect
- Throws:
IOExceptionSQLException
-
getMysqlServer
- Throws:
IOExceptionSQLException
-
getPostgresServer
- Throws:
IOExceptionSQLException
-
getPrivateFtpServer
- Throws:
IOExceptionSQLException
-
encodeParameters
Encodes the parameters. Will not returnnull. -
decodeParameters
Decodes the parameters. -
getCannotRemoveReasons
Description copied from interface:RemovableLists the reasons an object may not be removed.- Specified by:
getCannotRemoveReasonsin interfaceRemovable- Returns:
- an empty
List<CannotRemoveReason>if this object may be removed, or a list of descriptions - Throws:
IOExceptionSQLException
-
remove
Description copied from interface:RemovableRemoves this object, and all dependant objects, from the system.- Specified by:
removein interfaceRemovable- Throws:
IOExceptionSQLException
-
setMonitoringEnabled
- Throws:
IOExceptionSQLException
-
setFirewalldZones
public void setFirewalldZones(Set<FirewallZone.Name> firewalldZones) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
