Package org.apache.cassandra.net
Class StartupClusterConnectivityChecker
- java.lang.Object
-
- org.apache.cassandra.net.StartupClusterConnectivityChecker
-
public class StartupClusterConnectivityChecker extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StartupClusterConnectivityChecker
create(long timeoutSecs, boolean blockForRemoteDcs)
boolean
execute(java.util.Set<InetAddressAndPort> peers, java.util.function.Function<InetAddressAndPort,java.lang.String> getDatacenterSource)
-
-
-
Method Detail
-
create
public static StartupClusterConnectivityChecker create(long timeoutSecs, boolean blockForRemoteDcs)
-
execute
public boolean execute(java.util.Set<InetAddressAndPort> peers, java.util.function.Function<InetAddressAndPort,java.lang.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.
-
-