public class RpcConnectionPool extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
RPC_RETRIES |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
closeConnection(NettyClientBase client) |
NettyClientBase |
getConnection(InetSocketAddress addr,
Class protocolClass,
boolean asyncMode) |
static RpcConnectionPool |
getPool(TajoConf conf) |
static RpcConnectionPool |
newPool(TajoConf conf,
String poolName,
int workerNum) |
void |
releaseConnection(NettyClientBase client) |
void |
shutdown() |
public static final int RPC_RETRIES
public static RpcConnectionPool getPool(TajoConf conf)
public static RpcConnectionPool newPool(TajoConf conf, String poolName, int workerNum)
public NettyClientBase getConnection(InetSocketAddress addr, Class protocolClass, boolean asyncMode) throws NoSuchMethodException, ClassNotFoundException, org.jboss.netty.channel.ConnectTimeoutException
NoSuchMethodExceptionClassNotFoundExceptionorg.jboss.netty.channel.ConnectTimeoutExceptionpublic void releaseConnection(NettyClientBase client)
public void closeConnection(NettyClientBase client)
public void close()
public void shutdown()
Copyright © 2014 Apache Software Foundation. All Rights Reserved.