public interface ServerDiscovery
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 |
void init(TeiidURL url, Properties p)
ServerDiscovery
url
- p
- List<HostInfo> getKnownHosts(LogonResult result, SocketServerInstance instance)
result,
- the current LogonResult
- may be null if unauthenticatedinstance,
- the currently connected instance - may be null if not connectedvoid connectionSuccessful(HostInfo info)
info
- void markInstanceAsBad(HostInfo info)
info
- void shutdown()
ServerDiscovery
Copyright © 2017 JBoss by Red Hat. All rights reserved.