Package com.netflix.astyanax.model

Examples of com.netflix.astyanax.model.ConsistencyLevel


      .withConnectionPoolConfiguration(poolConfig)
      .withConnectionPoolMonitor(new CountingConnectionPoolMonitor());

    String clStr = (String) properties.get(Bootstrap.CASSANDRA_DEFAULT_CONSISTENCY_LEVEL);
    if(clStr != null) {
      ConsistencyLevel cl = null;
      for(ConsistencyLevel l : ConsistencyLevel.values()) {
        if(l.toString().equals(clStr)) {
          cl = l;
          break;
        }
View Full Code Here


      .withConnectionPoolConfiguration(poolConfig)
      .withConnectionPoolMonitor(new CountingConnectionPoolMonitor());

    String clStr = (String) properties.get(Bootstrap.CASSANDRA_DEFAULT_CONSISTENCY_LEVEL);
    if(clStr != null) {
      ConsistencyLevel cl = null;
      for(ConsistencyLevel l : ConsistencyLevel.values()) {
        if(l.toString().equals(clStr)) {
          cl = l;
          break;
        }
View Full Code Here

        final AtomicLong insertCount = new AtomicLong(0);
        final long max_count = 1000000;

        final CountingQueueStats stats = new CountingQueueStats();

        final ConsistencyLevel cl = ConsistencyLevel.CL_ONE;
        final MessageQueue scheduler = new ShardedDistributedMessageQueue.Builder()
                .withColumnFamily(SCHEDULER_NAME_CF_NAME)
                .withQueueName("StressQueue"+qNameSfx)
                .withKeyspace(keyspace)
                .withConsistencyLevel(cl)
View Full Code Here

    }
  }
 
  private ConsistencyLevel getDefaultCL(KeyspaceContext ksContext) {
   
    ConsistencyLevel clLevel = ksContext.getConfig().getDefaultReadConsistencyLevel();
   
    CassandraOperationCategory op = getOperationType().getCategory();
    switch (op) {
    case READ:
      clLevel = ksContext.getConfig().getDefaultReadConsistencyLevel();
View Full Code Here

   
    return clLevel;
  }
 
  private com.datastax.driver.core.ConsistencyLevel resolveConsistencyLevel(KeyspaceContext ksContext, CFQueryContext<?,?> cfContext) {
    ConsistencyLevel clLevel = null;
    if (cfContext != null) {
      clLevel = cfContext.getConsistencyLevel();
    }
    if (clLevel == null) {
      clLevel = getDefaultCL(ksContext);
View Full Code Here

TOP

Related Classes of com.netflix.astyanax.model.ConsistencyLevel

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.