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
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 -
Method Summary
Modifier and TypeMethodDescriptionstatic URIParameters
decodeParameters
(String monitoringParameters) Decodes the parameters.static String
encodeParameters
(URIParameters monitoringParameters) Encodes the parameters.Lists the reasons an object may not be removed.protected Object
getColumnImpl
(int i) getHost()
int
getId()
int
Gets the unmodifiable map of parameters for this bind.getPort()
int
void
Initializes this object from the raw database contents.boolean
A net_bind is disabled when all Disablable uses of it are disabled.boolean
void
read
(StreamableInput in, AoservProtocol.Version protocolVersion) void
remove()
Removes this object, and all dependant objects, from the system.void
setFirewalldZones
(Set<FirewallZone.Name> firewalldZones) void
setMonitoringEnabled
(boolean monitoringEnabled) AoservObject.toString()
implementation that is allowed to throw exceptions.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
-
Field Details
-
COLUMN_SERVER_name
- See Also:
-
COLUMN_IP_ADDRESS_name
- See Also:
-
COLUMN_PORT_name
- See Also:
-
-
Constructor Details
-
Bind
Deprecated.Only required for implementation, do not use directly.- See Also:
-
-
Method Details
-
getColumnImpl
- Specified by:
getColumnImpl
in classAoservObject<Integer,
Bind>
-
getId
public int getId() -
getPackage_name
-
getPackage
- Throws:
IOException
SQLException
-
getServer_pkey
public int getServer_pkey() -
getHost
- Throws:
SQLException
IOException
-
getIpAddress_id
public int getIpAddress_id() -
getIpAddress
- Throws:
SQLException
IOException
-
getPort
-
getAppProtocol_protocol
-
getAppProtocol
- Throws:
SQLException
IOException
-
isMonitoringEnabled
public boolean isMonitoringEnabled() -
getMonitoringParameters
Gets the unmodifiable map of parameters for this bind. -
init
Description copied from class:AoservObject
Initializes this object from the raw database contents.- Specified by:
init
in classAoservObject<Integer,
Bind> - 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,
Bind> - Throws:
IOException
-
write
- Specified by:
write
in interfaceAoservStreamable
- Specified by:
write
in interfaceAoservWritable
- Specified by:
write
in classAoservObject<Integer,
Bind> - Throws:
IOException
-
getTableId
- Specified by:
getTableId
in classAoservObject<Integer,
Bind>
-
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<Bind>
- Throws:
IOException
SQLException
-
getDetails
- Throws:
SQLException
IOException
-
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:
SQLException
IOException
- See Also:
-
getAoserverByDaemonNetBind
- Throws:
IOException
SQLException
-
getAoserverByJilterNetBind
- Throws:
IOException
SQLException
-
getCyrusImapdBind
- Throws:
IOException
SQLException
-
getCyrusImapdServerBySieveNetBind
- Throws:
IOException
SQLException
-
getHttpdBind
- Throws:
IOException
SQLException
-
getHttpdJbossSiteByJnpPort
- Throws:
IOException
SQLException
-
getHttpdJbossSiteByWebserverPort
- Throws:
IOException
SQLException
-
getHttpdJbossSiteByRmiPort
- Throws:
IOException
SQLException
-
getHttpdJbossSiteByHypersonicPort
- Throws:
IOException
SQLException
-
getHttpdJbossSiteByJmxPort
- Throws:
IOException
SQLException
-
getHttpdWorker
- Throws:
IOException
SQLException
-
getHttpdTomcatStdSiteByShutdownPort
- Throws:
IOException
SQLException
-
getSendmailBind
- Throws:
IOException
SQLException
-
getNetBindFirewalldZones
- Throws:
IOException
SQLException
-
getFirewalldZones
- Throws:
IOException
SQLException
-
getFirewalldZoneNames
- Throws:
IOException
SQLException
-
getNetTcpRedirect
- Throws:
IOException
SQLException
-
getMysqlServer
- Throws:
IOException
SQLException
-
getPostgresServer
- Throws:
IOException
SQLException
-
getPrivateFtpServer
- Throws:
IOException
SQLException
-
encodeParameters
Encodes the parameters. Will not returnnull
. -
decodeParameters
Decodes the parameters. -
getCannotRemoveReasons
Description copied from interface:Removable
Lists the reasons an object may not be removed.- Specified by:
getCannotRemoveReasons
in interfaceRemovable
- Returns:
- an empty
List<CannotRemoveReason>
if this object may be removed, or a list of descriptions - Throws:
IOException
SQLException
-
remove
Description copied from interface:Removable
Removes this object, and all dependant objects, from the system.- Specified by:
remove
in interfaceRemovable
- Throws:
IOException
SQLException
-
setMonitoringEnabled
- Throws:
IOException
SQLException
-
setFirewalldZones
public void setFirewalldZones(Set<FirewallZone.Name> firewalldZones) throws IOException, SQLException - Throws:
IOException
SQLException
-