- java.lang.Object
-
- com.aoindustries.aoserv.client.AOServObject<K,T>
-
- com.aoindustries.aoserv.client.CachedObject<Integer,V>
-
- com.aoindustries.aoserv.client.CachedObjectIntegerKey<Bind>
-
- com.aoindustries.aoserv.client.net.Bind
-
- All Implemented Interfaces:
Streamable,StreamReadable,StreamWritable,Row,AOServReadable,AOServStreamable,AOServWritable,Removable,SingleTableObject<Integer,Bind>
public final class Bind extends CachedObjectIntegerKey<Bind> implements Removable
All listening network ports must be registered as aNetBind. TheNetBindinformation 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
Fields Modifier and Type Field Description static StringCOLUMN_IP_ADDRESS_namestatic StringCOLUMN_PORT_namestatic StringCOLUMN_SERVER_name-
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 Bind()
-
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
-
-
-
-
Field Detail
-
COLUMN_SERVER_name
public static final String COLUMN_SERVER_name
- See Also:
- Constant Field Values
-
COLUMN_IP_ADDRESS_name
public static final String COLUMN_IP_ADDRESS_name
- See Also:
- Constant Field Values
-
COLUMN_PORT_name
public static final String COLUMN_PORT_name
- See Also:
- Constant Field Values
-
-
Method Detail
-
getColumnImpl
protected Object getColumnImpl(int i)
- Specified by:
getColumnImplin classAOServObject<Integer,Bind>
-
getId
public int getId()
-
getPackage_name
public Account.Name getPackage_name()
-
getPackage
public Package getPackage() throws IOException, SQLException
- Throws:
IOExceptionSQLException
-
getServer_pkey
public int getServer_pkey()
-
getHost
public Host getHost() throws SQLException, IOException
- Throws:
SQLExceptionIOException
-
getIpAddress_id
public int getIpAddress_id()
-
getIpAddress
public IpAddress getIpAddress() throws SQLException, IOException
- Throws:
SQLExceptionIOException
-
getPort
public Port getPort()
-
getAppProtocol_protocol
public String getAppProtocol_protocol()
-
getAppProtocol
public AppProtocol getAppProtocol() throws SQLException, IOException
- Throws:
SQLExceptionIOException
-
isMonitoringEnabled
public boolean isMonitoringEnabled()
-
getMonitoringParameters
public URIParameters getMonitoringParameters()
Gets the unmodifiable map of parameters for this bind.
-
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,Bind>- 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,Bind>- Throws:
IOException
-
write
public void write(StreamableOutput out, AoservProtocol.Version protocolVersion) throws IOException
- Specified by:
writein interfaceAOServStreamable- Specified by:
writein interfaceAOServWritable- Specified by:
writein classAOServObject<Integer,Bind>- Throws:
IOException
-
getTableID
public Table.TableID getTableID()
- Specified by:
getTableIDin classAOServObject<Integer,Bind>
-
toStringImpl
public String toStringImpl() throws IOException, SQLException
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
public String getDetails() throws SQLException, IOException
- Throws:
SQLExceptionIOException
-
isDisabled
public boolean isDisabled() throws SQLException, IOExceptionA 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:
Disablable
-
getAOServerByDaemonNetBind
public Server getAOServerByDaemonNetBind() throws IOException, SQLException
- Throws:
IOExceptionSQLException
-
getAOServerByJilterNetBind
public Server getAOServerByJilterNetBind() throws IOException, SQLException
- Throws:
IOExceptionSQLException
-
getCyrusImapdBind
public CyrusImapdBind getCyrusImapdBind() throws IOException, SQLException
- Throws:
IOExceptionSQLException
-
getCyrusImapdServerBySieveNetBind
public CyrusImapdServer getCyrusImapdServerBySieveNetBind() throws IOException, SQLException
- Throws:
IOExceptionSQLException
-
getHttpdBind
public HttpdBind getHttpdBind() throws IOException, SQLException
- Throws:
IOExceptionSQLException
-
getHttpdJBossSiteByJNPPort
public Site getHttpdJBossSiteByJNPPort() throws IOException, SQLException
- Throws:
IOExceptionSQLException
-
getHttpdJBossSiteByWebserverPort
public Site getHttpdJBossSiteByWebserverPort() throws IOException, SQLException
- Throws:
IOExceptionSQLException
-
getHttpdJBossSiteByRMIPort
public Site getHttpdJBossSiteByRMIPort() throws IOException, SQLException
- Throws:
IOExceptionSQLException
-
getHttpdJBossSiteByHypersonicPort
public Site getHttpdJBossSiteByHypersonicPort() throws IOException, SQLException
- Throws:
IOExceptionSQLException
-
getHttpdJBossSiteByJMXPort
public Site getHttpdJBossSiteByJMXPort() throws IOException, SQLException
- Throws:
IOExceptionSQLException
-
getHttpdWorker
public Worker getHttpdWorker() throws IOException, SQLException
- Throws:
IOExceptionSQLException
-
getHttpdSharedTomcatByShutdownPort
public SharedTomcat getHttpdSharedTomcatByShutdownPort() throws SQLException, IOException
- Throws:
SQLExceptionIOException
-
getHttpdTomcatStdSiteByShutdownPort
public PrivateTomcatSite getHttpdTomcatStdSiteByShutdownPort() throws IOException, SQLException
- Throws:
IOExceptionSQLException
-
getSendmailBind
public SendmailBind getSendmailBind() throws IOException, SQLException
- Throws:
IOExceptionSQLException
-
getNetBindFirewalldZones
public List<BindFirewallZone> getNetBindFirewalldZones() throws IOException, SQLException
- Throws:
IOExceptionSQLException
-
getFirewalldZones
public List<FirewallZone> getFirewalldZones() throws IOException, SQLException
- Throws:
IOExceptionSQLException
-
getFirewalldZoneNames
public Set<FirewallZone.Name> getFirewalldZoneNames() throws IOException, SQLException
- Throws:
IOExceptionSQLException
-
getNetTcpRedirect
public TcpRedirect getNetTcpRedirect() throws IOException, SQLException
- Throws:
IOExceptionSQLException
-
getMySQLServer
public Server getMySQLServer() throws IOException, SQLException
- Throws:
IOExceptionSQLException
-
getPostgresServer
public Server getPostgresServer() throws IOException, SQLException
- Throws:
IOExceptionSQLException
-
getPrivateFTPServer
public PrivateServer getPrivateFTPServer() throws IOException, SQLException
- Throws:
IOExceptionSQLException
-
encodeParameters
public static String encodeParameters(URIParameters monitoringParameters)
Encodes the parameters. Will not returnnull.
-
decodeParameters
public static URIParameters decodeParameters(String monitoringParameters)
Decodes the parameters.
-
getCannotRemoveReasons
public List<CannotRemoveReason<?>> getCannotRemoveReasons() throws IOException, SQLException
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
public void remove() throws IOException, SQLExceptionDescription copied from interface:RemovableRemoves this object, and all dependant objects, from the system.- Specified by:
removein interfaceRemovable- Throws:
IOExceptionSQLException
-
setMonitoringEnabled
public void setMonitoringEnabled(boolean monitoring_enabled) throws IOException, SQLException- Throws:
IOExceptionSQLException
-
setFirewalldZones
public void setFirewalldZones(Set<FirewallZone.Name> firewalldZones) throws IOException, SQLException
- Throws:
IOExceptionSQLException
-
-