public TestProxyClient(String host, int port) throws TTransportException {
this(host, port, new TCompactProtocol.Factory());
}
public TestProxyClient(String host, int port, TProtocolFactory protoFactory) throws TTransportException {
final TSocket socket = new TSocket(host, port);
socket.setTimeout(600000);
transport = new TFramedTransport(socket);
final TProtocol protocol = protoFactory.getProtocol(transport);
proxy = new AccumuloProxy.Client(protocol);
transport.open();
}