public class DefaultRecoveryStep extends DeploymentStep
DeploymentStep meant for use with DefaultRecoveryPlanManager.podInstanceRequirement, stateStoreid, logger| Constructor and Description |
|---|
DefaultRecoveryStep(java.lang.String name,
PodInstanceRequirement podInstanceRequirement,
LaunchConstrainer launchConstrainer,
StateStore stateStore) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getMessage()
Returns a reasonable user-visible status message.
|
RecoveryType |
getRecoveryType() |
int |
hashCode() |
java.util.Optional<PodInstanceRequirement> |
start()
Starts the Step, whose
Status should be Status.PENDING. |
java.lang.String |
toString() |
void |
updateOfferStatus(java.util.Collection<OfferRecommendation> recommendations)
Synchronized to ensure consistency between this and
DeploymentStep.update(Protos.TaskStatus). |
addError, getDisplayStatus, getErrors, getPodInstanceRequirement, update, updateInitialStatus, updateParametersforceComplete, getId, getName, getStatus, interrupt, isInterrupted, proceed, restart, setStatusclone, finalize, getClass, notify, notifyAll, wait, wait, waitisAssetDirty, isEligiblehasErrors, isComplete, isPending, isPrepared, isRunning, isStarted, isStartingpublic DefaultRecoveryStep(java.lang.String name,
PodInstanceRequirement podInstanceRequirement,
LaunchConstrainer launchConstrainer,
StateStore stateStore)
public java.util.Optional<PodInstanceRequirement> start()
StepStatus should be Status.PENDING. Returns an
PodInstanceRequirement, or an empty Optional if obtaining/updating resource requirements are not
applicable to the Step. This will continue to be called for as long as Element.isPending() returns
true.start in interface Stepstart in class DeploymentStep#updateOfferStatus(Collection)} which returns the outcome of
the {@link PodInstanceRequirement} public void updateOfferStatus(java.util.Collection<OfferRecommendation> recommendations)
DeploymentStepDeploymentStep.update(Protos.TaskStatus).updateOfferStatus in interface StepupdateOfferStatus in class DeploymentSteppublic RecoveryType getRecoveryType()
public java.lang.String getMessage()
Elementpublic java.lang.String toString()
toString in class AbstractSteppublic boolean equals(java.lang.Object o)
equals in class AbstractSteppublic int hashCode()
hashCode in class AbstractStep