java.io.Closeable, java.lang.AutoCloseable, org.apache.hadoop.io.retry.FailoverProxyProvider<T>, RMFailoverProxyProvider<T>AutoRefreshRMFailoverProxyProvider, RequestHedgingRMFailoverProxyProvider@Private @Unstable public class ConfiguredRMFailoverProxyProvider<T> extends java.lang.Object implements RMFailoverProxyProvider<T>
| Modifier and Type | Field | Description |
|---|---|---|
protected org.apache.hadoop.yarn.conf.YarnConfiguration |
conf |
|
protected java.lang.Class<T> |
protocol |
|
protected RMProxy<T> |
rmProxy |
|
protected java.lang.String[] |
rmServiceIds |
| Constructor | Description |
|---|---|
ConfiguredRMFailoverProxyProvider() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
Close all the proxy objects which have been opened over the lifetime of
this proxy provider.
|
java.lang.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,
java.lang.Class<T> protocol) |
Initialize internal data structures, invoked right after instantiation.
|
void |
performFailover(T currentProxy) |
protected java.lang.Class<T> protocol
protected org.apache.hadoop.yarn.conf.YarnConfiguration conf
protected java.lang.String[] rmServiceIds
public void init(org.apache.hadoop.conf.Configuration configuration,
RMProxy<T> rmProxy,
java.lang.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 java.lang.Class<T> getInterface()
getInterface in interface org.apache.hadoop.io.retry.FailoverProxyProvider<T>public void close()
throws java.io.IOException
close in interface java.lang.AutoCloseableclose in interface java.io.Closeablejava.io.IOExceptionCopyright © 2008–2025 Apache Software Foundation. All rights reserved.