throw new Exception(clientSideException);
}
}
private void talkToThriftServer() throws Exception {
TSocket sock = new TSocket(InetAddress.getLocalHost().getHostName(),
port);
TTransport transport = sock;
if (specifyFramed || implType.isAlwaysFramed) {
transport = new TFramedTransport(transport);
}
sock.open();
try {
TProtocol prot;
if (specifyCompact) {
prot = new TCompactProtocol(transport);
} else {
prot = new TBinaryProtocol(transport);
}
Hbase.Client client = new Hbase.Client(prot);
TestThriftServer.doTestTableCreateDrop(client);
TestThriftServer.doTestGetTableRegions(client);
TestThriftServer.doTestTableMutations(client);
} finally {
sock.close();
}
}