public enum HostRoleStatus extends Enum<HostRoleStatus>
Enum Constant and Description |
---|
ABORTED
Operation was abandoned
|
COMPLETED
Host reported success
|
FAILED
Failed
|
HOLDING
Task is holding, waiting for command to proceed to completion.
|
HOLDING_FAILED
Task is holding after a failure, waiting for command to skip or retry.
|
HOLDING_TIMEDOUT
Task is holding after a time-out, waiting for command to skip or retry.
|
IN_PROGRESS
Host reported it is working, received an IN_PROGRESS command status from host.
|
PENDING
Not queued for a host.
|
QUEUED
Queued for a host, or has already been sent to host, but host did not answer yet.
|
SKIPPED_FAILED
The operation failed and was automatically skipped.
|
TIMEDOUT
Host did not respond in time
|
Modifier and Type | Field and Description |
---|---|
static Set<HostRoleStatus> |
FAILED_STATUSES
The
HostRoleStatus s that represent any commands which are
considered to be "Failed". |
static Set<HostRoleStatus> |
IN_PROGRESS_STATUSES
The
HostRoleStatus s that represent any commands which are
considered to be "In Progress". |
static Set<HostRoleStatus> |
NOT_COMPLETED_STATUSES
The
HostRoleStatus s that represent all non-completed states. |
static Set<HostRoleStatus> |
NOT_SKIPPABLE_FAILED_STATUSES
The
HostRoleStatus s that represent any commands which are
considered to be "Failed" and next commands can not be executed. |
static List<HostRoleStatus> |
SCHEDULED_STATES |
static Set<HostRoleStatus> |
STACK_UPGRADE_FAILED_STATUSES
The
HostRoleStatus s that represent the current commands that failed during stack upgrade. |
Modifier and Type | Method and Description |
---|---|
static List<HostRoleStatus> |
getCompletedStates() |
boolean |
isCompletedState()
Indicates whether or not this is a completed state.
|
boolean |
isFailedAndNotSkippableState()
Indicates whether or not it is a valid failure state without ability to be skipped.
|
boolean |
isFailedState()
Indicates whether or not it is a valid failure state.
|
boolean |
isHoldingState()
Indicates whether or not this is a holding state.
|
boolean |
isInProgress() |
static HostRoleStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HostRoleStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HostRoleStatus PENDING
public static final HostRoleStatus QUEUED
public static final HostRoleStatus IN_PROGRESS
public static final HostRoleStatus HOLDING
public static final HostRoleStatus COMPLETED
public static final HostRoleStatus FAILED
public static final HostRoleStatus HOLDING_FAILED
public static final HostRoleStatus TIMEDOUT
public static final HostRoleStatus HOLDING_TIMEDOUT
public static final HostRoleStatus ABORTED
public static final HostRoleStatus SKIPPED_FAILED
public static final List<HostRoleStatus> SCHEDULED_STATES
public static final Set<HostRoleStatus> FAILED_STATUSES
HostRoleStatus
s that represent any commands which are
considered to be "Failed".public static final Set<HostRoleStatus> NOT_SKIPPABLE_FAILED_STATUSES
HostRoleStatus
s that represent any commands which are
considered to be "Failed" and next commands can not be executed.public static final Set<HostRoleStatus> STACK_UPGRADE_FAILED_STATUSES
HostRoleStatus
s that represent the current commands that failed during stack upgrade.
This is not used to indicate commands that failed and then skipped.public static final Set<HostRoleStatus> IN_PROGRESS_STATUSES
HostRoleStatus
s that represent any commands which are
considered to be "In Progress".public static final Set<HostRoleStatus> NOT_COMPLETED_STATUSES
HostRoleStatus
s that represent all non-completed states.public static HostRoleStatus[] values()
for (HostRoleStatus c : HostRoleStatus.values()) System.out.println(c);
public static HostRoleStatus valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isFailedState()
public boolean isFailedAndNotSkippableState()
public boolean isCompletedState()
public boolean isHoldingState()
public static List<HostRoleStatus> getCompletedStates()
public boolean isInProgress()
true
if this is a status that is in progressCopyright © 2022 Apache Software Foundation. All rights reserved.