public class ResourceCleanupStep extends UninstallStep
id, logger| Constructor and Description |
|---|
ResourceCleanupStep(java.lang.String resourceId,
Status status)
Creates a new instance with the provided
resourceId and initial status. |
| Modifier and Type | Method and Description |
|---|---|
java.util.Optional<PodInstanceRequirement> |
start()
Starts the Step, whose
Status should be Status.PENDING. |
void |
updateOfferStatus(java.util.Collection<OfferRecommendation> recommendations)
Notifies the Step whether the
PodInstanceRequirement previously returned by
Step.start() has been successfully accepted/fulfilled. |
getErrors, getPodInstanceRequirement, updateequals, forceComplete, getId, getName, getStatus, hashCode, interrupt, isInterrupted, proceed, restart, setStatus, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetDisplayStatus, getMessage, isAssetDirty, isEligiblehasErrors, isComplete, isPending, isPrepared, isRunning, isStarted, isStarting, updateParameterspublic ResourceCleanupStep(java.lang.String resourceId,
Status status)
resourceId and initial status.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.#updateOfferStatus(Collection)} which returns the outcome of
the {@link PodInstanceRequirement} public void updateOfferStatus(java.util.Collection<OfferRecommendation> recommendations)
StepPodInstanceRequirement 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.updateOfferStatus in interface StepupdateOfferStatus in class UninstallStep