|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.teiid.net.socket.UrlServerDiscovery
public class UrlServerDiscovery
Simple URL discovery strategy with a random load balancing policy TOOD: add black listing support
Constructor Summary | |
---|---|
UrlServerDiscovery()
|
|
UrlServerDiscovery(TeiidURL url)
|
Method Summary | |
---|---|
void |
connectionSuccessful(HostInfo info)
Indicates that a connection was made successfully to the given host. |
java.util.List<HostInfo> |
getKnownHosts(LogonResult result,
SocketServerInstance instance)
Get the currently known hosts. |
void |
init(TeiidURL url,
java.util.Properties p)
Initialize the ServerDiscovery |
void |
markInstanceAsBad(HostInfo info)
Indicates that a connection could not be made to the given host. |
HostInfo |
selectNextInstance(java.util.List<HostInfo> hosts)
Select the next instance to try. |
void |
shutdown()
Shutdown this ServerDiscovery |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UrlServerDiscovery()
public UrlServerDiscovery(TeiidURL url)
Method Detail |
---|
public java.util.List<HostInfo> getKnownHosts(LogonResult result, SocketServerInstance instance)
ServerDiscovery
getKnownHosts
in interface ServerDiscovery
public void init(TeiidURL url, java.util.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(java.util.List<HostInfo> hosts)
ServerDiscovery
selectNextInstance
in interface ServerDiscovery
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |