Example usage for org.apache.thrift.transport TTransportFactory subclass-usage

List of usage examples for org.apache.thrift.transport TTransportFactory subclass-usage

Introduction

In this page you can find the example usage for org.apache.thrift.transport TTransportFactory subclass-usage.

Usage

From source file com.alibaba.dubbo.rpc.protocol.thrift.FramedTransportFactory.java

/**
 * @author <a href="mailto:gang.lvg@alibaba-inc.com">kimi</a>
 */
public class FramedTransportFactory extends TTransportFactory {

    @Override

From source file joshelser.TUGIAssumingTransportFactory.java

/**
 * A TransportFactory that wraps another one, but assumes a specified UGI before calling through.
 *
 * This is used on the server side to assume the server's Principal when accepting clients.
 *
 * Borrowed from Apache Hive 0.14

From source file org.apache.accumulo.core.rpc.UGIAssumingTransportFactory.java

/**
 * A TransportFactory that wraps another one, but assumes a specified UGI before calling through.
 *
 * This is used on the server side to assume the server's Principal when accepting clients.
 *
 * Borrowed from Apache Hive 0.14

From source file org.apache.cassandra.cli.transport.FramedTransportFactory.java

public class FramedTransportFactory extends TTransportFactory {
    public static final int DEFAULT_MAX_FRAME_SIZE = 15 * 1024 * 1024; // 15 MiB

    public TTransport getTransport(TTransport base) {
        return new TFramedTransport(base, DEFAULT_MAX_FRAME_SIZE);
    }

From source file org.apache.cassandra.cli.transport.SimpleTransportFactory.java

/**
 * Almost a noop factory, getTransport() method returns back the argument
 */
public class SimpleTransportFactory extends TTransportFactory {
    public TTransport getTransport(TTransport transport) {
        return transport;

From source file org.apache.cassandra.cli.transport.SSLTransportFactory.java

public class SSLTransportFactory extends TTransportFactory {
    private static final int SOCKET_TIMEOUT = 0;

    public TTransport getTransport(TTransport trans) {
        final CliSessionState sessionState = CliMain.sessionState;
        try {

From source file org.apache.dubbo.rpc.protocol.thrift.FramedTransportFactory.java

public class FramedTransportFactory extends TTransportFactory {

    @Override
    public TTransport getTransport(TTransport trans) {

        return new TFramedTransport(trans);