Class NetDeviceManager
java.lang.Object
com.aoindustries.aoserv.daemon.util.BuilderThread
com.aoindustries.aoserv.daemon.net.NetDeviceManager
- All Implemented Interfaces:
TableListener
,PackageManager.PackageListener
Handles the building of IP address configs and files.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final PosixFile
static final PosixFile
static final PosixFile
Fields inherited from class com.aoindustries.aoserv.daemon.util.BuilderThread
DEFAULT_MAXIMUM_DELAY, DEFAULT_MINIMUM_DELAY, DEFAULT_PROCESS_TIMER_MAXIMUM_TIME, DEFAULT_PROCESS_TIMER_REMINDER_INTERVAL
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
checkSmtpBlacklist
(InetAddress sourceIp, InetAddress connectIp) protected boolean
static String
getNetDeviceBondingReport
(Device netDevice) static String
getNetDeviceStatisticsReport
(Device netDevice) static int
Gets the next privileged source port in the range 1 <= port <= 1023.static void
start()
Methods inherited from class com.aoindustries.aoserv.daemon.util.BuilderThread
getMaximumDelay, getMinimumDelay, getProcessTimerMaximumTime, getProcessTimerReminderInterval, getProcessTimerSubject, getRandomDelay, packageListUpdated, tableUpdated, waitForBuild
-
Field Details
-
netScriptDirectory
-
networkScript
-
networkScriptNew
-
-
Method Details
-
doRebuild
protected boolean doRebuild()- Specified by:
doRebuild
in classBuilderThread
- Returns:
true
if successful orfalse
if unsuccessful and needs to be retried.
-
start
- Throws:
IOException
SQLException
-
getProcessTimerDescription
- Specified by:
getProcessTimerDescription
in classBuilderThread
-
getNetDeviceBondingReport
- Throws:
IOException
SQLException
-
getNetDeviceStatisticsReport
public static String getNetDeviceStatisticsReport(Device netDevice) throws IOException, SQLException - Throws:
IOException
SQLException
-
getNextPrivilegedPort
Gets the next privileged source port in the range 1 <= port <= 1023. Will never return any port referenced in the NetBinds for this server. Will return all ports before cycling back through the ports. The ports are returned in a random order. The returned port may be in use, and the resulting exception must be caught and the next port tried in that case.- Throws:
IOException
SQLException
-
checkSmtpBlacklist
public static String checkSmtpBlacklist(InetAddress sourceIp, InetAddress connectIp) throws IOException, SQLException - Throws:
IOException
SQLException
-