use of org.apache.cassandra.net.StartupClusterConnectivityChecker in project cassandra by apache.
the class CassandraDaemon method start.
/**
* Start the Cassandra Daemon, assuming that it has already been
* initialized via {@link #init(String[])}
*
* Hook for JSVC
*/
public void start() {
StartupClusterConnectivityChecker connectivityChecker = StartupClusterConnectivityChecker.create(DatabaseDescriptor.getBlockForPeersTimeoutInSeconds(), DatabaseDescriptor.getBlockForPeersInRemoteDatacenters());
connectivityChecker.execute(Gossiper.instance.getEndpoints(), DatabaseDescriptor.getEndpointSnitch()::getDatacenter);
// when bootstrap has not completed.
try {
validateTransportsCanStart();
} catch (IllegalStateException isx) {
// If there are any errors, we just log and return in this case
logger.warn(isx.getMessage());
return;
}
startClientTransports();
}
Aggregations