public class Stage extends Object
Constructor and Description |
---|
Stage(long requestId,
String logDir,
String clusterName,
String requestContext,
String clusterHostInfo) |
Stage(StageEntity stageEntity,
HostRoleCommandDAO hostRoleCommandDAO,
ActionDBAccessor dbAccessor) |
public Stage(long requestId, String logDir, String clusterName, @Nullable String requestContext, String clusterHostInfo)
public Stage(StageEntity stageEntity, HostRoleCommandDAO hostRoleCommandDAO, ActionDBAccessor dbAccessor)
public StageEntity constructNewPersistenceEntity()
public List<HostRoleCommand> getOrderedHostRoleCommands()
public String getClusterHostInfo()
public void setClusterHostInfo(String clusterHostInfo)
public void setStageId(long stageId)
public long getStageId()
public String getActionId()
public void addHostRoleExecutionCommand(String host, Role role, RoleCommand command, ServiceComponentHostEvent event, String clusterName, String serviceName)
public void addServerActionCommand(String actionName, Role role, RoleCommand command, String clusterName, ServiceComponentHostUpgradeEvent event, String hostName)
public long getRequestId()
public String getClusterName()
public String getRequestContext()
public ExecutionCommandWrapper getExecutionCommandWrapper(String hostname, String role)
public List<ExecutionCommandWrapper> getExecutionCommands(String hostname)
public HostRoleStatus getHostRoleStatus(String hostname, String role)
public void setHostRoleStatus(String host, String role, HostRoleStatus status)
public ServiceComponentHostEventWrapper getFsmEvent(String hostname, String roleStr)
public boolean isStageInProgress()
public boolean doesStageHaveHostRoleStatus(Set<HostRoleStatus> statuses)
public Map<String,List<ExecutionCommandWrapper>> getExecutionCommands()
public String getLogDir()
public Map<String,Map<String,HostRoleCommand>> getHostRoleCommands()
public void addExecutionCommandWrapper(Stage origStage, String hostname, Role r)
addHostRoleExecutionCommand(String, Role, RoleCommand,
ServiceComponentHostEvent, String, String)
public HostRoleCommand getHostRoleCommand(String hostname, String role)
public int getStageTimeout()
Copyright © 2017. All rights reserved.