Package org.apache.hadoop.yarn.client
Class DefaultNoHARMFailoverProxyProvider<T>
java.lang.Object
org.apache.hadoop.yarn.client.DefaultNoHARMFailoverProxyProvider<T>
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.hadoop.io.retry.FailoverProxyProvider<T>,RMFailoverProxyProvider<T>
- Direct Known Subclasses:
AutoRefreshNoHARMFailoverProxyProvider
@Private
@Unstable
public class DefaultNoHARMFailoverProxyProvider<T>
extends Object
implements RMFailoverProxyProvider<T>
An implementation of
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.-
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 the current proxy.org.apache.hadoop.io.retry.FailoverProxyProvider.ProxyInfo<T>getProxy()voidInitialize internal data structures, invoked right after instantiation.voidperformFailover(T currentProxy) PerformFailover does nothing in this class.
-
Field Details
-
proxy
-
protocol
-
-
Constructor Details
-
DefaultNoHARMFailoverProxyProvider
public DefaultNoHARMFailoverProxyProvider()
-
-
Method Details
-
init
Initialize internal data structures, invoked right after instantiation.- Specified by:
initin interfaceRMFailoverProxyProvider<T>- Parameters:
conf- Configuration to useproxy- TheRMProxyinstance to useprotocol- The communication protocol to use
-
getInterface
- Specified by:
getInterfacein interfaceorg.apache.hadoop.io.retry.FailoverProxyProvider<T>
-
getProxy
- Specified by:
getProxyin interfaceorg.apache.hadoop.io.retry.FailoverProxyProvider<T>
-
performFailover
PerformFailover does nothing in this class.- Specified by:
performFailoverin interfaceorg.apache.hadoop.io.retry.FailoverProxyProvider<T>- Parameters:
currentProxy- currentProxy.
-
close
Close the current proxy.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException- io error occur.
-