public class ServerRMProxy<T>
extends org.apache.hadoop.yarn.client.RMProxy<T>
Modifier and Type | Method and Description |
---|---|
void |
checkAllowedProtocols(Class<?> protocol) |
static <T> T |
createRMProxy(org.apache.hadoop.conf.Configuration configuration,
Class<T> protocol)
Create a proxy to the ResourceManager for the specified protocol.
|
InetSocketAddress |
getRMAddress(org.apache.hadoop.yarn.conf.YarnConfiguration conf,
Class<?> protocol) |
public static <T> T createRMProxy(org.apache.hadoop.conf.Configuration configuration, Class<T> protocol) throws IOException
T
- Type of proxy.configuration
- Configuration with all the required information.protocol
- Server protocol for which proxy is being requested.IOException
@InterfaceAudience.Private public InetSocketAddress getRMAddress(org.apache.hadoop.yarn.conf.YarnConfiguration conf, Class<?> protocol)
getRMAddress
in class org.apache.hadoop.yarn.client.RMProxy<T>
Copyright © 2008–2018 Apache Software Foundation. All rights reserved.