private ConnectionPool getConnectionPool(MaxwellBootstrapUtilityConfig config) { String name = "MaxwellBootstrapConnectionPool"; int maxPool = 10; int maxSize = 0; int idleTimeout = 10; String connectionURI = config.getConnectionURI(); return new ConnectionPool(name, maxPool, maxSize, idleTimeout, connectionURI, config.mysql.user, config.mysql.password); }
this.metrics = new MaxwellMetrics(config); this.replicationConnectionPool = new ConnectionPool("ReplicationConnectionPool", 10, 0, 10, config.replicationMysql.getConnectionURI(false), config.replicationMysql.user, config.replicationMysql.password); this.schemaConnectionPool = null; } else { this.schemaConnectionPool = new ConnectionPool( "SchemaConnectionPool", 10, this.rawMaxwellConnectionPool = new ConnectionPool("RawMaxwellConnectionPool", 1, 2, 100, config.maxwellMysql.getConnectionURI(false), config.maxwellMysql.user, config.maxwellMysql.password); this.maxwellConnectionPool = new ConnectionPool("MaxwellConnectionPool", 10, 0, 10, config.maxwellMysql.getConnectionURI(), config.maxwellMysql.user, config.maxwellMysql.password); this.maxwellConnectionPool.setCaching(false);
pool = new ConnectionPool(poolName, minPool, maxPool, maxSize, idleTimeout, url, poolProps); else pool = new ConnectionPool(poolName, minPool, maxPool, maxSize, idleTimeout, url, user, pass);
pool = new ConnectionPool(poolName, getMinPool(), getMaxPool(), getMaxSize(), getIdleTimeout(), getUrl(), props); pool.addConnectionPoolListener(this); if (getLogWriter() != null)