Package com.netflix.astyanax.connectionpool.impl

Examples of com.netflix.astyanax.connectionpool.impl.CountingConnectionPoolMonitor


                                .setDiscoveryType(NodeDiscoveryType.NONE))
                .withConnectionPoolConfiguration(
                        new ConnectionPoolConfigurationImpl(clusterName + "_"
                                + TEST_KEYSPACE_NAME).setMaxConnsPerHost(1)
                                .setSeeds(SEEDS))
                .withConnectionPoolMonitor(new CountingConnectionPoolMonitor())
                .buildKeyspace(ThriftFamilyFactory.getInstance());

        ColumnFamily<String, String> cf = new ColumnFamily<String, String>(
                "DoesntExist", StringSerializer.get(), StringSerializer.get());
        try {
View Full Code Here


                            .setMaxTimeoutWhenExhausted(2000)
                            .setMaxConnsPerHost(20)
                            .setInitConnsPerHost(10)
                            .setSeeds(SEEDS)
                            )
            .withConnectionPoolMonitor(new CountingConnectionPoolMonitor())
            .buildKeyspace(ThriftFamilyFactory.getInstance());
       
        kc.start();

        Keyspace ks = kc.getClient();
View Full Code Here

                                .setInitConnsPerHost(10)
                                .setSeeds(SEEDS)
                                .setPort(9042)
                                )
                .withHostSupplier(HostSupplier)
                .withConnectionPoolMonitor(new CountingConnectionPoolMonitor())
                .buildCluster(CqlFamilyFactory.getInstance());

      return context;
    }
View Full Code Here

              .setInitConnsPerHost(10)
              .setSeeds(SEEDS)
              .setPort(9160)
              )
              .withHostSupplier(HostSupplier)
              .withConnectionPoolMonitor(new CountingConnectionPoolMonitor())
              .buildCluster(ThriftFamilyFactory.getInstance());

      return context;
    }
View Full Code Here

                                .setInitConnsPerHost(10)
                                .setSeeds(SEEDS)
                                .setPort(9160)
                                )
                .withHostSupplier(HostSupplier)
                .withConnectionPoolMonitor(new CountingConnectionPoolMonitor())
                .buildKeyspace(ThriftFamilyFactory.getInstance());

      return context;
    }
View Full Code Here

                        .setMaxConnsPerHost(DynamicPropertyFactory.getInstance().getIntProperty(RSSConstants.CASSANDRA_MAXCONNSPERHOST, 1).get())
                        .setSeeds(DynamicPropertyFactory.getInstance().getStringProperty(RSSConstants.CASSANDRA_HOST, "").get() + ":" +
                                  DynamicPropertyFactory.getInstance().getIntProperty(RSSConstants.CASSANDRA_PORT, 0).get()
                        )
                    )
                    .withConnectionPoolMonitor(new CountingConnectionPoolMonitor())
                    .buildKeyspace(ThriftFamilyFactory.getInstance());

                context.start();
                ks = context.getEntity();
            } catch (Exception e) {
View Full Code Here

    AstyanaxContext<Keyspace> context = new AstyanaxContext.Builder()
        .forCluster(CLUSTER_NAME).forKeyspace(KEYSPACE_NAME)
        .withAstyanaxConfiguration(astconfig)
        .withConnectionPoolConfiguration(poolconfig)
        .withConnectionPoolMonitor(new CountingConnectionPoolMonitor())
        .buildKeyspace(ThriftFamilyFactory.getInstance());
   
    context.start();
   
    KEYSPACE = context.getEntity();
View Full Code Here

TOP

Related Classes of com.netflix.astyanax.connectionpool.impl.CountingConnectionPoolMonitor

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.