com.metamatrix.common.comm.platform.socket.client
Class UrlServerDiscovery

java.lang.Object
  extended by 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


Constructor Summary
UrlServerDiscovery()
           
UrlServerDiscovery(MMURL 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(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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UrlServerDiscovery

public UrlServerDiscovery()

UrlServerDiscovery

public UrlServerDiscovery(MMURL url)
Method Detail

getKnownHosts

public java.util.List<HostInfo> getKnownHosts(LogonResult result,
                                              SocketServerInstance instance)
Description copied from interface: ServerDiscovery
Get the currently known hosts.

Specified by:
getKnownHosts in interface ServerDiscovery
Returns:

init

public void init(MMURL url,
                 java.util.Properties p)
Description copied from interface: ServerDiscovery
Initialize the ServerDiscovery

Specified by:
init in interface ServerDiscovery

connectionSuccessful

public void connectionSuccessful(HostInfo info)
Description copied from interface: ServerDiscovery
Indicates that a connection was made successfully to the given host.

Specified by:
connectionSuccessful in interface ServerDiscovery

markInstanceAsBad

public void markInstanceAsBad(HostInfo info)
Description copied from interface: ServerDiscovery
Indicates that a connection could not be made to the given host.

Specified by:
markInstanceAsBad in interface ServerDiscovery

shutdown

public void shutdown()
Description copied from interface: ServerDiscovery
Shutdown this ServerDiscovery

Specified by:
shutdown in interface ServerDiscovery


Copyright © 2009. All Rights Reserved.