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

java.lang.Object
  extended by com.metamatrix.common.comm.platform.socket.client.UrlServerDiscovery
      extended by com.metamatrix.common.comm.platform.socket.client.AdminApiServerDiscovery
All Implemented Interfaces:
ServerDiscovery

public class AdminApiServerDiscovery
extends UrlServerDiscovery

Will discover hosts based upon an anon admin api call. TODO: perform active polling


Field Summary
static java.lang.String USE_URL_HOST
          If the FIREWALL_HOST property is set, then this host name will be used instead of the process names returned by the AdminApi
 
Constructor Summary
AdminApiServerDiscovery()
           
 
Method Summary
 void connectionSuccessful(HostInfo info, SocketServerInstance instance)
           
 java.util.List<HostInfo> getKnownHosts()
           
 void init(MMURL url, java.util.Properties p)
           
 boolean setLogonResult(LogonResult result)
          Sets the LogonResult after authentication.
 
Methods inherited from class com.metamatrix.common.comm.platform.socket.client.UrlServerDiscovery
markInstanceAsBad, shutdown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

USE_URL_HOST

public static final java.lang.String USE_URL_HOST
If the FIREWALL_HOST property is set, then this host name will be used instead of the process names returned by the AdminApi

See Also:
Constant Field Values
Constructor Detail

AdminApiServerDiscovery

public AdminApiServerDiscovery()
Method Detail

getKnownHosts

public java.util.List<HostInfo> getKnownHosts()
Specified by:
getKnownHosts in interface ServerDiscovery
Overrides:
getKnownHosts in class UrlServerDiscovery

init

public void init(MMURL url,
                 java.util.Properties p)
Specified by:
init in interface ServerDiscovery
Overrides:
init in class UrlServerDiscovery

connectionSuccessful

public void connectionSuccessful(HostInfo info,
                                 SocketServerInstance instance)
Specified by:
connectionSuccessful in interface ServerDiscovery
Overrides:
connectionSuccessful in class UrlServerDiscovery

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
Overrides:
setLogonResult in class UrlServerDiscovery
Returns:
true if the connection should select another instance after logon.


Copyright © 2009. All Rights Reserved.