- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.I0Itec.zkclient.ZkClient.createPersistentSequential()
方法的一些代码示例,展示了ZkClient.createPersistentSequential()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZkClient.createPersistentSequential()
方法的具体详情如下:
包路径:org.I0Itec.zkclient.ZkClient
类名称:ZkClient
方法名:createPersistentSequential
暂无
代码示例来源:origin: ltsopensource/light-task-scheduler
protected String createPersistent(String path, boolean sequential) {
try {
if (sequential) {
return zkClient.createPersistentSequential(path, true);
} else {
zkClient.createPersistent(path, true);
return path;
}
} catch (ZkNodeExistsException ignored) {
}
return null;
}
代码示例来源:origin: ltsopensource/light-task-scheduler
protected String createPersistent(String path, Object data, boolean sequential) {
try {
if (sequential) {
return zkClient.createPersistentSequential(path, data);
} else {
zkClient.createPersistent(path, data);
return path;
}
} catch (ZkNodeExistsException ignored) {
}
return null;
}
代码示例来源:origin: ltsopensource/light-task-scheduler
protected String createPersistent(String path, Object data, boolean sequential) {
try {
if (sequential) {
return zkClient.createPersistentSequential(path, data);
} else {
zkClient.createPersistent(path, data);
return path;
}
} catch (ZkNodeExistsException ignored) {
}
return null;
}
代码示例来源:origin: ltsopensource/light-task-scheduler
protected String createPersistent(String path, boolean sequential) {
try {
if (sequential) {
return zkClient.createPersistentSequential(path, true);
} else {
zkClient.createPersistent(path, true);
return path;
}
} catch (ZkNodeExistsException ignored) {
}
return null;
}
代码示例来源:origin: apache/samza
@Override
public void countDown() {
// create persistent node
String path = zkUtils.getZkClient().createPersistentSequential(latchPath + "/", participantId);
LOG.debug("ZKProcessorLatch countDown created " + path);
}
}
代码示例来源:origin: com.github.sgroschupf/zkclient
public boolean offer(T element) {
try {
_zkClient.createPersistentSequential(_root + "/" + ELEMENT_NAME + "-", element);
} catch (Exception e) {
throw ExceptionUtil.convertToRuntimeException(e);
}
return true;
}
代码示例来源:origin: com.101tec/zkclient
public boolean offer(T element) {
try {
_zkClient.createPersistentSequential(_root + "/" + ELEMENT_NAME + "-", element);
} catch (Exception e) {
throw ExceptionUtil.convertToRuntimeException(e);
}
return true;
}
代码示例来源:origin: org.apache.samza/samza-core
@Override
public void countDown() {
// create persistent node
String path = zkUtils.getZkClient().createPersistentSequential(latchPath + "/", participantId);
LOG.debug("ZKProcessorLatch countDown created " + path);
}
}
代码示例来源:origin: org.apache.samza/samza-core_2.10
@Override
public void countDown() {
// create persistent node
String path = zkUtils.getZkClient().createPersistentSequential(latchPath + "/", participantId);
LOG.debug("ZKProcessorLatch countDown created " + path);
}
}
代码示例来源:origin: org.apache.samza/samza-core_2.12
@Override
public void countDown() {
// create persistent node
String path = zkUtils.getZkClient().createPersistentSequential(latchPath + "/", participantId);
LOG.debug("ZKProcessorLatch countDown created " + path);
}
}
代码示例来源:origin: org.apache.samza/samza-core_2.11
@Override
public void countDown() {
// create persistent node
String path = zkUtils.getZkClient().createPersistentSequential(latchPath + "/", participantId);
LOG.debug("ZKProcessorLatch countDown created " + path);
}
}
代码示例来源:origin: com.github.ltsopensource/lts-core
protected String createPersistent(String path, boolean sequential) {
try {
if (sequential) {
return zkClient.createPersistentSequential(path, true);
} else {
zkClient.createPersistent(path, true);
return path;
}
} catch (ZkNodeExistsException ignored) {
}
return null;
}
代码示例来源:origin: com.github.ltsopensource/lts-core
protected String createPersistent(String path, Object data, boolean sequential) {
try {
if (sequential) {
return zkClient.createPersistentSequential(path, data);
} else {
zkClient.createPersistent(path, data);
return path;
}
} catch (ZkNodeExistsException ignored) {
}
return null;
}
代码示例来源:origin: strimzi/strimzi-kafka-operator
/**
* This notifies Kafka about the changes we have made
*
* @param username Name of the user whose configuration changed
*/
private void notifyChanges(String username) {
log.debug("Notifying changes for user {}", username);
ensurePath("/config/changes");
JsonObject json = new JsonObject().put("version", 2).put("entity_path", "users/" + username);
zkClient.createPersistentSequential("/config/changes/config_change_", json.encode().getBytes(Charset.defaultCharset()));
}
代码示例来源:origin: com.typesafe.akka/akka-zookeeper-mailbox
public String enqueue(T element) {
try {
String sequential = _zkClient.createPersistentSequential(getElementRoughPath(), element);
String elementId = sequential.substring(sequential.lastIndexOf('/') + 1);
return elementId;
} catch (Exception e) {
throw ExceptionUtil.convertToRuntimeException(e);
}
}
代码示例来源:origin: appleappleapple/DistributeLearning
/**
* ṩ
* @param element
* @return
* @throws Exception
*/
public boolean offer(T element) throws Exception{
//ݽڵ·
String nodeFullPath = root .concat( "/" ).concat( Node_NAME );
try {
//־õĽڵ㣬д
zkClient.createPersistentSequential(nodeFullPath , element);
}catch (ZkNoNodeException e) {
zkClient.createPersistent(root);
offer(element);
} catch (Exception e) {
throw ExceptionUtil.convertToRuntimeException(e);
}
return true;
}
本文整理了Java中org.I0Itec.zkclient.ZkClient.fireDataChangedEvents()方法的一些代码示例,展示了ZkClient.fireDataChangedE
本文整理了Java中org.I0Itec.zkclient.ZkClient.fireAllEvents()方法的一些代码示例,展示了ZkClient.fireAllEvents()的具体用法。这些代
本文整理了Java中org.I0Itec.zkclient.ZkClient.serialize()方法的一些代码示例,展示了ZkClient.serialize()的具体用法。这些代码示例主要来源于
本文整理了Java中org.I0Itec.zkclient.ZkClient.fireStateChangedEvent()方法的一些代码示例,展示了ZkClient.fireStateChanged
本文整理了Java中org.I0Itec.zkclient.ZkClient.processStateChanged()方法的一些代码示例,展示了ZkClient.processStateChange
本文整理了Java中org.I0Itec.zkclient.ZkClient.getEventLock()方法的一些代码示例,展示了ZkClient.getEventLock()的具体用法。这些代码示
本文整理了Java中org.I0Itec.zkclient.ZkClient.waitForKeeperState()方法的一些代码示例,展示了ZkClient.waitForKeeperState(
本文整理了Java中org.I0Itec.zkclient.ZkClient.setShutdownTrigger()方法的一些代码示例,展示了ZkClient.setShutdownTrigger(
本文整理了Java中org.I0Itec.zkclient.ZkClient.fireNewSessionEvents()方法的一些代码示例,展示了ZkClient.fireNewSessionEve
本文整理了Java中org.I0Itec.zkclient.ZkClient.retryUntilConnected()方法的一些代码示例,展示了ZkClient.retryUntilConnecte
本文整理了Java中org.I0Itec.zkclient.ZkClient.watchForChilds()方法的一些代码示例,展示了ZkClient.watchForChilds()的具体用法。这
本文整理了Java中org.I0Itec.zkclient.ZkClient.create()方法的一些代码示例,展示了ZkClient.create()的具体用法。这些代码示例主要来源于Github
本文整理了Java中org.I0Itec.zkclient.ZkClient.unsubscribeAll()方法的一些代码示例,展示了ZkClient.unsubscribeAll()的具体用法。这
本文整理了Java中org.I0Itec.zkclient.ZkClient.hasListeners()方法的一些代码示例,展示了ZkClient.hasListeners()的具体用法。这些代码示
本文整理了Java中org.I0Itec.zkclient.ZkClient.writeDataReturnStat()方法的一些代码示例,展示了ZkClient.writeDataReturnSta
本文整理了Java中org.I0Itec.zkclient.ZkClient.setZkSerializer()方法的一些代码示例,展示了ZkClient.setZkSerializer()的具体用法
本文整理了Java中org.I0Itec.zkclient.ZkClient.waitUntilExists()方法的一些代码示例,展示了ZkClient.waitUntilExists()的具体用法
本文整理了Java中org.I0Itec.zkclient.ZkClient.fireChildChangedEvents()方法的一些代码示例,展示了ZkClient.fireChildChange
本文整理了Java中org.I0Itec.zkclient.ZkClient.setCurrentState()方法的一些代码示例,展示了ZkClient.setCurrentState()的具体用法
本文整理了Java中org.I0Itec.zkclient.ZkClient.getShutdownTrigger()方法的一些代码示例,展示了ZkClient.getShutdownTrigger(
我是一名优秀的程序员,十分优秀!