public abstract class UninstallStep extends AbstractStep
id, logger
Constructor and Description |
---|
UninstallStep(java.lang.String name,
Status status) |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
getErrors()
Returns a list of user-visible descriptive error messages associated with this Element.
|
java.util.Optional<PodInstanceRequirement> |
getPodInstanceRequirement()
Return the pod instance that this Step intends to work on.
|
void |
update(Protos.TaskStatus status)
Provides the Element with a recent
TaskStatus update which was received from Mesos. |
void |
updateOfferStatus(java.util.Collection<OfferRecommendation> recommendations)
Notifies the Step whether the
PodInstanceRequirement previously returned by
Step.start() has been successfully accepted/fulfilled. |
equals, forceComplete, getId, getName, getStatus, hashCode, interrupt, isInterrupted, proceed, restart, setStatus, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getDisplayStatus, getMessage, isAssetDirty, isEligible, start
hasErrors, isComplete, isPending, isPrepared, isRunning, isStarted, isStarting, updateParameters
public UninstallStep(java.lang.String name, Status status)
public java.util.Optional<PodInstanceRequirement> getPodInstanceRequirement()
Step
public void updateOfferStatus(java.util.Collection<OfferRecommendation> recommendations)
Step
PodInstanceRequirement
previously returned by
Step.start()
has been successfully accepted/fulfilled. The recommendations
param is
empty when no offers matching the requirement previously returned by Step.start()
could be found. This is only called if Step.start()
returned a non-empty
PodInstanceRequirement
.public java.util.List<java.lang.String> getErrors()
Element
public void update(Protos.TaskStatus status)
Element
TaskStatus
update which was received from Mesos.