Package com.netflix.astyanax.AstyanaxContext

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


//      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

//      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

      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

//      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

      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

//      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

//      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

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.