@InterfaceAudience.Private @InterfaceStability.Unstable public class ConfiguredRMFailoverProxyProvider<T> extends Object implements RMFailoverProxyProvider<T>
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.hadoop.yarn.conf.YarnConfiguration |
conf |
protected Class<T> |
protocol |
protected RMProxy<T> |
rmProxy |
protected String[] |
rmServiceIds |
| Constructor and Description |
|---|
ConfiguredRMFailoverProxyProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close all the proxy objects which have been opened over the lifetime of
this proxy provider.
|
Class<T> |
getInterface() |
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) |
protected org.apache.hadoop.yarn.conf.YarnConfiguration conf
protected String[] rmServiceIds
public void init(org.apache.hadoop.conf.Configuration configuration,
RMProxy<T> rmProxy,
Class<T> protocol)
RMFailoverProxyProviderinit in interface RMFailoverProxyProvider<T>configuration - Configuration to usermProxy - The RMProxy instance to useprotocol - The communication protocol to useprotected T getProxyInternal()
public org.apache.hadoop.io.retry.FailoverProxyProvider.ProxyInfo<T> getProxy()
getProxy in interface org.apache.hadoop.io.retry.FailoverProxyProvider<T>public void performFailover(T currentProxy)
performFailover in interface org.apache.hadoop.io.retry.FailoverProxyProvider<T>public Class<T> getInterface()
getInterface in interface org.apache.hadoop.io.retry.FailoverProxyProvider<T>public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2022 Apache Software Foundation. All rights reserved.