Package org.apache.cassandra.thrift

Examples of org.apache.cassandra.thrift.TBinaryProtocol$Factory


        for (String seed : seeds_)
        {
            try
            {
                TSocket socket = new TSocket(seed, port_);
                TBinaryProtocol binaryProtocol = new TBinaryProtocol(new TFramedTransport(socket));
                Cassandra.Client client = new Cassandra.Client(binaryProtocol);
                socket.open();

                List<TokenRange> ring = client.describe_ring(keyspace);
                rangeMap = ArrayListMultimap.create();
View Full Code Here


        }
        catch (TTransportException e)
        {
            throw new IOException("unable to connect to server", e);
        }
        return new Cassandra.Client(new TBinaryProtocol(trans));
    }
View Full Code Here

        for (String seed : seeds_)
        {
            try
            {
                TSocket socket = new TSocket(seed, port_);
                TBinaryProtocol binaryProtocol = new TBinaryProtocol(new TFramedTransport(socket));
                Cassandra.Client client = new Cassandra.Client(binaryProtocol);
                socket.open();

                List<TokenRange> ring = client.describe_ring(keyspace);
                rangeMap = ArrayListMultimap.create();
View Full Code Here

        }
        catch (TTransportException e)
        {
            throw new IOException("unable to connect to server", e);
        }
        return new Cassandra.Client(new TBinaryProtocol(trans));
    }
View Full Code Here

        }
        catch (TTransportException e)
        {
            throw new IOException("unable to connect to server", e);
        }
        return new Cassandra.Client(new TBinaryProtocol(trans));
    }
View Full Code Here

        }
        catch (TTransportException e)
        {
            throw new IOException("unable to connect to server", e);
        }
        return new Cassandra.Client(new TBinaryProtocol(trans));
    }
View Full Code Here

        }
        catch (TTransportException e)
        {
            throw new IOException("unable to connect to server", e);
        }
        return new Cassandra.Client(new TBinaryProtocol(trans));
    }
View Full Code Here

        createTime = System.currentTimeMillis();
        logger.debug("Created connection [" + this.id + "] at [" + new Date(this.createTime) + "]");
        if (!embedded) {
            this.socket = new TSocket(VirgilConfiguration.getHost(), VirgilConfiguration.getPort());
            this.transport = new TFramedTransport(socket);
            TProtocol proto = new TBinaryProtocol(transport);
            this.connection = new Cassandra.Client(proto);
            transport.open();
        } else {
            this.connection = new CassandraServer();
        }
View Full Code Here

        catch (TTransportException e)
        {
            throw new IOException("unable to connect to brisk server");
        }

        Brisk.Iface client = new Brisk.Client(new TBinaryProtocol(trans));

        return client;
    }
View Full Code Here

TOP

Related Classes of org.apache.cassandra.thrift.TBinaryProtocol$Factory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.