com.metamatrix.common.comm.platform.socket.client
Class UrlServerDiscovery
java.lang.Object
com.metamatrix.common.comm.platform.socket.client.UrlServerDiscovery
- All Implemented Interfaces:
- ServerDiscovery
- Direct Known Subclasses:
- AdminApiServerDiscovery
public class UrlServerDiscovery
- extends java.lang.Object
- implements ServerDiscovery
Simple URL discovery strategy
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UrlServerDiscovery
public UrlServerDiscovery()
UrlServerDiscovery
public UrlServerDiscovery(MMURL url)
getKnownHosts
public java.util.List<HostInfo> getKnownHosts()
- Specified by:
getKnownHosts
in interface ServerDiscovery
init
public void init(MMURL url,
java.util.Properties p)
- Specified by:
init
in interface ServerDiscovery
connectionSuccessful
public void connectionSuccessful(HostInfo info,
SocketServerInstance instance)
- Specified by:
connectionSuccessful
in interface ServerDiscovery
markInstanceAsBad
public void markInstanceAsBad(HostInfo info)
- Specified by:
markInstanceAsBad
in interface ServerDiscovery
setLogonResult
public boolean setLogonResult(LogonResult result)
- Description copied from interface:
ServerDiscovery
- Sets the
LogonResult
after authentication. The LogonResult
will contain information
such as the cluster name that can be used for more efficient discovery.
- Specified by:
setLogonResult
in interface ServerDiscovery
- Returns:
true
if the connection should select another instance after logon.
shutdown
public void shutdown()
- Specified by:
shutdown
in interface ServerDiscovery
Copyright © 2009. All Rights Reserved.