Package org.apache.cassandra.net
Class StartupClusterConnectivityChecker
java.lang.Object
org.apache.cassandra.net.StartupClusterConnectivityChecker
-
Method Summary
Modifier and TypeMethodDescriptioncreate(long timeoutSecs, boolean blockForRemoteDcs) booleanexecute(Set<InetAddressAndPort> peers, Function<InetAddressAndPort, String> getDatacenterSource)
-
Method Details
-
create
-
execute
public boolean execute(Set<InetAddressAndPort> peers, Function<InetAddressAndPort, String> getDatacenterSource) - Parameters:
peers- The currently known peers in the cluster; argument is not modified.getDatacenterSource- A function for mapping peers to their datacenter.- Returns:
- true if the requested percentage of peers are marked ALIVE in gossip and have their connections opened; else false.
-