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
FieldsModifier and TypeFieldDescriptionstatic final PosixFilestatic final PosixFilestatic final PosixFileFields 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 StringcheckSmtpBlacklist(InetAddress sourceIp, InetAddress connectIp) protected booleanstatic StringgetNetDeviceBondingReport(Device netDevice) static StringgetNetDeviceStatisticsReport(Device netDevice) static intGets the next privileged source port in the range 1 <= port <= 1023.static voidstart()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:
doRebuildin classBuilderThread- Returns:
trueif successful orfalseif unsuccessful and needs to be retried.
-
start
- Throws:
IOExceptionSQLException
-
getProcessTimerDescription
- Specified by:
getProcessTimerDescriptionin classBuilderThread
-
getNetDeviceBondingReport
- Throws:
IOExceptionSQLException
-
getNetDeviceStatisticsReport
public static String getNetDeviceStatisticsReport(Device netDevice) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
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:
IOExceptionSQLException
-
checkSmtpBlacklist
public static String checkSmtpBlacklist(InetAddress sourceIp, InetAddress connectIp) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
