Package com.sun.jini.discovery.internal
Class MultiIPDiscovery
java.lang.Object
com.sun.jini.discovery.internal.MultiIPDiscovery
Utility class used by implementations which want to perform unicast discovery on possibly
multiple IP addresses for a given host name. This class supports unicast discovery constraints as
specified in DiscoveryConstraints.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected intgetResponse(String host, int port, InvocationConstraints constraints) protected abstract UnicastResponseperformDiscovery(Discovery disco, DiscoveryConstraints dc, Socket s) protected voidsingleResponseException(Exception ex, InetAddress addr, int port) protected void
-
Field Details
-
DEFAULT_TIMEOUT
public static final int DEFAULT_TIMEOUT- See Also:
-
-
Constructor Details
-
MultiIPDiscovery
public MultiIPDiscovery()
-
-
Method Details
-
getResponse
public UnicastResponse getResponse(String host, int port, InvocationConstraints constraints) throws IOException, ClassNotFoundException - Throws:
IOExceptionClassNotFoundException
-
getDefaultUnicastSocketTimeout
protected int getDefaultUnicastSocketTimeout() -
singleResponseException
-
socketCloseException
-
performDiscovery
protected abstract UnicastResponse performDiscovery(Discovery disco, DiscoveryConstraints dc, Socket s) throws IOException, ClassNotFoundException - Throws:
IOExceptionClassNotFoundException
-