com.sun.jini.discovery.internal
Class MultiIPDiscovery
java.lang.Object
com.sun.jini.discovery.internal.MultiIPDiscovery
public abstract class MultiIPDiscovery
- extends Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_TIMEOUT
public static final int DEFAULT_TIMEOUT
- See Also:
- Constant Field Values
MultiIPDiscovery
public MultiIPDiscovery()
getResponse
public UnicastResponse getResponse(String host,
int port,
InvocationConstraints constraints)
throws IOException,
ClassNotFoundException
- Throws:
IOException
ClassNotFoundException
getDefaultUnicastSocketTimeout
protected int getDefaultUnicastSocketTimeout()
singleResponseException
protected void singleResponseException(Exception ex,
InetAddress addr,
int port)
socketCloseException
protected void socketCloseException(IOException ex)
performDiscovery
protected abstract UnicastResponse performDiscovery(Discovery disco,
DiscoveryConstraints dc,
Socket s)
throws IOException,
ClassNotFoundException
- Throws:
IOException
ClassNotFoundException
Copyright © GigaSpaces.