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 void
checkAccessIpAddress
(DatabaseConnection conn, RequestSource source, String action, int ipAddressId) static Account.Name
getAccountForIpAddress
(DatabaseConnection conn, int ipAddress) static int
getHostForIpAddress
(DatabaseConnection conn, int ipAddress) static InetAddress
getInetAddressForIpAddress
(DatabaseConnection conn, int ipAddress) static int
getLoopbackIpAddress
(DatabaseConnection conn, int host) static Account.Name
getPackageForIpAddress
(DatabaseConnection conn, int ipAddress) static int
getSharedHttpdIpAddress
(DatabaseConnection conn, int linuxServer) static DomainName
getUnassignedHostname
(DatabaseConnection conn, int ipAddress) static int
static boolean
isDhcpAddress
(DatabaseConnection conn, int ipAddress) static void
moveIpAddress
(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int ipAddress, int toHost) static void
releaseIpAddress
(DatabaseConnection conn, InvalidateList invalidateList, int ipAddress) static void
setDhcpAddressDestination
(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int dhcpAddress, InetAddress inetAddress) Sets the IP address for a DHCP-enabled IP address.static void
setIpAddressHostname
(DatabaseConnection conn, InvalidateList invalidateList, int ipAddress, DomainName hostname) Sets the hostname for an IP address.static void
setIpAddressHostname
(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int ipAddress, DomainName hostname) Sets the hostname for an IP address.static void
setIpAddressMonitoringEnabled
(DatabaseConnection conn, InvalidateList invalidateList, int ipAddress, boolean monitoringEnabled) static void
setIpAddressMonitoringEnabled
(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int ipAddress, boolean monitoringEnabled) static void
setIpAddressPackage
(DatabaseConnection conn, InvalidateList invalidateList, int ipAddress, Account.Name newPackage) Sets the Package owner of an net.IpAddress.static void
setIpAddressPackage
(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:
IOException
SQLException
-
isDhcpAddress
public static boolean isDhcpAddress(DatabaseConnection conn, int ipAddress) throws IOException, SQLException - Throws:
IOException
SQLException
-
getUnassignedHostname
public static DomainName getUnassignedHostname(DatabaseConnection conn, int ipAddress) throws IOException, SQLException - Throws:
IOException
SQLException
-
moveIpAddress
public static void moveIpAddress(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int ipAddress, int toHost) throws IOException, SQLException - Throws:
IOException
SQLException
-
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:
IOException
SQLException
-
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:
IOException
SQLException
-
setIpAddressHostname
public static void setIpAddressHostname(DatabaseConnection conn, InvalidateList invalidateList, int ipAddress, DomainName hostname) throws IOException, SQLException Sets the hostname for an IP address.- Throws:
IOException
SQLException
-
setIpAddressMonitoringEnabled
public static void setIpAddressMonitoringEnabled(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int ipAddress, boolean monitoringEnabled) throws IOException, SQLException - Throws:
IOException
SQLException
-
setIpAddressMonitoringEnabled
public static void setIpAddressMonitoringEnabled(DatabaseConnection conn, InvalidateList invalidateList, int ipAddress, boolean monitoringEnabled) throws IOException, SQLException - Throws:
IOException
SQLException
-
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:
IOException
SQLException
-
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:
IOException
SQLException
-
getPackageForIpAddress
public static Account.Name getPackageForIpAddress(DatabaseConnection conn, int ipAddress) throws IOException, SQLException - Throws:
IOException
SQLException
-
getAccountForIpAddress
public static Account.Name getAccountForIpAddress(DatabaseConnection conn, int ipAddress) throws IOException, SQLException - Throws:
IOException
SQLException
-
getHostForIpAddress
public static int getHostForIpAddress(DatabaseConnection conn, int ipAddress) throws IOException, SQLException - Throws:
IOException
SQLException
-
getInetAddressForIpAddress
public static InetAddress getInetAddressForIpAddress(DatabaseConnection conn, int ipAddress) throws IOException, SQLException - Throws:
IOException
SQLException
-
getWildcardIpAddress
- Throws:
IOException
SQLException
-
getLoopbackIpAddress
public static int getLoopbackIpAddress(DatabaseConnection conn, int host) throws IOException, SQLException - Throws:
IOException
SQLException
-
releaseIpAddress
public static void releaseIpAddress(DatabaseConnection conn, InvalidateList invalidateList, int ipAddress) throws IOException, SQLException - Throws:
IOException
SQLException
-