public class RequestHedgingRMFailoverProxyProvider<T> extends ConfiguredRMFailoverProxyProvider<T>
conf, protocol, rmProxy, rmServiceIds
Constructor and Description |
---|
RequestHedgingRMFailoverProxyProvider() |
Modifier and Type | Method and Description |
---|---|
protected T |
createRetriableProxy() |
org.apache.hadoop.io.retry.FailoverProxyProvider.ProxyInfo<T> |
getProxy() |
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) |
close, getInterface, getProxyInternal
public RequestHedgingRMFailoverProxyProvider()
public void init(org.apache.hadoop.conf.Configuration configuration, RMProxy<T> rmProxy, Class<T> protocol)
RMFailoverProxyProvider
init
in interface RMFailoverProxyProvider<T>
init
in class ConfiguredRMFailoverProxyProvider<T>
configuration
- Configuration to usermProxy
- The RMProxy
instance to useprotocol
- The communication protocol to useprotected T createRetriableProxy()
public org.apache.hadoop.io.retry.FailoverProxyProvider.ProxyInfo<T> getProxy()
getProxy
in interface org.apache.hadoop.io.retry.FailoverProxyProvider<T>
getProxy
in class ConfiguredRMFailoverProxyProvider<T>
public void performFailover(T currentProxy)
performFailover
in interface org.apache.hadoop.io.retry.FailoverProxyProvider<T>
performFailover
in class ConfiguredRMFailoverProxyProvider<T>
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.