java.lang.Object
com.aoindustries.aoserv.master.IpAddressHandler
The
IpAddressHandler handles all the accesses to the net.IpAddress table.- Author:
- AO Industries, Inc.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidcheckAccessIpAddress(DatabaseConnection conn, RequestSource source, String action, int ipAddressId) static Account.NamegetAccountForIpAddress(DatabaseConnection conn, int ipAddress) static intgetHostForIpAddress(DatabaseConnection conn, int ipAddress) static InetAddressgetInetAddressForIpAddress(DatabaseConnection conn, int ipAddress) static intgetLoopbackIpAddress(DatabaseConnection conn, int host) static Account.NamegetPackageForIpAddress(DatabaseConnection conn, int ipAddress) static intgetSharedHttpdIpAddress(DatabaseConnection conn, int linuxServer) static DomainNamegetUnassignedHostname(DatabaseConnection conn, int ipAddress) static intstatic booleanisDhcpAddress(DatabaseConnection conn, int ipAddress) static voidmoveIpAddress(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int ipAddress, int toHost) static voidreleaseIpAddress(DatabaseConnection conn, InvalidateList invalidateList, int ipAddress) static voidsetDhcpAddressDestination(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int dhcpAddress, InetAddress inetAddress) Sets the IP address for a DHCP-enabled IP address.static voidsetIpAddressHostname(DatabaseConnection conn, InvalidateList invalidateList, int ipAddress, DomainName hostname) Sets the hostname for an IP address.static voidsetIpAddressHostname(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int ipAddress, DomainName hostname) Sets the hostname for an IP address.static voidsetIpAddressMonitoringEnabled(DatabaseConnection conn, InvalidateList invalidateList, int ipAddress, boolean monitoringEnabled) static voidsetIpAddressMonitoringEnabled(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int ipAddress, boolean monitoringEnabled) static voidsetIpAddressPackage(DatabaseConnection conn, InvalidateList invalidateList, int ipAddress, Account.Name newPackage) Sets the Package owner of an net.IpAddress.static voidsetIpAddressPackage(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int ipAddress, Account.Name newPackage) Sets the Package owner of an net.IpAddress.
-
Method Details
-
checkAccessIpAddress
public static void checkAccessIpAddress(DatabaseConnection conn, RequestSource source, String action, int ipAddressId) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
isDhcpAddress
public static boolean isDhcpAddress(DatabaseConnection conn, int ipAddress) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
getUnassignedHostname
public static DomainName getUnassignedHostname(DatabaseConnection conn, int ipAddress) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
moveIpAddress
public static void moveIpAddress(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int ipAddress, int toHost) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
setDhcpAddressDestination
public static void setDhcpAddressDestination(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int dhcpAddress, InetAddress inetAddress) throws IOException, SQLException Sets the IP address for a DHCP-enabled IP address.- Throws:
IOExceptionSQLException
-
setIpAddressHostname
public static void setIpAddressHostname(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int ipAddress, DomainName hostname) throws IOException, SQLException Sets the hostname for an IP address.- Throws:
IOExceptionSQLException
-
setIpAddressHostname
public static void setIpAddressHostname(DatabaseConnection conn, InvalidateList invalidateList, int ipAddress, DomainName hostname) throws IOException, SQLException Sets the hostname for an IP address.- Throws:
IOExceptionSQLException
-
setIpAddressMonitoringEnabled
public static void setIpAddressMonitoringEnabled(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int ipAddress, boolean monitoringEnabled) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
setIpAddressMonitoringEnabled
public static void setIpAddressMonitoringEnabled(DatabaseConnection conn, InvalidateList invalidateList, int ipAddress, boolean monitoringEnabled) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
setIpAddressPackage
public static void setIpAddressPackage(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int ipAddress, Account.Name newPackage) throws IOException, SQLException Sets the Package owner of an net.IpAddress.- Throws:
IOExceptionSQLException
-
setIpAddressPackage
public static void setIpAddressPackage(DatabaseConnection conn, InvalidateList invalidateList, int ipAddress, Account.Name newPackage) throws IOException, SQLException Sets the Package owner of an net.IpAddress.- Throws:
IOExceptionSQLException
-
getPackageForIpAddress
public static Account.Name getPackageForIpAddress(DatabaseConnection conn, int ipAddress) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
getAccountForIpAddress
public static Account.Name getAccountForIpAddress(DatabaseConnection conn, int ipAddress) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
getHostForIpAddress
public static int getHostForIpAddress(DatabaseConnection conn, int ipAddress) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
getInetAddressForIpAddress
public static InetAddress getInetAddressForIpAddress(DatabaseConnection conn, int ipAddress) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
getWildcardIpAddress
- Throws:
IOExceptionSQLException
-
getLoopbackIpAddress
public static int getLoopbackIpAddress(DatabaseConnection conn, int host) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
releaseIpAddress
public static void releaseIpAddress(DatabaseConnection conn, InvalidateList invalidateList, int ipAddress) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
