Examples of forKeyspace()


Examples of com.netflix.astyanax.AstyanaxContext.Builder.forKeyspace()

    }


    public static AstyanaxContext<Keyspace> newContext(String hostString, String keyspace) {
        Builder builder = newBuilder(hostString);
        AstyanaxContext<Keyspace> context = builder.forKeyspace(keyspace).buildKeyspace(ThriftFamilyFactory.getInstance());
        context.start();
        return context;
    }
   
    public static AstyanaxContext<Cluster> newClusterContext(String hostString){
View Full Code Here

Examples of com.netflix.astyanax.AstyanaxContext.Builder.forKeyspace()

                ConnectionPoolMonitor connectionPoolMonitor = new CountingConnectionPoolMonitor();
                // set this as field for logging purpose only.
                Builder builder = new AstyanaxContext.Builder();
                builder.forCluster(getClusterName());
                builder.forKeyspace(getKeyspaceName());
                builder.withAstyanaxConfiguration(configuration);
                builder.withConnectionPoolConfiguration(poolConfig);
                builder.withConnectionPoolMonitor(connectionPoolMonitor);
                builder.withConnectionPoolMonitor(new CountingConnectionPoolMonitor());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.