- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中com.spotify.helios.servicescommon.coordination.ZooKeeperClient.pathChildrenCache()
方法的一些代码示例,展示了ZooKeeperClient.pathChildrenCache()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZooKeeperClient.pathChildrenCache()
方法的具体详情如下:
包路径:com.spotify.helios.servicescommon.coordination.ZooKeeperClient
类名称:ZooKeeperClient
方法名:pathChildrenCache
暂无
代码示例来源:origin: spotify/helios
@Override
public <T> PersistentPathChildrenCache<T> pathChildrenCache(String path, Path snapshotFile,
final JavaType valueType)
throws IOException, InterruptedException {
return client.pathChildrenCache(path, snapshotFile, valueType);
}
代码示例来源:origin: spotify/helios
public ZooKeeperAgentModel(final ZooKeeperClientProvider provider,
final String host,
final Path stateDirectory,
final TaskHistoryWriter historyWriter,
final List<EventSender> eventSenders,
final String taskStatusEventTopic)
throws IOException, InterruptedException {
// TODO(drewc): we're constructing too many heavyweight things in the ctor, these kinds of
// things should be passed in/provider'd/etc.
final ZooKeeperClient client = provider.get("ZooKeeperAgentModel_ctor");
this.agent = checkNotNull(host);
final Path taskConfigFile = stateDirectory.resolve(TASK_CONFIG_FILENAME);
this.tasks = client.pathChildrenCache(Paths.configHostJobs(host), taskConfigFile,
Json.type(Task.class));
tasks.addListener(new JobsListener());
final Path taskStatusFile = stateDirectory.resolve(TASK_STATUS_FILENAME);
this.taskStatuses = ZooKeeperUpdatingPersistentDirectory.create("agent-model-task-statuses",
provider,
taskStatusFile,
Paths.statusHostJobs(host));
this.historyWriter = historyWriter;
this.eventSenders = eventSenders;
this.taskStatusEventTopic = taskStatusEventTopic;
}
代码示例来源:origin: at.molindo/helios-services
@Override
public <T> PersistentPathChildrenCache<T> pathChildrenCache(String path, Path snapshotFile,
final JavaType valueType)
throws IOException, InterruptedException {
return client.pathChildrenCache(path, snapshotFile, valueType);
}
代码示例来源:origin: at.molindo/helios-services
public ZooKeeperAgentModel(final ZooKeeperClientProvider provider,
final KafkaClientProvider kafkaProvider, final String host,
final Path stateDirectory) throws IOException, InterruptedException {
// TODO(drewc): we're constructing too many heavyweight things in the ctor, these kinds of
// things should be passed in/provider'd/etc.
final ZooKeeperClient client = provider.get("ZooKeeperAgentModel_ctor");
this.agent = checkNotNull(host);
final Path taskConfigFile = stateDirectory.resolve(TASK_CONFIG_FILENAME);
this.tasks = client.pathChildrenCache(Paths.configHostJobs(host), taskConfigFile,
Json.type(Task.class));
tasks.addListener(new JobsListener());
final Path taskStatusFile = stateDirectory.resolve(TASK_STATUS_FILENAME);
this.taskStatuses = ZooKeeperUpdatingPersistentDirectory.create("agent-model-task-statuses",
provider,
taskStatusFile,
Paths.statusHostJobs(host));
this.historyWriter = new TaskHistoryWriter(
host, client, stateDirectory.resolve(TASK_HISTORY_FILENAME));
this.kafkaSender = new KafkaSender(
kafkaProvider.getProducer(new StringSerializer(), new ByteArraySerializer()));
}
本文整理了Java中kafka.zookeeper.ZooKeeperClient.waitUntilConnected()方法的一些代码示例,展示了ZooKeeperClient.waitUntil
本文整理了Java中kafka.zookeeper.ZooKeeperClient.()方法的一些代码示例,展示了ZooKeeperClient.()的具体用法。这些代码示例主要来源于Github/S
本文整理了Java中com.twitter.common.zookeeper.ZooKeeperClient.()方法的一些代码示例,展示了ZooKeeperClient.()的具体用法。这些代码示例
本文整理了Java中com.twitter.common.zookeeper.ZooKeeperClient.registerExpirationHandler()方法的一些代码示例,展示了ZooKe
本文整理了Java中com.twitter.common.zookeeper.ZooKeeperClient.digestCredentials()方法的一些代码示例,展示了ZooKeeperClie
本文整理了Java中com.twitter.common.zookeeper.ZooKeeperClient.unregister()方法的一些代码示例,展示了ZooKeeperClient.unre
本文整理了Java中com.twitter.common.zookeeper.ZooKeeperClient.get()方法的一些代码示例,展示了ZooKeeperClient.get()的具体用法。
本文整理了Java中com.twitter.common.zookeeper.ZooKeeperClient.close()方法的一些代码示例,展示了ZooKeeperClient.close()的具
本文整理了Java中com.twitter.common.zookeeper.ZooKeeperClient.shouldRetry()方法的一些代码示例,展示了ZooKeeperClient.sho
本文整理了Java中org.apache.bookkeeper.zookeeper.ZooKeeperClient.newBuilder()方法的一些代码示例,展示了ZooKeeperClient.n
本文整理了Java中org.apache.dubbo.remoting.zookeeper.ZookeeperClient.addStateListener()方法的一些代码示例,展示了Zookeep
本文整理了Java中org.apache.dubbo.remoting.zookeeper.ZookeeperClient.getChildren()方法的一些代码示例,展示了ZookeeperCli
本文整理了Java中org.apache.dubbo.remoting.zookeeper.ZookeeperClient.isConnected()方法的一些代码示例,展示了ZookeeperCli
本文整理了Java中org.apache.dubbo.remoting.zookeeper.ZookeeperClient.removeChildListener()方法的一些代码示例,展示了Zook
本文整理了Java中org.apache.dubbo.remoting.zookeeper.ZookeeperClient.addChildListener()方法的一些代码示例,展示了Zookeep
本文整理了Java中org.apache.dubbo.remoting.zookeeper.ZookeeperClient.delete()方法的一些代码示例,展示了ZookeeperClient.d
本文整理了Java中org.apache.dubbo.remoting.zookeeper.ZookeeperClient.create()方法的一些代码示例,展示了ZookeeperClient.c
本文整理了Java中com.spotify.helios.servicescommon.coordination.ZooKeeperClient.getNode()方法的一些代码示例,展示了ZooKe
本文整理了Java中com.spotify.helios.servicescommon.coordination.ZooKeeperClient.close()方法的一些代码示例,展示了ZooKeep
本文整理了Java中com.spotify.helios.servicescommon.coordination.ZooKeeperClient.transaction()方法的一些代码示例,展示了Z
我是一名优秀的程序员,十分优秀!