public class ClusterStateUtil extends Object
| Constructor and Description |
|---|
ClusterStateUtil() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isAutoAddReplicas(ZkStateReader reader,
String collection) |
static boolean |
waitForAllActiveAndLive(ZkStateReader zkStateReader,
int timeoutInMs)
Wait to see *all* cores live and active.
|
static boolean |
waitForAllActiveAndLive(ZkStateReader zkStateReader,
String collection,
int timeoutInMs)
Wait to see *all* cores live and active.
|
static boolean |
waitForAllNotLive(ZkStateReader zkStateReader,
int timeoutInMs) |
static boolean |
waitForAllNotLive(ZkStateReader zkStateReader,
String collection,
int timeoutInMs) |
static boolean |
waitToSeeLive(ZkStateReader zkStateReader,
String collection,
String coreNodeName,
String baseUrl,
int timeoutInMs)
Wait to see an entry in the ClusterState with a specific coreNodeName and
baseUrl.
|
public static boolean waitForAllActiveAndLive(ZkStateReader zkStateReader, int timeoutInMs)
zkStateReader - to use for ClusterStatetimeoutInMs - how long to wait before giving uppublic static boolean waitForAllActiveAndLive(ZkStateReader zkStateReader, String collection, int timeoutInMs)
zkStateReader - to use for ClusterStatecollection - to look attimeoutInMs - how long to wait before giving uppublic static boolean waitToSeeLive(ZkStateReader zkStateReader, String collection, String coreNodeName, String baseUrl, int timeoutInMs)
zkStateReader - to use for ClusterStatecollection - to look incoreNodeName - to wait forbaseUrl - to wait fortimeoutInMs - how long to wait before giving uppublic static boolean waitForAllNotLive(ZkStateReader zkStateReader, int timeoutInMs)
public static boolean waitForAllNotLive(ZkStateReader zkStateReader, String collection, int timeoutInMs)
public static boolean isAutoAddReplicas(ZkStateReader reader, String collection)
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.