Search in sources :

Example 1 with TBinaryProtocol

use of org.apache.thrift7.protocol.TBinaryProtocol 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();
}
Also used : TBinaryProtocol(org.apache.thrift7.protocol.TBinaryProtocol) TFramedTransport(org.apache.thrift7.transport.TFramedTransport) DistributedRPCInvocations(backtype.storm.generated.DistributedRPCInvocations) TSocket(org.apache.thrift7.transport.TSocket)

Example 2 with TBinaryProtocol

use of org.apache.thrift7.protocol.TBinaryProtocol 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();
}
Also used : TBinaryProtocol(org.apache.thrift7.protocol.TBinaryProtocol) DistributedRPC(backtype.storm.generated.DistributedRPC) TFramedTransport(org.apache.thrift7.transport.TFramedTransport) TSocket(org.apache.thrift7.transport.TSocket)

Aggregations

TBinaryProtocol (org.apache.thrift7.protocol.TBinaryProtocol)2 TFramedTransport (org.apache.thrift7.transport.TFramedTransport)2 TSocket (org.apache.thrift7.transport.TSocket)2 DistributedRPC (backtype.storm.generated.DistributedRPC)1 DistributedRPCInvocations (backtype.storm.generated.DistributedRPCInvocations)1