Package org.apache.hadoop.yarn.client
Class ConfiguredRMFailoverProxyProvider<T>
java.lang.Object
org.apache.hadoop.yarn.client.ConfiguredRMFailoverProxyProvider<T>
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.hadoop.io.retry.FailoverProxyProvider<T>,RMFailoverProxyProvider<T>
- Direct Known Subclasses:
AutoRefreshRMFailoverProxyProvider,RequestHedgingRMFailoverProxyProvider
@Private
@Unstable
public class ConfiguredRMFailoverProxyProvider<T>
extends Object
implements RMFailoverProxyProvider<T>
-
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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close all the proxy objects which have been opened over the lifetime of this proxy provider.org.apache.hadoop.io.retry.FailoverProxyProvider.ProxyInfo<T>getProxy()protected TvoidInitialize internal data structures, invoked right after instantiation.voidperformFailover(T currentProxy)
-
Field Details
-
rmProxy
-
protocol
-
conf
protected org.apache.hadoop.yarn.conf.YarnConfiguration conf -
rmServiceIds
-
-
Constructor Details
-
ConfiguredRMFailoverProxyProvider
public ConfiguredRMFailoverProxyProvider()
-
-
Method Details
-
init
public void init(org.apache.hadoop.conf.Configuration configuration, RMProxy<T> rmProxy, Class<T> protocol) Description copied from interface:RMFailoverProxyProviderInitialize internal data structures, invoked right after instantiation.- Specified by:
initin interfaceRMFailoverProxyProvider<T>- Parameters:
configuration- Configuration to usermProxy- TheRMProxyinstance to useprotocol- The communication protocol to use
-
getProxyInternal
-
getProxy
- Specified by:
getProxyin interfaceorg.apache.hadoop.io.retry.FailoverProxyProvider<T>
-
performFailover
- Specified by:
performFailoverin interfaceorg.apache.hadoop.io.retry.FailoverProxyProvider<T>
-
getInterface
- Specified by:
getInterfacein interfaceorg.apache.hadoop.io.retry.FailoverProxyProvider<T>
-
close
Close all the proxy objects which have been opened over the lifetime of this proxy provider.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-