@InterfaceAudience.Public @InterfaceStability.Evolving public class RMProxy<T> extends Object
Modifier | Constructor and Description |
---|---|
protected |
RMProxy() |
Modifier and Type | Method and Description |
---|---|
protected static org.apache.hadoop.io.retry.RetryPolicy |
createRetryPolicy(Configuration conf,
long retryTime,
long retryInterval,
boolean isHAEnabled)
Fetch retry policy from Configuration and create the
retry policy with specified retryTime and retry interval.
|
static <T> T |
createRMProxy(Configuration conf,
Class<T> protocol,
InetSocketAddress rmAddress)
Deprecated.
This method is deprecated and is not used by YARN internally any more.
To create a proxy to the RM, use ClientRMProxy#createRMProxy or
ServerRMProxy#createRMProxy.
Create a proxy to the ResourceManager at the specified address.
|
protected RMProxy()
@Deprecated public static <T> T createRMProxy(Configuration conf, Class<T> protocol, InetSocketAddress rmAddress) throws IOException
T
- Type information of the proxyconf
- Configuration to generate retry policyprotocol
- Protocol for the proxyrmAddress
- Address of the ResourceManagerIOException
protected static org.apache.hadoop.io.retry.RetryPolicy createRetryPolicy(Configuration conf, long retryTime, long retryInterval, boolean isHAEnabled)
Copyright © 2016 Apache Software Foundation. All rights reserved.