List of usage examples for org.apache.thrift.transport TFramedTransport.Factory TFramedTransport.Factory
public Factory(int maxLength)
From source file:org.openflamingo.remote.thrift.thriftfs.ThriftPluginServer.java
License:Apache License
public ThriftPluginServer(InetSocketAddress address, TProcessorFactory processorFactory) throws TTransportException { //options = new TThreadPoolServer.Options(); port = address.getPort();/*from ww w . j a va 2 s . c om*/ this.address = address; //FIXME: we don't support auth /**if (UserGroupInformation.isSecurityEnabled()) { try { authBridge = new HadoopThriftAuthBridge.Server( UserGroupInformation.getLoginUser()); } catch (IOException ioe) { throw new TTransportException(ioe); } this.processorFactory = authBridge.wrapProcessorFactory( processorFactory); transportFactory = authBridge.createTransportFactory(); } else { **/ int tFramedTransportSize = DatabaseDescriptor.getThriftFramedTransportSize(); // this.processorFactory = processorFactory; transportFactory = new TFramedTransport.Factory(tFramedTransportSize); }