Examples of buildCluster()


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

        return context;
    }
   
    public static AstyanaxContext<Cluster> newClusterContext(String hostString){
        Builder builder = newBuilder(hostString);
        AstyanaxContext<Cluster> context = builder.buildCluster(ThriftFamilyFactory.getInstance());
        context.start();
        return context;
    }
   
    public static void createColumnFamily(AstyanaxContext<Cluster> ctx,String ks, String cf, String comparator,
View Full Code Here

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

//      throw new IllegalArgumentException("The property Bootstrap.CLUSTER_NAME was not in the Map or was in the Map but not as a String");
    if(builderObj == null || !(builderObj instanceof Builder))
      throw new IllegalArgumentException("The property Bootstrap.CASSANDRA_BUILDER was not in the Map or was in Map but was not of type Builder and must be supplied when using Cassandra plugin");

    Builder builder = (Builder) builderObj;
    clusterContext = builder.buildCluster(ThriftFamilyFactory.getInstance());
    keyspaceName = clusterContext.getKeyspaceName();
    if(keyspaceName == null)
      throw new IllegalArgumentException("You did not call Builder.forKeyspace on the astyanax Builder api.  We need to know the keyspace to continue");
   
    clusterContext.start();
View Full Code Here

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

//      throw new IllegalArgumentException("The property Bootstrap.CLUSTER_NAME was not in the Map or was in the Map but not as a String");
    if(builderObj == null || !(builderObj instanceof Builder))
      throw new IllegalArgumentException("The property Bootstrap.CASSANDRA_BUILDER was not in the Map or was in Map but was not of type Builder and must be supplied when using Cassandra plugin");

    Builder builder = (Builder) builderObj;
    clusterContext = builder.buildCluster(ThriftFamilyFactory.getInstance());
    keyspaceName = clusterContext.getKeyspaceName();
    if(keyspaceName == null)
      throw new IllegalArgumentException("You did not call Builder.forKeyspace on the astyanax Builder api.  We need to know the keyspace to continue");
   
    clusterContext.start();
View Full Code Here

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

      throw new IllegalArgumentException("The property Bootstrap.CASSANDRA_BUILDER was not in the Map or was in Map but was not of type Builder and must be supplied when using Cassandra plugin");

    callback = (CreateCfCallback) properties.get(SpiConstants.CASSANDRA_CF_CREATE_CALLBACK);
   
    Builder builder = (Builder) builderObj;
    clusterContext = builder.buildCluster(ThriftFamilyFactory.getInstance());
    keyspaceName = clusterContext.getKeyspaceName();
    if(keyspaceName == null)
      throw new IllegalArgumentException("You did not call Builder.forKeyspace on the astyanax Builder api.  We need to know the keyspace to continue");
   
    clusterContext.start();
View Full Code Here

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

//      throw new IllegalArgumentException("The property Bootstrap.CLUSTER_NAME was not in the Map or was in the Map but not as a String");
    if(builderObj == null || !(builderObj instanceof Builder))
      throw new IllegalArgumentException("The property Bootstrap.CASSANDRA_BUILDER was not in the Map or was in Map but was not of type Builder and must be supplied when using Cassandra plugin");

    Builder builder = (Builder) builderObj;
    AstyanaxContext<Cluster> clusterContext = builder.buildCluster(ThriftFamilyFactory.getInstance());
    keyspaceName = clusterContext.getKeyspaceName();
    if(keyspaceName == null)
      throw new IllegalArgumentException("You did not call Builder.forKeyspace on the astyanax Builder api.  We need to know the keyspace to continue");
   
    clusterContext.start();
View Full Code Here

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

      throw new IllegalArgumentException("The property Bootstrap.CASSANDRA_BUILDER was not in the Map or was in Map but was not of type Builder and must be supplied when using Cassandra plugin");

    callback = (CreateCfCallback) properties.get(SpiConstants.CASSANDRA_CF_CREATE_CALLBACK);
   
    Builder builder = (Builder) builderObj;
    clusterContext = builder.buildCluster(ThriftFamilyFactory.getInstance());
    keyspaceName = clusterContext.getKeyspaceName();
    if(keyspaceName == null)
      throw new IllegalArgumentException("You did not call Builder.forKeyspace on the astyanax Builder api.  We need to know the keyspace to continue");
   
    clusterContext.start();
View Full Code Here

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

//      throw new IllegalArgumentException("The property Bootstrap.CLUSTER_NAME was not in the Map or was in the Map but not as a String");
    if(builderObj == null || !(builderObj instanceof Builder))
      throw new IllegalArgumentException("The property Bootstrap.CASSANDRA_BUILDER was not in the Map or was in Map but was not of type Builder and must be supplied when using Cassandra plugin");

    Builder builder = (Builder) builderObj;
    clusterContext = builder.buildCluster(ThriftFamilyFactory.getInstance());
    keyspaceName = clusterContext.getKeyspaceName();
    if(keyspaceName == null)
      throw new IllegalArgumentException("You did not call Builder.forKeyspace on the astyanax Builder api.  We need to know the keyspace to continue");
   
    clusterContext.start();
View Full Code Here

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

//      throw new IllegalArgumentException("The property Bootstrap.CLUSTER_NAME was not in the Map or was in the Map but not as a String");
    if(builderObj == null || !(builderObj instanceof Builder))
      throw new IllegalArgumentException("The property Bootstrap.CASSANDRA_BUILDER was not in the Map or was in Map but was not of type Builder and must be supplied when using Cassandra plugin");

    Builder builder = (Builder) builderObj;
    clusterContext = builder.buildCluster(ThriftFamilyFactory.getInstance());
    keyspaceName = clusterContext.getKeyspaceName();
    if(keyspaceName == null)
      throw new IllegalArgumentException("You did not call Builder.forKeyspace on the astyanax Builder api.  We need to know the keyspace to continue");
   
    clusterContext.start();
View Full Code Here

Examples of com.pardot.rhombus.ConnectionManager.buildCluster()

  public void testBuildCluster() throws Exception {
    logger.debug("testBuildCluster");
    //Get a connection manager based on the test properties
    ConnectionManager connectionManager = TestHelpers.getTestConnectionManager();
    connectionManager.setLogCql(true);
    Cluster cassCluster = connectionManager.buildCluster(true);
    assertNotNull(connectionManager);

    assertEquals(1,cassCluster.getMetadata().getAllHosts().size());
    assertEquals(cassCluster.getMetadata().getClusterName(), "Test Cluster");
View Full Code Here

Examples of com.pardot.rhombus.ConnectionManager.buildCluster()

public class CassandraConnectionITCase extends RhombusFunctionalTest {

  @Test
  public void testKeyspaceCreate() throws IOException {
    ConnectionManager cm = TestHelpers.getTestConnectionManager();
    cm.buildCluster();
    Session session = cm.getEmptySession();
    assertNotNull(session);

    //Drop the functional keyspace if it exists
    try {
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.