public CassandraHostRetryService(HConnectionManager connectionManager, HClientFactory clientFactory, CassandraHostConfigurator cassandraHostConfigurator, ConnectionManagerListenersHandler listenerHandler) { super(connectionManager, cassandraHostConfigurator); this.clientFactory = clientFactory; this.listenerHandler = listenerHandler; this.retryDelayInSeconds = cassandraHostConfigurator.getRetryDownedHostsDelayInSeconds(); this.autoDiscoverHosts = cassandraHostConfigurator.getAutoDiscoverHosts(); downedHostQueue = new LinkedBlockingQueue<CassandraHost>(cassandraHostConfigurator.getRetryDownedHostsQueueSize() < 1 ? Integer.MAX_VALUE : cassandraHostConfigurator.getRetryDownedHostsQueueSize()); sf = executor.scheduleWithFixedDelay(new RetryRunner(), this.retryDelayInSeconds,this.retryDelayInSeconds, TimeUnit.SECONDS); log.info("Downed Host Retry service started with queue size {} and retry delay {}s", cassandraHostConfigurator.getRetryDownedHostsQueueSize(), retryDelayInSeconds); }
log.debug("JNDI resource created with CassandraHostConfiguration: {}", cassandraHostConfigurator.getAutoDiscoverHosts());
this.cassandraHostConfigurator = cassandraHostConfigurator; hostPoolValues = hostPools.values(); if ( cassandraHostConfigurator.getAutoDiscoverHosts() ) { nodeAutoDiscoverService = new NodeAutoDiscoverService(this, cassandraHostConfigurator);
public void doAddNodes() { if (nodeAutoDiscoverService != null) { nodeAutoDiscoverService.doAddNodes(); } else { log.warn("unable to add nodes, nodeAutoDiscoverService was null. " + "CassandraHostConfigurator.autoDiscoverHosts is {}", cassandraHostConfigurator.getAutoDiscoverHosts()); } }
public CassandraHostRetryService(HConnectionManager connectionManager, HClientFactory clientFactory, CassandraHostConfigurator cassandraHostConfigurator, ConnectionManagerListenersHandler listenerHandler) { super(connectionManager, cassandraHostConfigurator); this.clientFactory = clientFactory; this.listenerHandler = listenerHandler; this.retryDelayInSeconds = cassandraHostConfigurator.getRetryDownedHostsDelayInSeconds(); this.autoDiscoverHosts = cassandraHostConfigurator.getAutoDiscoverHosts(); downedHostQueue = new LinkedBlockingQueue<CassandraHost>(cassandraHostConfigurator.getRetryDownedHostsQueueSize() < 1 ? Integer.MAX_VALUE : cassandraHostConfigurator.getRetryDownedHostsQueueSize()); sf = executor.scheduleWithFixedDelay(new RetryRunner(), this.retryDelayInSeconds,this.retryDelayInSeconds, TimeUnit.SECONDS); log.info("Downed Host Retry service started with queue size {} and retry delay {}s", cassandraHostConfigurator.getRetryDownedHostsQueueSize(), retryDelayInSeconds); }
log.debug("JNDI resource created with CassandraHostConfiguration: {}", cassandraHostConfigurator.getAutoDiscoverHosts());
log.debug("JNDI resource created with CassandraHostConfiguration: {}", cassandraHostConfigurator.getAutoDiscoverHosts());
this.cassandraHostConfigurator = cassandraHostConfigurator; hostPoolValues = hostPools.values(); if ( cassandraHostConfigurator.getAutoDiscoverHosts() ) { nodeAutoDiscoverService = new NodeAutoDiscoverService(this, cassandraHostConfigurator);
this.cassandraHostConfigurator = cassandraHostConfigurator; hostPoolValues = hostPools.values(); if ( cassandraHostConfigurator.getAutoDiscoverHosts() ) { nodeAutoDiscoverService = new NodeAutoDiscoverService(this, cassandraHostConfigurator);