List of usage examples for org.apache.thrift TServiceClientFactory getClient
public T getClient(TProtocol iprot, TProtocol oprot);
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)); }