use of org.apache.thrift7.transport.TFramedTransport in project storm by nathanmarz.
the class SimpleTransportPlugin method connect.
/**
* Connect to the specified server via framed transport
* @param transport The underlying Thrift transport.
*/
public TTransport connect(TTransport transport, String serverHost) throws TTransportException {
//create a framed transport
TTransport conn = new TFramedTransport(transport);
//connect
conn.open();
LOG.debug("Simple client transport has been established");
return conn;
}
use of org.apache.thrift7.transport.TFramedTransport 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.TFramedTransport 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