@InterfaceAudience.Private @InterfaceStability.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 and Description |
---|---|
protected org.apache.hadoop.yarn.conf.YarnConfiguration |
conf |
protected RMProxy<T> |
rmProxy |
protocol, proxy
Constructor and Description |
---|
AutoRefreshNoHARMFailoverProxyProvider() |
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.io.retry.FailoverProxyProvider.ProxyInfo<T> |
getProxy() |
protected T |
getProxyInternal() |
void |
init(org.apache.hadoop.conf.Configuration configuration,
RMProxy<T> rmProxy,
Class<T> protocol)
Initialize internal data structures, invoked right after instantiation.
|
void |
performFailover(T currentProxy)
Stop the current proxy when performFailover.
|
close, getInterface
public AutoRefreshNoHARMFailoverProxyProvider()
public void init(org.apache.hadoop.conf.Configuration configuration, RMProxy<T> rmProxy, Class<T> protocol)
DefaultNoHARMFailoverProxyProvider
init
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–2024 Apache Software Foundation. All rights reserved.