java.io.Closeable, java.lang.AutoCloseable, org.apache.hadoop.io.retry.FailoverProxyProvider<T>, org.apache.hadoop.yarn.client.RMFailoverProxyProvider<T>@Private
@Unstable
public class FederationRMFailoverProxyProvider<T>
extends java.lang.Object
implements org.apache.hadoop.yarn.client.RMFailoverProxyProvider<T>
FederationStateStore to determine the ResourceManager to connect to.
This supports both HA and regular mode which is controlled by configuration.| Constructor | Description |
|---|---|
FederationRMFailoverProxyProvider() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
Close all the proxy objects which have been opened over the lifetime of
this proxy provider.
|
protected T |
createRMProxy(java.net.InetSocketAddress rmAddress) |
|
java.lang.Class<T> |
getInterface() |
|
org.apache.hadoop.io.retry.FailoverProxyProvider.ProxyInfo<T> |
getProxy() |
|
void |
init(org.apache.hadoop.conf.Configuration configuration,
org.apache.hadoop.yarn.client.RMProxy<T> proxy,
java.lang.Class<T> proto) |
|
void |
performFailover(T currentProxy) |
public void init(org.apache.hadoop.conf.Configuration configuration,
org.apache.hadoop.yarn.client.RMProxy<T> proxy,
java.lang.Class<T> proto)
init in interface org.apache.hadoop.yarn.client.RMFailoverProxyProvider<T>@VisibleForTesting protected T createRMProxy(java.net.InetSocketAddress rmAddress) throws java.io.IOException
java.io.IOExceptionpublic 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.