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)
ServerDiscovery
getKnownHosts
in interface ServerDiscovery
public void init(TeiidURL url, Properties p)
ServerDiscovery
ServerDiscovery
init
in interface ServerDiscovery
public void connectionSuccessful(HostInfo info)
ServerDiscovery
connectionSuccessful
in interface ServerDiscovery
public void markInstanceAsBad(HostInfo info)
ServerDiscovery
markInstanceAsBad
in interface ServerDiscovery
public void shutdown()
ServerDiscovery
ServerDiscovery
shutdown
in interface ServerDiscovery
public HostInfo selectNextInstance(List<HostInfo> hosts)
ServerDiscovery
selectNextInstance
in interface ServerDiscovery
Copyright © 2016 JBoss by Red Hat. All rights reserved.