private boolean useNetworkInterface ( NetworkInterface networkInterface ) throws HarvestException { try { return ! networkInterface . isLoopback ( ) && networkInterface . isUp ( ) ; } catch ( SocketException e ) { throw new HarvestException ( "Could not evaluate whether network interface is loopback." , e ) ; } }
Decides whether a certain network interface can be used as a host candidate .