java.io.Closeable, java.lang.AutoCloseable, org.apache.hadoop.io.retry.FailoverProxyProvider<T>, RMFailoverProxyProvider<T>@Private @Unstable public class AutoRefreshNoHARMFailoverProxyProvider<T> extends DefaultNoHARMFailoverProxyProvider<T>
RMFailoverProxyProvider which tries to
resolve the proxy DNS in the event of failover.
This provider doesn't support HA or Federation.| Modifier and Type | Field | Description |
|---|---|---|
protected org.apache.hadoop.yarn.conf.YarnConfiguration |
conf |
|
protected RMProxy<T> |
rmProxy |
protocol, proxy| Constructor | Description |
|---|---|
AutoRefreshNoHARMFailoverProxyProvider() |
| Modifier and Type | Method | Description |
|---|---|---|
org.apache.hadoop.io.retry.FailoverProxyProvider.ProxyInfo<T> |
getProxy() |
|
protected T |
getProxyInternal() |
|
void |
init(org.apache.hadoop.conf.Configuration configuration,
RMProxy<T> rmProxy,
java.lang.Class<T> protocol) |
Initialize internal data structures, invoked right after instantiation.
|
void |
performFailover(T currentProxy) |
Stop the current proxy when performFailover.
|
close, getInterfacepublic AutoRefreshNoHARMFailoverProxyProvider()
public void init(org.apache.hadoop.conf.Configuration configuration,
RMProxy<T> rmProxy,
java.lang.Class<T> protocol)
DefaultNoHARMFailoverProxyProviderinit in interface RMFailoverProxyProvider<T>init in class DefaultNoHARMFailoverProxyProvider<T>configuration - Configuration to usermProxy - The RMProxy instance to useprotocol - The communication protocol to usepublic org.apache.hadoop.io.retry.FailoverProxyProvider.ProxyInfo<T> getProxy()
getProxy in interface org.apache.hadoop.io.retry.FailoverProxyProvider<T>getProxy in class DefaultNoHARMFailoverProxyProvider<T>protected T getProxyInternal()
public void performFailover(T currentProxy)
performFailover in interface org.apache.hadoop.io.retry.FailoverProxyProvider<T>performFailover in class DefaultNoHARMFailoverProxyProvider<T>currentProxy - currentProxy.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.