/** * Wait to see *all* cores live and active. * * @param zkStateReader * to use for ClusterState * @param timeoutInMs * how long to wait before giving up * @return false if timed out */ public static boolean waitForAllActiveAndLiveReplicas(ZkStateReader zkStateReader, int timeoutInMs) { return waitForAllActiveAndLiveReplicas(zkStateReader, null, timeoutInMs); }
/** * Wait to see *all* cores live and active. * * @param zkStateReader * to use for ClusterState * @param timeoutInMs * how long to wait before giving up * @return false if timed out */ public static boolean waitForAllActiveAndLiveReplicas(ZkStateReader zkStateReader, int timeoutInMs) { return waitForAllActiveAndLiveReplicas(zkStateReader, null, timeoutInMs); }