| Modifier and Type | Method and Description |
|---|---|
static Role |
Role.valueOf(String name) |
| Modifier and Type | Method and Description |
|---|---|
static Collection<Role> |
Role.values() |
| Modifier and Type | Method and Description |
|---|---|
Role |
HostRoleCommand.getRole() |
| Modifier and Type | Method and Description |
|---|---|
Map<Role,Float> |
Stage.getSuccessFactors() |
| Modifier and Type | Method and Description |
|---|---|
void |
Stage.addExecutionCommandWrapper(Stage origStage,
String hostname,
Role r)
This method should be used only in stage planner.
|
void |
Stage.addHostRoleExecutionCommand(Host host,
Role role,
RoleCommand command,
ServiceComponentHostEvent event,
Cluster cluster,
String serviceName,
boolean retryAllowed,
boolean autoSkipFailure)
A new host role command is created for execution.
|
void |
Stage.addHostRoleExecutionCommand(String host,
Role role,
RoleCommand command,
ServiceComponentHostEvent event,
String clusterName,
String serviceName,
boolean retryAllowed,
boolean autoSkipFailure)
A new host role command is created for execution.
|
void |
Stage.addServerActionCommand(String actionName,
String userName,
Role role,
RoleCommand command,
String clusterName,
ServiceComponentHostServerActionEvent event,
Map<String,String> commandParams,
String commandDetail,
Map<String,Map<String,String>> configTags,
Integer timeout,
boolean retryAllowed,
boolean autoSkipFailure)
Creates server-side execution command.
|
HostRoleCommand |
HostRoleCommandFactory.create(Host host,
Role role,
ServiceComponentHostEvent event,
RoleCommand command,
boolean retryAllowed,
boolean autoSkipFailure)
Constructor via factory.
|
HostRoleCommand |
HostRoleCommandFactoryImpl.create(Host host,
Role role,
ServiceComponentHostEvent event,
RoleCommand command,
boolean retryAllowed,
boolean autoSkipFailure)
Constructor via factory.
|
HostRoleCommand |
HostRoleCommandFactory.create(String hostName,
Role role,
ServiceComponentHostEvent event,
RoleCommand command)
Constructor via factory.
|
HostRoleCommand |
HostRoleCommandFactoryImpl.create(String hostName,
Role role,
ServiceComponentHostEvent event,
RoleCommand command)
Constructor via factory.
|
HostRoleCommand |
HostRoleCommandFactory.create(String hostName,
Role role,
ServiceComponentHostEvent event,
RoleCommand command,
boolean retryAllowed,
boolean autoSkipFailure)
Constructor via factory.
|
HostRoleCommand |
HostRoleCommandFactoryImpl.create(String hostName,
Role role,
ServiceComponentHostEvent event,
RoleCommand command,
boolean retryAllowed,
boolean autoSkipFailure)
Constructor via factory.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Stage.setSuccessFactors(Map<Role,Float> suc) |
| Constructor and Description |
|---|
HostRoleCommand(Host host,
Role role,
ServiceComponentHostEvent event,
RoleCommand roleCommand,
boolean retryAllowed,
boolean autoSkipFailure,
HostDAO hostDAO,
ExecutionCommandDAO executionCommandDAO,
ExecutionCommandWrapperFactory ecwFactory) |
HostRoleCommand(String hostName,
Role role,
ServiceComponentHostEvent event,
RoleCommand roleCommand,
boolean retryAllowed,
boolean autoSkipFailure,
HostDAO hostDAO,
ExecutionCommandDAO executionCommandDAO,
ExecutionCommandWrapperFactory ecwFactory)
Simple constructor, should be created using the Factory class.
|
HostRoleCommand(String hostName,
Role role,
ServiceComponentHostEvent event,
RoleCommand command,
HostDAO hostDAO,
ExecutionCommandDAO executionCommandDAO,
ExecutionCommandWrapperFactory ecwFactory)
Simple constructor, should be created using the Factory class.
|
| Modifier and Type | Method and Description |
|---|---|
protected static Set<Role> |
CalculatedStatus.getRolesOfAbortedTasks(List<HostRoleCommand> hostRoleCommands)
Get all
Role any of whose tasks is in HostRoleStatus.ABORTED |
protected static Set<Role> |
CalculatedStatus.getRolesOfFailedTasks(List<HostRoleCommand> hostRoleCommands)
Get all
Role any of whose tasks is in HostRoleStatus.FAILED |
protected static Set<Role> |
CalculatedStatus.getRolesOfTasks(List<HostRoleCommand> hostRoleCommands,
HostRoleStatus status)
Get all
Role any of whose tasks are in given status |
protected static Set<Role> |
CalculatedStatus.getRolesOfTimedOutTasks(List<HostRoleCommand> hostRoleCommands)
Get all
Role any of whose tasks is in HostRoleStatus.TIMEDOUT |
| Modifier and Type | Method and Description |
|---|---|
protected static List<HostRoleCommand> |
CalculatedStatus.getHostRoleCommandsOfRole(List<HostRoleCommand> hostRoleCommands,
Role role) |
| Modifier and Type | Method and Description |
|---|---|
static HostRoleStatus |
CalculatedStatus.calculateStageStatus(List<HostRoleCommand> hostRoleCommands,
Map<HostRoleStatus,Integer> counters,
Map<Role,Float> successFactors,
boolean skippable) |
protected static Boolean |
CalculatedStatus.didStageFailed(List<HostRoleCommand> hostRoleCommands,
Set<Role> roles,
Map<Role,Float> successFactors) |
protected static Boolean |
CalculatedStatus.didStageFailed(List<HostRoleCommand> hostRoleCommands,
Set<Role> roles,
Map<Role,Float> successFactors) |
| Modifier and Type | Method and Description |
|---|---|
Map<Role,Float> |
TaskStatusListener.ActiveStage.getSuccessFactors() |
| Modifier and Type | Method and Description |
|---|---|
void |
TaskStatusListener.ActiveStage.setSuccessFactors(Map<Role,Float> successFactors) |
| Constructor and Description |
|---|
ActiveStage(HostRoleStatus status,
HostRoleStatus displayStatus,
Map<Role,Float> successFactors,
Boolean skippable,
Set<Long> taskIds) |
| Constructor and Description |
|---|
RoleCommandPair(Role _role,
RoleCommand _cmd) |
| Modifier and Type | Method and Description |
|---|---|
Role |
RoleSuccessCriteriaEntity.getRole() |
Role |
RoleSuccessCriteriaEntityPK.getRole() |
Role |
HostRoleCommandEntity.getRole() |
| Modifier and Type | Method and Description |
|---|---|
void |
RoleSuccessCriteriaEntity.setRole(Role role) |
void |
RoleSuccessCriteriaEntityPK.setRole(Role role) |
void |
HostRoleCommandEntity.setRole(Role role) |
| Modifier and Type | Method and Description |
|---|---|
Role |
RoleGraphNode.getRole() |
| Constructor and Description |
|---|
RoleGraphNode(Role role,
RoleCommand command) |
Copyright © 2022 Apache Software Foundation. All rights reserved.