public class InterfaceProbe extends Object
Constructor and Description |
---|
InterfaceProbe()
.
|
InterfaceProbe(ExecutorService executor)
.
|
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getIfMap(Collection<String> hosts,
Map<String,String> ifMap)
Fills the interface maps identifying which interface is to be used
to communicate to a particular host.
|
static void |
main(String[] args)
Unit tests the interface probe.
|
void |
setExecutorService(ExecutorService executor)
Sets the thread pool to be used for parallel probing.
|
public InterfaceProbe() throws SocketException
SocketException
public InterfaceProbe(ExecutorService executor) throws SocketException
executor
- SocketException
public static void main(String[] args)
args
- The commmand line argumentspublic void setExecutorService(ExecutorService executor)
executor
- The thread poolpublic Map<String,String> getIfMap(Collection<String> hosts, Map<String,String> ifMap)
hosts
- The host listifMap
- The host to interface map to fill