public class ZKUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
AGGREGATES |
static String |
BARRIERS |
static String |
GRAPHS_PATH |
static String |
GROUP |
static String |
LEADER |
static String |
PREGEL_PATH |
static String |
READY |
static String |
SUPERSTEP |
Constructor and Description |
---|
ZKUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
addChild(org.apache.curator.framework.CuratorFramework curator,
String id,
PregelState pregelState,
String child) |
static void |
addChild(org.apache.curator.framework.CuratorFramework curator,
String id,
PregelState pregelState,
String child,
org.apache.zookeeper.CreateMode createMode) |
static void |
addChild(org.apache.curator.framework.CuratorFramework curator,
String rootPath,
String child,
org.apache.zookeeper.CreateMode createMode) |
static void |
addChild(org.apache.curator.framework.CuratorFramework curator,
String rootPath,
String child,
org.apache.zookeeper.CreateMode createMode,
byte[] data) |
protected static String |
aggregatePath(String id,
int superstep) |
protected static String |
barrierPath(String id,
PregelState pregelState) |
static org.apache.curator.framework.CuratorFramework |
createCurator(String zookeeperConnect) |
static byte[] |
getChildData(org.apache.curator.framework.CuratorFramework curator,
String rootPath,
String child) |
static boolean |
hasChild(org.apache.curator.framework.CuratorFramework curator,
String id,
PregelState pregelState,
String child) |
static boolean |
hasChild(org.apache.curator.framework.CuratorFramework curator,
String rootPath,
String child) |
static boolean |
isReady(org.apache.curator.framework.CuratorFramework curator,
String id,
PregelState pregelState) |
static PregelState |
maybeCreateReadyToReceiveNode(org.apache.curator.framework.CuratorFramework curator,
String id,
PregelState pregelState,
org.apache.curator.framework.recipes.cache.TreeCache treeCache) |
static PregelState |
maybeCreateReadyToSendNode(org.apache.curator.framework.CuratorFramework curator,
String id,
PregelState pregelState,
org.apache.curator.framework.recipes.cache.TreeCache treeCache,
int groupSize) |
static void |
removeChild(org.apache.curator.framework.CuratorFramework curator,
String id,
PregelState pregelState,
String child) |
static void |
removeChild(org.apache.curator.framework.CuratorFramework curator,
String rootPath,
String child) |
static void |
removeRoot(org.apache.curator.framework.CuratorFramework curator,
String id) |
static void |
updateChild(org.apache.curator.framework.CuratorFramework curator,
String rootPath,
String child,
byte[] data) |
public static final String GRAPHS_PATH
public static final String PREGEL_PATH
public static final String AGGREGATES
public static final String BARRIERS
public static final String GROUP
public static final String LEADER
public static final String READY
public static final String SUPERSTEP
public static org.apache.curator.framework.CuratorFramework createCurator(String zookeeperConnect)
public static PregelState maybeCreateReadyToSendNode(org.apache.curator.framework.CuratorFramework curator, String id, PregelState pregelState, org.apache.curator.framework.recipes.cache.TreeCache treeCache, int groupSize) throws Exception
Exception
public static PregelState maybeCreateReadyToReceiveNode(org.apache.curator.framework.CuratorFramework curator, String id, PregelState pregelState, org.apache.curator.framework.recipes.cache.TreeCache treeCache) throws Exception
Exception
public static boolean isReady(org.apache.curator.framework.CuratorFramework curator, String id, PregelState pregelState) throws Exception
Exception
public static boolean hasChild(org.apache.curator.framework.CuratorFramework curator, String id, PregelState pregelState, String child) throws Exception
Exception
public static boolean hasChild(org.apache.curator.framework.CuratorFramework curator, String rootPath, String child) throws Exception
Exception
public static void addChild(org.apache.curator.framework.CuratorFramework curator, String id, PregelState pregelState, String child) throws Exception
Exception
public static void addChild(org.apache.curator.framework.CuratorFramework curator, String id, PregelState pregelState, String child, org.apache.zookeeper.CreateMode createMode) throws Exception
Exception
public static void addChild(org.apache.curator.framework.CuratorFramework curator, String rootPath, String child, org.apache.zookeeper.CreateMode createMode) throws Exception
Exception
public static void addChild(org.apache.curator.framework.CuratorFramework curator, String rootPath, String child, org.apache.zookeeper.CreateMode createMode, byte[] data) throws Exception
Exception
public static byte[] getChildData(org.apache.curator.framework.CuratorFramework curator, String rootPath, String child) throws Exception
Exception
public static void updateChild(org.apache.curator.framework.CuratorFramework curator, String rootPath, String child, byte[] data) throws Exception
Exception
public static void removeChild(org.apache.curator.framework.CuratorFramework curator, String id, PregelState pregelState, String child) throws Exception
Exception
public static void removeChild(org.apache.curator.framework.CuratorFramework curator, String rootPath, String child) throws Exception
Exception
public static void removeRoot(org.apache.curator.framework.CuratorFramework curator, String id) throws Exception
Exception
protected static String barrierPath(String id, PregelState pregelState)
Copyright © 2020. All rights reserved.