use of org.apache.thrift7.transport.TSocket in project storm by nathanmarz.
the class DRPCInvocationsClient method connect.
private void connect() throws TException {
conn = new TFramedTransport(new TSocket(host, port));
client = new DistributedRPCInvocations.Client(new TBinaryProtocol(conn));
conn.open();
}
use of org.apache.thrift7.transport.TSocket in project storm by nathanmarz.
the class DRPCClient method connect.
private void connect() throws TException {
TSocket socket = new TSocket(host, port);
if (timeout != null) {
socket.setTimeout(timeout);
}
conn = new TFramedTransport(socket);
client = new DistributedRPC.Client(new TBinaryProtocol(conn));
conn.open();
}
Aggregations