public abstract class MultiIPDiscovery extends Object
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_TIMEOUT |
Constructor and Description |
---|
MultiIPDiscovery() |
Modifier and Type | Method and Description |
---|---|
protected int |
getDefaultUnicastSocketTimeout() |
UnicastResponse |
getResponse(String scheme,
String host,
int port,
InvocationConstraints constraints) |
protected abstract UnicastResponse |
performDiscovery(Discovery disco,
DiscoveryConstraints dc,
Socket s) |
protected void |
singleResponseException(Exception ex,
InetAddress addr,
int port) |
protected void |
socketCloseException(IOException ex) |
public static final int DEFAULT_TIMEOUT
public UnicastResponse getResponse(String scheme, String host, int port, InvocationConstraints constraints) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
protected int getDefaultUnicastSocketTimeout()
protected void singleResponseException(Exception ex, InetAddress addr, int port)
protected void socketCloseException(IOException ex)
protected abstract UnicastResponse performDiscovery(Discovery disco, DiscoveryConstraints dc, Socket s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
Copyright © 2016–2018 The Apache Software Foundation. All rights reserved.