P - Protocol classpublic abstract class YarnRpc<P> extends Object implements AutoCloseable
| Constructor and Description |
|---|
YarnRpc(Class<P> protocolType,
Configuration cfg) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected P |
proxy() |
protected abstract InetSocketAddress |
resolveEndpoint(Configuration cfg) |
void |
start() |
public YarnRpc(Class<P> protocolType, Configuration cfg)
public void start()
protected P proxy()
public void close()
close in interface AutoCloseableprotected abstract InetSocketAddress resolveEndpoint(Configuration cfg) throws IOException
IOException