@InterfaceAudience.Private @InterfaceStability.Unstable public class DefaultNoHARMFailoverProxyProvider<T> extends Object implements RMFailoverProxyProvider<T>
RMFailoverProxyProvider which does nothing in
 the event of failover, and always returns the same proxy object.
 This is the default non-HA RM Failover proxy provider. It is used to replace
 DefaultFailoverProxyProvider which was used as Yarn default non-HA.| Modifier and Type | Field and Description | 
|---|---|
| protected Class<T> | protocol | 
| protected T | proxy | 
| Constructor and Description | 
|---|
| DefaultNoHARMFailoverProxyProvider() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | close()Close the current proxy. | 
| Class<T> | getInterface() | 
| org.apache.hadoop.io.retry.FailoverProxyProvider.ProxyInfo<T> | getProxy() | 
| void | init(org.apache.hadoop.conf.Configuration conf,
    RMProxy<T> proxy,
    Class<T> protocol)Initialize internal data structures, invoked right after instantiation. | 
| void | performFailover(T currentProxy)PerformFailover does nothing in this class. | 
public void init(org.apache.hadoop.conf.Configuration conf,
                 RMProxy<T> proxy,
                 Class<T> protocol)
init in interface RMFailoverProxyProvider<T>conf - Configuration to useproxy - The RMProxy instance to useprotocol - The communication protocol to usepublic Class<T> getInterface()
getInterface in interface org.apache.hadoop.io.retry.FailoverProxyProvider<T>public 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>currentProxy - public void close()
           throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2008–2023 Apache Software Foundation. All rights reserved.