Package org.apache.hadoop.yarn.client
Class AutoRefreshNoHARMFailoverProxyProvider<T>
java.lang.Object
org.apache.hadoop.yarn.client.DefaultNoHARMFailoverProxyProvider<T>
org.apache.hadoop.yarn.client.AutoRefreshNoHARMFailoverProxyProvider<T>
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.hadoop.io.retry.FailoverProxyProvider<T>,RMFailoverProxyProvider<T>
@Private
@Unstable
public class AutoRefreshNoHARMFailoverProxyProvider<T>
extends DefaultNoHARMFailoverProxyProvider<T>
A subclass of
RMFailoverProxyProvider which tries to
resolve the proxy DNS in the event of failover.
This provider doesn't support HA or Federation.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.hadoop.io.retry.FailoverProxyProvider
org.apache.hadoop.io.retry.FailoverProxyProvider.ProxyInfo<T extends Object> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.apache.hadoop.yarn.conf.YarnConfigurationFields inherited from class org.apache.hadoop.yarn.client.DefaultNoHARMFailoverProxyProvider
protocol, proxy -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.io.retry.FailoverProxyProvider.ProxyInfo<T>getProxy()protected TvoidInitialize internal data structures, invoked right after instantiation.voidperformFailover(T currentProxy) Stop the current proxy when performFailover.Methods inherited from class org.apache.hadoop.yarn.client.DefaultNoHARMFailoverProxyProvider
close, getInterface
-
Field Details
-
rmProxy
-
conf
protected org.apache.hadoop.yarn.conf.YarnConfiguration conf
-
-
Constructor Details
-
AutoRefreshNoHARMFailoverProxyProvider
public AutoRefreshNoHARMFailoverProxyProvider()
-
-
Method Details
-
init
public void init(org.apache.hadoop.conf.Configuration configuration, RMProxy<T> rmProxy, Class<T> protocol) Description copied from class:DefaultNoHARMFailoverProxyProviderInitialize internal data structures, invoked right after instantiation.- Specified by:
initin interfaceRMFailoverProxyProvider<T>- Overrides:
initin classDefaultNoHARMFailoverProxyProvider<T>- Parameters:
configuration- Configuration to usermProxy- TheRMProxyinstance to useprotocol- The communication protocol to use
-
getProxy
- Specified by:
getProxyin interfaceorg.apache.hadoop.io.retry.FailoverProxyProvider<T>- Overrides:
getProxyin classDefaultNoHARMFailoverProxyProvider<T>
-
getProxyInternal
-
performFailover
Stop the current proxy when performFailover.- Specified by:
performFailoverin interfaceorg.apache.hadoop.io.retry.FailoverProxyProvider<T>- Overrides:
performFailoverin classDefaultNoHARMFailoverProxyProvider<T>- Parameters:
currentProxy- currentProxy.
-