@InterfaceAudience.Private @InterfaceStability.Unstable public class FederationRMFailoverProxyProvider<T> extends Object implements org.apache.hadoop.yarn.client.RMFailoverProxyProvider<T>
FederationStateStore to determine the ResourceManager to connect to.
 This supports both HA and regular mode which is controlled by configuration.| Constructor and Description | 
|---|
| FederationRMFailoverProxyProvider() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | close()Close all the proxy objects which have been opened over the lifetime of
 this proxy provider. | 
| protected T | createRMProxy(InetSocketAddress rmAddress) | 
| Class<T> | getInterface() | 
| org.apache.hadoop.io.retry.FailoverProxyProvider.ProxyInfo<T> | getProxy() | 
| void | init(org.apache.hadoop.conf.Configuration configuration,
    org.apache.hadoop.yarn.client.RMProxy<T> proxy,
    Class<T> proto) | 
| void | performFailover(T currentProxy) | 
public void init(org.apache.hadoop.conf.Configuration configuration,
                 org.apache.hadoop.yarn.client.RMProxy<T> proxy,
                 Class<T> proto)
init in interface org.apache.hadoop.yarn.client.RMFailoverProxyProvider<T>protected T createRMProxy(InetSocketAddress rmAddress) throws IOException
IOExceptionpublic org.apache.hadoop.io.retry.FailoverProxyProvider.ProxyInfo<T> getProxy()
getProxy in interface org.apache.hadoop.io.retry.FailoverProxyProvider<T>public void performFailover(T currentProxy)
performFailover in interface org.apache.hadoop.io.retry.FailoverProxyProvider<T>public Class<T> getInterface()
getInterface in interface org.apache.hadoop.io.retry.FailoverProxyProvider<T>public void close()
           throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2008–2023 Apache Software Foundation. All rights reserved.