本文整理了Java中org.apache.flink.runtime.util.ZooKeeperUtils.generateZookeeperPath()
方法的一些代码示例,展示了ZooKeeperUtils.generateZookeeperPath()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZooKeeperUtils.generateZookeeperPath()
方法的具体详情如下:
包路径:org.apache.flink.runtime.util.ZooKeeperUtils
类名称:ZooKeeperUtils
方法名:generateZookeeperPath
暂无
代码示例来源:origin: org.apache.flink/flink-runtime_2.11
public ZooKeeperUtilityFactory(Configuration configuration, String path) throws Exception {
Preconditions.checkNotNull(path, "path");
root = ZooKeeperUtils.startCuratorFramework(configuration);
root.newNamespaceAwareEnsurePath(path).ensure(root.getZookeeperClient());
facade = root.usingNamespace(ZooKeeperUtils.generateZookeeperPath(root.getNamespace(), path));
}
代码示例来源:origin: org.apache.flink/flink-runtime_2.10
public ZooKeeperUtilityFactory(Configuration configuration, String path) throws Exception {
Preconditions.checkNotNull(path, "path");
root = ZooKeeperUtils.startCuratorFramework(configuration);
root.newNamespaceAwareEnsurePath(path).ensure(root.getZookeeperClient());
facade = root.usingNamespace(ZooKeeperUtils.generateZookeeperPath(root.getNamespace(), path));
}
代码示例来源:origin: org.apache.flink/flink-runtime
public ZooKeeperUtilityFactory(Configuration configuration, String path) throws Exception {
Preconditions.checkNotNull(path, "path");
root = ZooKeeperUtils.startCuratorFramework(configuration);
root.newNamespaceAwareEnsurePath(path).ensure(root.getZookeeperClient());
facade = root.usingNamespace(ZooKeeperUtils.generateZookeeperPath(root.getNamespace(), path));
}
代码示例来源:origin: com.alibaba.blink/flink-runtime
public ZooKeeperUtilityFactory(Configuration configuration, String path) throws Exception {
Preconditions.checkNotNull(path, "path");
root = ZooKeeperUtils.startCuratorFramework(configuration);
root.newNamespaceAwareEnsurePath(path).ensure(root.getZookeeperClient());
facade = root.usingNamespace(ZooKeeperUtils.generateZookeeperPath(root.getNamespace(), path));
}
代码示例来源:origin: org.apache.flink/flink-runtime_2.10
/**
* Creates a {@link ZooKeeperStateHandleStore} instance with the provided arguments.
*
* @param zkStateHandleStorePath specifying the path in ZooKeeper to store the state handles to
* @param stateStorageHelper storing the actual state data
* @param executor to run asynchronous callbacks of the state handle store
* @param <T> Type of the state to be stored
* @return a ZooKeeperStateHandleStore instance
* @throws Exception if ZooKeeper could not create the provided state handle store path in
* ZooKeeper
*/
public <T extends Serializable> ZooKeeperStateHandleStore<T> createZooKeeperStateHandleStore(
String zkStateHandleStorePath,
RetrievableStateStorageHelper<T> stateStorageHelper,
Executor executor) throws Exception {
facade.newNamespaceAwareEnsurePath(zkStateHandleStorePath).ensure(facade.getZookeeperClient());
CuratorFramework stateHandleStoreFacade = facade.usingNamespace(
ZooKeeperUtils.generateZookeeperPath(
facade.getNamespace(),
zkStateHandleStorePath));
return new ZooKeeperStateHandleStore<>(stateHandleStoreFacade, stateStorageHelper, executor);
}
代码示例来源:origin: org.apache.flink/flink-runtime_2.11
/**
* Creates a {@link ZooKeeperStateHandleStore} instance with the provided arguments.
*
* @param zkStateHandleStorePath specifying the path in ZooKeeper to store the state handles to
* @param stateStorageHelper storing the actual state data
* @param <T> Type of the state to be stored
* @return a ZooKeeperStateHandleStore instance
* @throws Exception if ZooKeeper could not create the provided state handle store path in
* ZooKeeper
*/
public <T extends Serializable> ZooKeeperStateHandleStore<T> createZooKeeperStateHandleStore(
String zkStateHandleStorePath,
RetrievableStateStorageHelper<T> stateStorageHelper) throws Exception {
facade.newNamespaceAwareEnsurePath(zkStateHandleStorePath).ensure(facade.getZookeeperClient());
CuratorFramework stateHandleStoreFacade = facade.usingNamespace(
ZooKeeperUtils.generateZookeeperPath(
facade.getNamespace(),
zkStateHandleStorePath));
return new ZooKeeperStateHandleStore<>(stateHandleStoreFacade, stateStorageHelper);
}
代码示例来源:origin: org.apache.flink/flink-runtime
/**
* Creates a {@link ZooKeeperStateHandleStore} instance with the provided arguments.
*
* @param zkStateHandleStorePath specifying the path in ZooKeeper to store the state handles to
* @param stateStorageHelper storing the actual state data
* @param <T> Type of the state to be stored
* @return a ZooKeeperStateHandleStore instance
* @throws Exception if ZooKeeper could not create the provided state handle store path in
* ZooKeeper
*/
public <T extends Serializable> ZooKeeperStateHandleStore<T> createZooKeeperStateHandleStore(
String zkStateHandleStorePath,
RetrievableStateStorageHelper<T> stateStorageHelper) throws Exception {
facade.newNamespaceAwareEnsurePath(zkStateHandleStorePath).ensure(facade.getZookeeperClient());
CuratorFramework stateHandleStoreFacade = facade.usingNamespace(
ZooKeeperUtils.generateZookeeperPath(
facade.getNamespace(),
zkStateHandleStorePath));
return new ZooKeeperStateHandleStore<>(stateHandleStoreFacade, stateStorageHelper);
}
代码示例来源:origin: com.alibaba.blink/flink-runtime
/**
* Creates a {@link ZooKeeperStateHandleStore} instance with the provided arguments.
*
* @param zkStateHandleStorePath specifying the path in ZooKeeper to store the state handles to
* @param stateStorageHelper storing the actual state data
* @param executor to run asynchronous callbacks of the state handle store
* @param <T> Type of the state to be stored
* @return a ZooKeeperStateHandleStore instance
* @throws Exception if ZooKeeper could not create the provided state handle store path in
* ZooKeeper
*/
public <T extends Serializable> ZooKeeperStateHandleStore<T> createZooKeeperStateHandleStore(
String zkStateHandleStorePath,
RetrievableStateStorageHelper<T> stateStorageHelper,
Executor executor) throws Exception {
facade.newNamespaceAwareEnsurePath(zkStateHandleStorePath).ensure(facade.getZookeeperClient());
CuratorFramework stateHandleStoreFacade = facade.usingNamespace(
ZooKeeperUtils.generateZookeeperPath(
facade.getNamespace(),
zkStateHandleStorePath));
return new ZooKeeperStateHandleStore<>(stateHandleStoreFacade, stateStorageHelper, executor);
}
代码示例来源:origin: com.alibaba.blink/flink-runtime
String rootWithNamespace = generateZookeeperPath(root, namespace);
代码示例来源:origin: org.apache.flink/flink-runtime_2.10
String rootWithNamespace = generateZookeeperPath(root, namespace);
代码示例来源:origin: org.apache.flink/flink-runtime
String rootWithNamespace = generateZookeeperPath(root, namespace);
代码示例来源:origin: org.apache.flink/flink-runtime_2.11
String rootWithNamespace = generateZookeeperPath(root, namespace);
内容来源于网络,如有侵权,请联系作者删除!