|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.faban.harness.util.InterfaceProbe
public class InterfaceProbe
The InterfaceProbe probes interfaces and finds the best interface to communicate with an IP address or host name.
Constructor Summary | |
---|---|
InterfaceProbe()
. |
|
InterfaceProbe(ExecutorService executor)
. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InterfaceProbe() throws SocketException
SocketException
public InterfaceProbe(ExecutorService executor) throws SocketException
executor
-
SocketException
Method Detail |
---|
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |