- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中com.spotify.helios.servicescommon.coordination.ZooKeeperOperations.create()
方法的一些代码示例,展示了ZooKeeperOperations.create()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZooKeeperOperations.create()
方法的具体详情如下:
包路径:com.spotify.helios.servicescommon.coordination.ZooKeeperOperations
类名称:ZooKeeperOperations
方法名:create
暂无
代码示例来源:origin: spotify/helios
public static ZooKeeperOperation create(final String path, final Descriptor data,
final int version) {
return create(path, data.toJsonBytes(), version);
}
代码示例来源:origin: spotify/helios
public static ZooKeeperOperation create(final String path, final Descriptor data) {
return create(path, data.toJsonBytes());
}
代码示例来源:origin: spotify/helios
operations.add(create(Paths.statusHost(host)));
operations.add(create(Paths.statusHostJobs(host)));
operations.add(create(Paths.configHostId(host), hostId.getBytes(UTF_8)));
代码示例来源:origin: spotify/helios
try {
client.ensurePath(Paths.historyJob(id));
client.transaction(create(Paths.configJob(id), job),
create(Paths.configJobRefShort(id), id),
create(Paths.configJobHosts(id)),
create(creationPath),
代码示例来源:origin: spotify/helios
final List<ZooKeeperOperation> operations = Lists.newArrayList(
check(jobPath),
create(portNodes),
create(Paths.configJobHost(id, host)));
checkForPortConflicts(client, host, port, id);
operations.add(create(taskPath, task));
operations.add(create(taskCreationPath));
} catch (KeeperException e) {
throw new HeliosRuntimeException("reading existing task description failed", e);
代码示例来源:origin: spotify/helios
client.ensurePath(Paths.statusDeploymentGroups());
client.transaction(
create(Paths.configDeploymentGroup(deploymentGroup.getName()), deploymentGroup),
create(Paths.statusDeploymentGroup(deploymentGroup.getName())),
create(Paths.statusDeploymentGroupHosts(deploymentGroup.getName()),
Json.asBytesUnchecked(emptyList())),
create(Paths.statusDeploymentGroupRemovedHosts(deploymentGroup.getName()),
Json.asBytesUnchecked(emptyList()))
);
代码示例来源:origin: spotify/helios
operations.add(create(tasksPath));
operations.add(delete(tasksPath));
代码示例来源:origin: spotify/helios
ops.add(create(Paths.statusDeploymentGroupTasks(deploymentGroup.getName())));
代码示例来源:origin: spotify/helios
operations.add(create(path));
代码示例来源:origin: spotify/helios
final List<ZooKeeperOperation> operations = Lists.newArrayList(
check(jobPath),
create(portNodes),
create(Paths.configJobHost(id, host)));
operations.add(create(taskPath, task));
operations.add(create(taskCreationPath));
} catch (KeeperException e) {
throw new HeliosRuntimeException("reading existing task description failed", e);
代码示例来源:origin: at.molindo/helios-services
public static ZooKeeperOperation create(final String path, final Descriptor data) {
return create(path, data.toJsonBytes());
}
代码示例来源:origin: at.molindo/helios-services
public static ZooKeeperOperation create(final String path, final Descriptor data,
final int version) {
return create(path, data.toJsonBytes(), version);
}
代码示例来源:origin: at.molindo/helios-services
try {
client.ensurePath(Paths.historyJob(id));
client.transaction(create(Paths.configJob(id), job),
create(Paths.configJobRefShort(id), id),
create(Paths.configJobHosts(id)),
create(creationPath),
代码示例来源:origin: at.molindo/helios-services
@Override
public void addDeploymentGroup(final DeploymentGroup deploymentGroup)
throws DeploymentGroupExistsException {
log.info("adding deployment-group: {}", deploymentGroup);
final ZooKeeperClient client = provider.get("addDeploymentGroup");
try {
try {
client.ensurePath(Paths.configDeploymentGroups());
client.ensurePath(Paths.statusDeploymentGroups());
client.transaction(
create(Paths.configDeploymentGroup(deploymentGroup.getName()), deploymentGroup),
create(Paths.statusDeploymentGroup(deploymentGroup.getName())),
create(Paths.statusDeploymentGroupHosts(deploymentGroup.getName()))
);
} catch (final NodeExistsException e) {
throw new DeploymentGroupExistsException(deploymentGroup.getName());
}
} catch (final KeeperException e) {
throw new HeliosRuntimeException("adding deployment-group " + deploymentGroup + " failed", e);
}
}
代码示例来源:origin: at.molindo/helios-services
final List<ZooKeeperOperation> operations = Lists.newArrayList(
check(jobPath),
create(portNodes),
create(Paths.configJobHost(id, host)));
operations.add(create(taskPath, task));
operations.add(create(taskCreationPath));
} catch (KeeperException e) {
throw new HeliosRuntimeException("reading existing task description failed", e);
代码示例来源:origin: at.molindo/helios-services
final List<ZooKeeperOperation> operations = Lists.newArrayList(
check(jobPath),
create(portNodes),
create(Paths.configJobHost(id, host)));
operations.add(create(taskPath, task));
operations.add(create(taskCreationPath));
} catch (KeeperException e) {
throw new HeliosRuntimeException("reading existing task description failed", e);
本文整理了Java中com.spotify.helios.servicescommon.ZooKeeperRegistrar类的一些代码示例,展示了ZooKeeperRegistrar类的具体用法。这
本文整理了Java中com.spotify.helios.servicescommon.coordination.ZooKeeperClient类的一些代码示例,展示了ZooKeeperClient类
本文整理了Java中com.spotify.helios.servicescommon.coordination.ZooKeeperClientProvider类的一些代码示例,展示了ZooKeepe
本文整理了Java中com.spotify.helios.servicescommon.coordination.ZooKeeperModelReporter类的一些代码示例,展示了ZooKeeper
本文整理了Java中com.spotify.helios.servicescommon.coordination.ZooKeeperOperations类的一些代码示例,展示了ZooKeeperOpe
本文整理了Java中com.spotify.helios.servicescommon.statistics.ZooKeeperMetricsImpl类的一些代码示例,展示了ZooKeeperMetr
本文整理了Java中com.spotify.helios.servicescommon.statistics.ZooKeeperMetrics类的一些代码示例,展示了ZooKeeperMetrics类
本文整理了Java中com.spotify.helios.servicescommon.coordination.ZooKeeperUpdatingPersistentDirectory类的一些代码示
本文整理了Java中com.spotify.helios.servicescommon.coordination.ZooKeeperNodeUpdater类的一些代码示例,展示了ZooKeeperNo
本文整理了Java中com.spotify.helios.servicescommon.coordination.ZooKeeperOperation类的一些代码示例,展示了ZooKeeperOper
本文整理了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
本文整理了Java中com.spotify.helios.servicescommon.coordination.ZooKeeperClient.createWithMode()方法的一些代码示例,展
本文整理了Java中com.spotify.helios.servicescommon.coordination.ZooKeeperClient.exists()方法的一些代码示例,展示了ZooKee
本文整理了Java中com.spotify.helios.servicescommon.coordination.ZooKeeperClient.getData()方法的一些代码示例,展示了ZooKe
本文整理了Java中com.spotify.helios.servicescommon.coordination.ZooKeeperClient.getChildren()方法的一些代码示例,展示了Z
本文整理了Java中com.spotify.helios.servicescommon.coordination.ZooKeeperClient.listRecursive()方法的一些代码示例,展示
本文整理了Java中com.spotify.helios.servicescommon.coordination.ZooKeeperClient.persistentEphemeralNode()方法
本文整理了Java中com.spotify.helios.servicescommon.coordination.ZooKeeperClient.getCuratorFramework()方法的一些代
我是一名优秀的程序员,十分优秀!