this.metadata = new Metadata(this); this.connectionFactory = new Connection.Factory(this, configuration); this.controlConnection = new ControlConnection(this);
private Manager(String clusterName, List<InetSocketAddress> contactPoints, Configuration configuration, Collection<Host.StateListener> listeners) { logger.debug("Starting new cluster with contact points " + contactPoints); this.clusterName = clusterName == null ? generateClusterName() : clusterName; this.configuration = configuration; this.configuration.register(this); this.executor = makeExecutor(Runtime.getRuntime().availableProcessors(), "Cassandra Java Driver worker-%d"); this.blockingExecutor = makeExecutor(2, "Cassandra Java Driver blocking tasks worker-%d"); this.metadata = new Metadata(this); this.contactPoints = contactPoints; this.connectionFactory = new Connection.Factory(this, configuration); this.controlConnection = new ControlConnection(this); this.metrics = configuration.getMetricsOptions() == null ? null : new Metrics(this); this.listeners = new CopyOnWriteArraySet<Host.StateListener>(listeners); }
this.metadata = new Metadata(this); this.connectionFactory = new Connection.Factory(this, configuration); this.controlConnection = new ControlConnection(this);
this.metadata = new Metadata(this); this.connectionFactory = new Connection.Factory(this, configuration); this.controlConnection = new ControlConnection(this);
this.metadata = new Metadata(this); this.connectionFactory = new Connection.Factory(this, configuration); this.controlConnection = new ControlConnection(this);