public final class

ZKUtil

extends Object
java.lang.Object
   ↳ org.apache.helix.manager.zk.ZKUtil

Summary

Public Methods
static void asyncCreateOrUpdate(ZkClient client, String path, ZNRecord record, boolean persistent, boolean mergeOnUpdate)
static void createChildren(ZkClient client, String parentPath, List<ZNRecord> list)
static void createChildren(ZkClient client, String parentPath, ZNRecord nodeRecord)
static void createOrReplace(ZkClient client, String path, ZNRecord record, boolean persistent)
static void createOrUpdate(ZkClient client, String path, ZNRecord record, boolean persistent, boolean mergeOnUpdate)
static void dropChildren(ZkClient client, String parentPath, ZNRecord nodeRecord)
static void dropChildren(ZkClient client, String parentPath, List<ZNRecord> list)
static List<ZNRecord> getChildren(ZkClient client, String path)
static boolean isClusterSetup(String clusterName, ZkClient zkClient)
static boolean isInstanceSetup(ZkClient zkclient, String clusterName, String instanceName, InstanceType type)
static void subtract(ZkClient client, String path, ZNRecord recordTosubtract)
static void updateIfExists(ZkClient client, String path, ZNRecord record, boolean mergeOnUpdate)
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static void asyncCreateOrUpdate (ZkClient client, String path, ZNRecord record, boolean persistent, boolean mergeOnUpdate)

public static void createChildren (ZkClient client, String parentPath, List<ZNRecord> list)

public static void createChildren (ZkClient client, String parentPath, ZNRecord nodeRecord)

public static void createOrReplace (ZkClient client, String path, ZNRecord record, boolean persistent)

public static void createOrUpdate (ZkClient client, String path, ZNRecord record, boolean persistent, boolean mergeOnUpdate)

public static void dropChildren (ZkClient client, String parentPath, ZNRecord nodeRecord)

public static void dropChildren (ZkClient client, String parentPath, List<ZNRecord> list)

public static List<ZNRecord> getChildren (ZkClient client, String path)

public static boolean isClusterSetup (String clusterName, ZkClient zkClient)

public static boolean isInstanceSetup (ZkClient zkclient, String clusterName, String instanceName, InstanceType type)

public static void subtract (ZkClient client, String path, ZNRecord recordTosubtract)

public static void updateIfExists (ZkClient client, String path, ZNRecord record, boolean mergeOnUpdate)