InetSocketAddress addr = new InetSocketAddress(hostAddr[0], Integer.parseInt(hostAddr[1]));
Socket sock = new Socket();
sock.connect(addr);
TTransport transport = new TSocket(sock);
TProtocol prot = new TBinaryProtocol(transport);
return new Client(prot);
} catch (Exception ex) {
log.error(ex, ex);
return null;
}
}