public class PinotZKChanger extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
clusterName |
protected org.apache.helix.manager.zk.ZKHelixAdmin |
helixAdmin |
protected org.apache.helix.HelixManager |
helixManager |
protected org.apache.helix.store.zk.ZkHelixPropertyStore<org.apache.helix.ZNRecord> |
propertyStore |
| Constructor and Description |
|---|
PinotZKChanger(String zkAddress,
String clusterName) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.helix.manager.zk.ZKHelixAdmin |
getHelixAdmin() |
org.apache.helix.HelixManager |
getHelixManager() |
int |
isStable(String tableName)
return true if IdealState = ExternalView
|
protected void |
printSegmentAssignment(Map<String,Map<String,String>> mapping) |
void |
waitForStable(String resourceName)
Wait till state has stabilized
isStable(String) |
protected org.apache.helix.manager.zk.ZKHelixAdmin helixAdmin
protected org.apache.helix.HelixManager helixManager
protected String clusterName
protected org.apache.helix.store.zk.ZkHelixPropertyStore<org.apache.helix.ZNRecord> propertyStore
public org.apache.helix.manager.zk.ZKHelixAdmin getHelixAdmin()
public int isStable(String tableName)
public void waitForStable(String resourceName) throws InterruptedException
isStable(String)resourceName - InterruptedExceptionprotected void printSegmentAssignment(Map<String,Map<String,String>> mapping) throws Exception
Exceptionpublic org.apache.helix.HelixManager getHelixManager()
Copyright © 2018–2020 Apache Software Foundation. All rights reserved.