public void onSuccess(List<Boolean> poolCreationResults) { // If any of the creation failed, they will have signaled a connection failure // which will trigger a reconnection to the node. So don't bother marking UP. if (Iterables.any(poolCreationResults, Predicates.equalTo(false))) { logger.debug("Connection pool cannot be created, not marking {} UP", host); return; } host.setUp(); for (Host.StateListener listener : listeners) listener.onUp(host); // Now, check if there isn't pools to create/remove following the addition. // We do that now only so that it's not called before we've set the node up. for (SessionManager s : sessions) s.updateCreatedPools(blockingExecutor); }
public void onSuccess(List<Boolean> poolCreationResults) { // If any of the creation failed, they will have signaled a connection failure // which will trigger a reconnection to the node. So don't bother marking UP. if (Iterables.any(poolCreationResults, Predicates.equalTo(false))) { logger.debug("Connection pool cannot be created, not marking {} UP", host); return; } host.setUp(); for (Host.StateListener listener : listeners) listener.onAdd(host); // Now, check if there isn't pools to create/remove following the addition. // We do that now only so that it's not called before we've set the node up. for (SessionManager s : sessions) s.updateCreatedPools(blockingExecutor); }
host.setUp(); for (Host.StateListener listener : listeners) listener.onAdd(host);
host.setUp(); for (Host.StateListener listener : listeners) listener.onAdd(host);
loadBalancingPolicy().onAdd(host); host.setUp();
loadBalancingPolicy().onAdd(host); host.setUp();
loadBalancingPolicy().onAdd(host); host.setUp();