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, SocketServerInstance instance)
           
 java.util.List<HostInfo> getKnownHosts()
           
 void init(MMURL url, java.util.Properties p)
           
 void markInstanceAsBad(HostInfo info)
           
 boolean setLogonResult(LogonResult result)
          Sets the LogonResult after authentication.
 void shutdown()
           
 
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()
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.