- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中com.spotify.helios.servicescommon.coordination.ZooKeeperOperations
类的一些代码示例,展示了ZooKeeperOperations
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZooKeeperOperations
类的具体详情如下:
包路径:com.spotify.helios.servicescommon.coordination.ZooKeeperOperations
类名称:ZooKeeperOperations
暂无
代码示例来源:origin: spotify/helios
operations.add(check(Paths.configHost(host)));
operations.add(delete(node));
operations.add(create(Paths.statusHost(host)));
operations.add(create(Paths.statusHostJobs(host)));
operations.add(delete(Paths.configHostId(host)));
operations.add(create(Paths.configHostId(host), hostId.getBytes(UTF_8)));
代码示例来源:origin: spotify/helios
operations.add(set(statusPath, status));
operations.add(delete(tasksPath));
} else {
operations.add(create(tasksPath));
operations.add(delete(tasksPath));
代码示例来源:origin: spotify/helios
final UUID jobCreationOperationId = getJobCreation(client, id);
if (jobCreationOperationId != null) {
operations.add(delete(Paths.configJobCreation(id, jobCreationOperationId)));
operations.add(delete(Paths.configJobHosts(id)),
delete(Paths.configJobRefShort(id)),
delete(Paths.configJob(id)),
set(Paths.configJobs(), UUID.randomUUID().toString().getBytes()));
client.transaction(operations.build());
} catch (final NoNodeException e) {
代码示例来源: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),
set(Paths.configJobs(), UUID.randomUUID().toString().getBytes()));
} catch (final NodeExistsException e) {
if (client.exists(creationPath) != null) {
代码示例来源:origin: spotify/helios
deployment.getDeployerMaster(), deployment.getDeploymentGroupName());
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
ops.add(set(Paths.statusDeploymentGroupHosts(groupName), Json.asBytes(hosts)));
ops.add(set(Paths.statusDeploymentGroupRemovedHosts(groupName), Json.asBytes(removedHosts)));
ops.add(check(Paths.configDeploymentGroup(groupName), deploymentGroupVersion));
ops.add(set(Paths.configDeploymentGroup(deploymentGroup.getName()), deploymentGroup));
代码示例来源: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
operations.add(delete(node));
operations.add(delete(Paths.configJobHost(job, host)));
operations.add(delete(s));
operations.add(delete(Paths.configHostJobs(host)));
operations.add(delete(node));
operations.add(delete(Paths.configHostPort(host, Integer.valueOf(port))));
operations.add(delete(Paths.configHostPorts(host)));
operations.add(delete(idPath));
operations.add(delete(Paths.configHost(host)));
代码示例来源:origin: spotify/helios
operations.add(create(path));
operations.add(delete(path));
代码示例来源:origin: spotify/helios
final ZooKeeperClient client = provider.get("rollingUpdate");
operations.add(set(Paths.configDeploymentGroup(updated.getName()), updated));
代码示例来源:origin: spotify/helios
ops.add(check(Paths.statusDeploymentGroupTasks(deploymentGroupName),
versionedTasks.version()));
ops.addAll(op.operations());
代码示例来源:origin: spotify/helios
public RollingUpdateOp nextTask(final List<ZooKeeperOperation> operations) {
final List<ZooKeeperOperation> ops = Lists.newArrayList(operations);
final List<Map<String, Object>> events = Lists.newArrayList();
final RolloutTask task = tasks.getRolloutTasks().get(tasks.getTaskIndex());
// Update the task index, delete tasks if done
if (tasks.getTaskIndex() + 1 == tasks.getRolloutTasks().size()) {
final DeploymentGroupStatus status = DeploymentGroupStatus.newBuilder()
.setState(DONE)
.build();
// We are done -> delete tasks & update status
ops.add(delete(Paths.statusDeploymentGroupTasks(deploymentGroup.getName())));
ops.add(set(Paths.statusDeploymentGroup(deploymentGroup.getName()),
status));
// Emit an event signalling that we're DONE!
events.add(eventFactory.rollingUpdateDone(deploymentGroup));
} else {
ops.add(
set(Paths.statusDeploymentGroupTasks(deploymentGroup.getName()), tasks.toBuilder()
.setTaskIndex(tasks.getTaskIndex() + 1)
.build()));
// Only emit an event if the task resulted in taking in action. If there are no ZK operations
// the task was effectively a no-op.
if (!operations.isEmpty()) {
events.add(eventFactory.rollingUpdateTaskSucceeded(deploymentGroup, task));
}
}
return new RollingUpdateOp(ImmutableList.copyOf(ops), ImmutableList.copyOf(events));
}
代码示例来源:origin: spotify/helios
deployment.getDeployerMaster(), deployment.getDeploymentGroupName());
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: spotify/helios
check(Paths.statusDeploymentGroupRemovedHosts(deploymentGroup.getName()), version),
set(Paths.statusDeploymentGroupRemovedHosts(deploymentGroup.getName()),
Json.asBytes(hostsToUndeploy))));
} catch (KeeperException | IOException e) {
代码示例来源: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),
set(Paths.configJobs(), UUID.randomUUID().toString().getBytes()));
} catch (final NodeExistsException e) {
if (client.exists(creationPath) != null) {
代码示例来源:origin: spotify/helios
public static ZooKeeperOperation create(final String path, final Descriptor data) {
return create(path, data.toJsonBytes());
}
代码示例来源:origin: spotify/helios
return ImmutableList.of(delete(nodes));
代码示例来源:origin: at.molindo/helios-services
@Override
public void stopDeploymentGroup(final String deploymentGroupName)
throws DeploymentGroupDoesNotExistException {
checkNotNull(deploymentGroupName, "name");
log.info("stop deployment-group: name={}", deploymentGroupName);
final ZooKeeperClient client = provider.get("stopDeploymentGroup");
final DeploymentGroup deploymentGroup = getDeploymentGroup(deploymentGroupName);
final String statusPath = Paths.statusDeploymentGroup(deploymentGroupName);
final DeploymentGroupStatus status = DeploymentGroupStatus.newBuilder()
.setDeploymentGroup(deploymentGroup)
.setState(FAILED)
.setError("Stopped by user")
.build();
try {
client.ensurePath(statusPath);
client.transaction(set(statusPath, status));
} catch (final NoNodeException e) {
throw new DeploymentGroupDoesNotExistException(deploymentGroupName);
} catch (final KeeperException e) {
throw new HeliosRuntimeException(
"stop deployment-group " + deploymentGroupName + " failed", e);
}
}
代码示例来源:origin: spotify/helios
ops.add(create(Paths.statusDeploymentGroupTasks(deploymentGroup.getName())));
.setState(DONE)
.build();
ops.add(delete(Paths.statusDeploymentGroupTasks(deploymentGroup.getName())));
events.add(eventFactory.rollingUpdateDone(deploymentGroup));
} else {
.setState(ROLLING_OUT)
.build();
ops.add(set(Paths.statusDeploymentGroupTasks(deploymentGroup.getName()), tasks));
ops.add(set(Paths.statusDeploymentGroup(deploymentGroup.getName()), status));
代码示例来源:origin: spotify/helios
operations.add(delete(Paths.statusDeploymentGroupTasks(deploymentGroup.getName())));
operations.add(set(Paths.statusDeploymentGroup(deploymentGroup.getName()), status));
我最近从 Eclipse Galileo 升级到 Helios。 Helios 仅在“作为 PHP 脚本”调试时才会在断点处停止,而在“作为网页”调试时则不会。 当作为网页调试时,启动调试 sessi
我正在尝试安装新插件,但是当我选择更新站点时出现此错误 !ENTRY org.eclipse.equinox.p2.core 4 0 2010-10-07 08:57:56.153 !MESSAGE
一年多以前,我曾使用 Eclipse 没有问题,但我将 Helios 下载到一台当前装有 Windows Vista 和 Java 1.6.13 的新计算机上。我提取文件夹并尝试运行 Eclipse
我的 Eclipse 几乎每 10 分钟就崩溃一次,我不知道为什么。这太烦人了。而且我不知道如何解决这个问题。我没有做任何具体的事情来让 eclipse 崩溃。有时我只是打开一个新窗口或单击保存等。这
我刚刚看到 Eclipse 的新主要版本 ( 3.6 Helios ) 可供下载。我想尝试一下,但在此之前我想知道是否有人遇到过任何重大问题。 我想确定是否可以尝试这个,因为我的项目设置很复杂,通常很
我刚刚在 eclipse Helios 中创建了一个 struts 应用程序。当我作为服务器运行时,我会收到这样的警报。我的浏览器仅在线。 This document cannot be displa
我正在尝试使用 Helios向我的应用程序发送推送通知。该项目没有提供任何关于在哪里以及如何放置 .pem 文件(用于推送通知的 apns 证书)的描述。我希望 stackoverflow 上的某个人
本文整理了Java中com.spotify.helios.ZooKeeperTestingServerManager类的一些代码示例,展示了ZooKeeperTestingServerManager类
本文整理了Java中com.spotify.helios.ZooKeeperTestingClusterManager类的一些代码示例,展示了ZooKeeperTestingClusterManage
我在 Eclipse (Helios) 中的自动完成选项有问题。 我已经检查了 Windows->Preferences->PHP->Editor->Content Assist,那里的一切似乎都是正
我一直无法让出色的 Eclipse Colorer 插件与我当前的 Eclipse(Helios 64 位)副本一起使用。它安装正常,但每当我尝试打开源文件时,都会出现此错误: Colorer 库 n
我刚刚安装了 Eclipse Helios。当我解压并打开 Eclipse 后,它会询问我的工作区。我选择了路径,它说可以。它打开工作区并说工作台正在加载,突然 Eclipse IDE 关闭,在主 E
您好,我已经安装了带有 android 仿真的 eclipse helios,就像它写的那样 http://www.futuredesktop.org/developing_android_apps_
当为 Helios eclipse 下载 64 位时声称没有找到要导入的项目 - 文件是 swt-3.6-win32-win32-x86_64.zip 这应该是相当简单的!!! 最佳答案 除了乔所说的
我正在尝试安装我在 Fedora 12 下的 Eclipse Helios 20100617-1415 中编写的玩具插件。安装插件的尝试都失败了。该插件在作为 Eclipse 应用程序执行时确实运行(
我正在使用: Eclipse Helios Version: 3.6.2 Sonar Java Analyser 3.1.0.2 在 Eclipse 中安装 Sonar 的步骤: 帮助 -> 安装新软
我最近将我一直在开发的 webapp 转移到运行 64 位 Eclipse Helios(服务版本 2)的新机器上,并且我正在使用 Maven 插件 M2Eclipse。 我已经通过 Eclipse
Eclipse 现在快把我逼疯了。这可能是微不足道的,但我就是不明白。每当我想添加断点时,编辑器和断点 View 中的常规图标都会被划掉。 正如您可能已经猜到的,这不是严格意义上的图形问题 ;) 在调
本文整理了Java中com.spotify.helios.master.ZooKeeperMasterModel类的一些代码示例,展示了ZooKeeperMasterModel类的具体用法。这些代码示
本文整理了Java中com.spotify.helios.servicescommon.ZooKeeperRegistrar类的一些代码示例,展示了ZooKeeperRegistrar类的具体用法。这
我是一名优秀的程序员,十分优秀!