com.metamatrix.common.comm.platform.socket.client
Interface ServerDiscovery
- All Known Implementing Classes:
- AdminApiServerDiscovery, UrlServerDiscovery
public interface ServerDiscovery
Customizable ServerDiscovery interface
TODO: add knowledge of the cluster/ServerConnection in the getKnownHosts calls
init
void init(MMURL url,
java.util.Properties p)
getKnownHosts
java.util.List<HostInfo> getKnownHosts()
connectionSuccessful
void connectionSuccessful(HostInfo info,
SocketServerInstance instance)
markInstanceAsBad
void markInstanceAsBad(HostInfo info)
shutdown
void shutdown()
setLogonResult
boolean setLogonResult(LogonResult result)
- Sets the
LogonResult
after authentication. The LogonResult
will contain information
such as the cluster name that can be used for more efficient discovery.
- Parameters:
result
-
- Returns:
true
if the connection should select another instance after logon.
Copyright © 2009. All Rights Reserved.