Package org.apache.pinot.tools
Class ClusterStateVerifier
- java.lang.Object
-
- org.apache.pinot.tools.PinotZKChanger
-
- org.apache.pinot.tools.ClusterStateVerifier
-
public class ClusterStateVerifier extends PinotZKChanger
-
-
Field Summary
-
Fields inherited from class org.apache.pinot.tools.PinotZKChanger
_clusterName, _helixAdmin, _helixManager, _propertyStore
-
-
Constructor Summary
Constructors Constructor Description ClusterStateVerifier(String zkAddress, String clusterName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanverifyClusterState(String tableName, long timeoutSec)Assemble and scan the candidate table names, return true if all the tables are stable.-
Methods inherited from class org.apache.pinot.tools.PinotZKChanger
getHelixAdmin, getHelixManager, isStable, printSegmentAssignment, waitForStable
-
-
-
-
Method Detail
-
verifyClusterState
public boolean verifyClusterState(String tableName, long timeoutSec)
Assemble and scan the candidate table names, return true if all the tables are stable.- Parameters:
tableName- optional table names which is provided by user and about to scantimeoutSec- maximum timeout in second- Returns:
-
-