java.io.Closeable, java.lang.AutoCloseable, org.apache.hadoop.io.retry.FailoverProxyProvider<T>, RMFailoverProxyProvider<T>AutoRefreshNoHARMFailoverProxyProvider@Private @Unstable public class DefaultNoHARMFailoverProxyProvider<T> extends java.lang.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 | Description |
|---|---|---|
protected java.lang.Class<T> |
protocol |
|
protected T |
proxy |
| Constructor | Description |
|---|---|
DefaultNoHARMFailoverProxyProvider() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
Close the current proxy.
|
java.lang.Class<T> |
getInterface() |
|
org.apache.hadoop.io.retry.FailoverProxyProvider.ProxyInfo<T> |
getProxy() |
|
void |
init(org.apache.hadoop.conf.Configuration conf,
RMProxy<T> proxy,
java.lang.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,
java.lang.Class<T> protocol)
init in interface RMFailoverProxyProvider<T>conf - Configuration to useproxy - The RMProxy instance to useprotocol - The communication protocol to usepublic java.lang.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 - currentProxy.public void close()
throws java.io.IOException
close in interface java.lang.AutoCloseableclose in interface java.io.Closeablejava.io.IOException - io error occur.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.