com.metamatrix.common.comm.platform.socket.client
Class AdminApiServerDiscovery
java.lang.Object
com.metamatrix.common.comm.platform.socket.client.UrlServerDiscovery
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
AdminApiServerDiscovery
public AdminApiServerDiscovery()
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.