com.metamatrix.common.comm.platform.socket.client
Interface ServerDiscovery

All Known Implementing Classes:
AdminApiServerDiscovery, UrlServerDiscovery

public interface ServerDiscovery

Customizable ServerDiscovery interface


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(MMURL url, java.util.Properties p)
          Initialize the ServerDiscovery
 void markInstanceAsBad(HostInfo info)
          Indicates that a connection could not be made to the given host.
 void shutdown()
          Shutdown this ServerDiscovery
 

Method Detail

init

void init(MMURL url,
          java.util.Properties p)
Initialize the ServerDiscovery

Parameters:
url -
p -

getKnownHosts

java.util.List<HostInfo> getKnownHosts(LogonResult result,
                                       SocketServerInstance instance)
Get the currently known hosts.

Parameters:
result, - the current LogonResult - may be null if unauthenticated
instance, - the currently connected instance - may be null if not connected
Returns:

connectionSuccessful

void connectionSuccessful(HostInfo info)
Indicates that a connection was made successfully to the given host.

Parameters:
info -

markInstanceAsBad

void markInstanceAsBad(HostInfo info)
Indicates that a connection could not be made to the given host.

Parameters:
info -

shutdown

void shutdown()
Shutdown this ServerDiscovery



Copyright © 2009. All Rights Reserved.