public class UrlServerDiscovery extends Object implements ServerDiscovery
| Constructor and Description |
|---|
UrlServerDiscovery() |
UrlServerDiscovery(TeiidURL url) |
| Modifier and Type | Method and Description |
|---|---|
void |
connectionSuccessful(HostInfo info)
Indicates that a connection was made successfully to the given host.
|
List<HostInfo> |
getKnownHosts(LogonResult result,
SocketServerInstance instance)
Get the currently known hosts.
|
void |
init(TeiidURL url,
Properties p)
Initialize the
ServerDiscovery |
void |
markInstanceAsBad(HostInfo info)
Indicates that a connection could not be made to the given host.
|
HostInfo |
selectNextInstance(List<HostInfo> hosts)
Select the next instance to try.
|
void |
shutdown()
Shutdown this
ServerDiscovery |
public UrlServerDiscovery()
public UrlServerDiscovery(TeiidURL url)
public List<HostInfo> getKnownHosts(LogonResult result, SocketServerInstance instance)
ServerDiscoverygetKnownHosts in interface ServerDiscoverypublic void init(TeiidURL url, Properties p)
ServerDiscoveryServerDiscoveryinit in interface ServerDiscoverypublic void connectionSuccessful(HostInfo info)
ServerDiscoveryconnectionSuccessful in interface ServerDiscoverypublic void markInstanceAsBad(HostInfo info)
ServerDiscoverymarkInstanceAsBad in interface ServerDiscoverypublic void shutdown()
ServerDiscoveryServerDiscoveryshutdown in interface ServerDiscoverypublic HostInfo selectNextInstance(List<HostInfo> hosts)
ServerDiscoveryselectNextInstance in interface ServerDiscoveryCopyright © 2018 JBoss by Red Hat. All rights reserved.