Example usage for org.apache.thrift TServiceClientFactory getClient

List of usage examples for org.apache.thrift TServiceClientFactory getClient

Introduction

In this page you can find the example usage for org.apache.thrift TServiceClientFactory getClient.

Prototype

public T getClient(TProtocol iprot, TProtocol oprot);

Source Link

Document

Get a brand new T using the specified input and output protocols.

Usage

From source file:org.apache.accumulo.core.rpc.ThriftUtil.java

License:Apache License

/**
 * Create a Thrift client using the given factory and transport
 *///w  w w . ja  v a  2s.  com
public static <T extends TServiceClient> T createClient(TServiceClientFactory<T> factory,
        TTransport transport) {
    return factory.getClient(protocolFactory.getProtocol(transport), protocolFactory.getProtocol(transport));
}

From source file:org.apache.accumulo.core.util.ThriftUtil.java

License:Apache License

static public <T extends TServiceClient> T createClient(TServiceClientFactory<T> factory,
        TTransport transport) {//  ww w.j  a  va 2s  . c o  m
    return factory.getClient(protocolFactory.getProtocol(transport), protocolFactory.getProtocol(transport));
}