public class RollingUpdateOpFactory extends Object
| Constructor and Description |
|---|
RollingUpdateOpFactory(com.spotify.helios.common.descriptors.DeploymentGroupTasks tasks,
DeploymentGroupEventFactory eventFactory) |
| Modifier and Type | Method and Description |
|---|---|
RollingUpdateOp |
error(Exception ex,
String host,
RollingUpdateError errorCode) |
RollingUpdateOp |
error(String msg,
String host,
RollingUpdateError errorCode) |
RollingUpdateOp |
error(String msg,
String host,
RollingUpdateError errorCode,
Map<String,Object> metadata) |
RollingUpdateOp |
nextTask() |
RollingUpdateOp |
nextTask(List<ZooKeeperOperation> operations) |
RollingUpdateOp |
start(com.spotify.helios.common.descriptors.DeploymentGroup deploymentGroup,
ZooKeeperClient client) |
RollingUpdateOp |
yield()
Don't advance to the next task -- yield and have the current task be executed again in the
next iteration.
|
public RollingUpdateOpFactory(com.spotify.helios.common.descriptors.DeploymentGroupTasks tasks, DeploymentGroupEventFactory eventFactory)
public RollingUpdateOp start(com.spotify.helios.common.descriptors.DeploymentGroup deploymentGroup, ZooKeeperClient client) throws org.apache.zookeeper.KeeperException
org.apache.zookeeper.KeeperExceptionpublic RollingUpdateOp nextTask()
public RollingUpdateOp nextTask(List<ZooKeeperOperation> operations)
public RollingUpdateOp yield()
RollingUpdateOppublic RollingUpdateOp error(String msg, String host, RollingUpdateError errorCode, Map<String,Object> metadata)
public RollingUpdateOp error(String msg, String host, RollingUpdateError errorCode)
public RollingUpdateOp error(Exception ex, String host, RollingUpdateError errorCode)
Copyright © 2017. All rights reserved.