@InterfaceAudience.Public @InterfaceStability.Evolving public class RMProxy<T> extends Object
Modifier | Constructor and Description |
---|---|
protected |
RMProxy() |
Modifier and Type | Method and Description |
---|---|
void |
checkAllowedProtocols(Class<?> protocol)
Verify the passed protocol is supported.
|
static org.apache.hadoop.io.retry.RetryPolicy |
createRetryPolicy(org.apache.hadoop.conf.Configuration conf,
boolean isHAEnabled)
Fetch retry policy from Configuration
|
protected static org.apache.hadoop.io.retry.RetryPolicy |
createRetryPolicy(org.apache.hadoop.conf.Configuration conf,
long retryTime,
long retryInterval,
boolean isHAEnabled)
Fetch retry policy from Configuration and create the
retry policy with specified retryTime and retry interval.
|
protected static <T> T |
createRMProxy(org.apache.hadoop.conf.Configuration configuration,
Class<T> protocol,
RMProxy<T> instance)
Currently, used by Client and AM only
Create a proxy for the specified protocol.
|
protected static <T> T |
createRMProxy(org.apache.hadoop.conf.Configuration configuration,
Class<T> protocol,
RMProxy<T> instance,
long retryTime,
long retryInterval)
Currently, used by NodeManagers only.
|
<T> T |
getProxy(org.apache.hadoop.conf.Configuration conf,
Class<T> protocol,
InetSocketAddress rmAddress)
Get a proxy to the RM at the specified address.
|
InetSocketAddress |
getRMAddress(org.apache.hadoop.yarn.conf.YarnConfiguration conf,
Class<?> protocol)
Get the ResourceManager address from the provided Configuration for the
given protocol.
|
@InterfaceAudience.Private public void checkAllowedProtocols(Class<?> protocol)
@InterfaceAudience.Private public InetSocketAddress getRMAddress(org.apache.hadoop.yarn.conf.YarnConfiguration conf, Class<?> protocol) throws IOException
IOException
@InterfaceAudience.Private protected static <T> T createRMProxy(org.apache.hadoop.conf.Configuration configuration, Class<T> protocol, RMProxy<T> instance) throws IOException
IOException
@InterfaceAudience.Private protected static <T> T createRMProxy(org.apache.hadoop.conf.Configuration configuration, Class<T> protocol, RMProxy<T> instance, long retryTime, long retryInterval) throws IOException
IOException
@InterfaceAudience.Private public <T> T getProxy(org.apache.hadoop.conf.Configuration conf, Class<T> protocol, InetSocketAddress rmAddress) throws IOException
IOException
@InterfaceAudience.Private public static org.apache.hadoop.io.retry.RetryPolicy createRetryPolicy(org.apache.hadoop.conf.Configuration conf, boolean isHAEnabled)
protected static org.apache.hadoop.io.retry.RetryPolicy createRetryPolicy(org.apache.hadoop.conf.Configuration conf, long retryTime, long retryInterval, boolean isHAEnabled)
Copyright © 2008–2019 Apache Software Foundation. All rights reserved.