-
- All Implemented Interfaces:
-
com.cognifide.gradle.aem.common.instance.provision.Step
public abstract class AbstractStep implements Step
-
-
Field Summary
Fields Modifier and Type Field Description private final Property<String>idprivate final Property<String>descriptionprivate Property<String>versionprivate Function1<Condition, Boolean>conditionCallbackprivate final Property<Boolean>continueOnFailprivate final Property<Boolean>rerunOnFailprivate final Retryretryprivate final Property<Boolean>awaitUpprivate final Provisionerprovisionerprivate final Stringlabel
-
Constructor Summary
Constructors Constructor Description AbstractStep(Provisioner provisioner)
-
Method Summary
Modifier and Type Method Description Booleancondition(Condition condition)Unitcondition(Function1<Condition, Boolean> callback)UnitawaitIf(Function0<Boolean> callback)UnitawaitUp(Function1<AwaitUpAction, Unit> options)UnitawaitUp(Collection<Instance> instances)Unitvalidate()StringtoString()Property<String>getId()Short unique ID of step. Property<String>getDescription()Nice name of step describing purpose. Property<String>getVersion()Implementation version. final Function1<Condition, Boolean>getConditionCallback()Property<Boolean>getContinueOnFail()Controls logging error to console instead of breaking build with exception so that next step might be performed. Property<Boolean>getRerunOnFail()Controls if step should be performed again when previously failed. RetrygetRetry()Allows to redo step action after delay if exception is thrown. Property<Boolean>getAwaitUp()Controls is after running step on all instances, checking for up instances need to be done. final ProvisionergetProvisioner()StringgetLabel()UnitsetVersion(Property<String> version)Implementation version. final UnitsetConditionCallback(Function1<Condition, Boolean> conditionCallback)-
Methods inherited from class com.cognifide.gradle.aem.common.instance.provision.step.AbstractStep
action, init -
Methods inherited from class com.cognifide.gradle.aem.common.instance.provision.Step
equals, hashCode -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
AbstractStep
AbstractStep(Provisioner provisioner)
-
-
Method Detail
-
awaitUp
Unit awaitUp(Function1<AwaitUpAction, Unit> options)
-
awaitUp
Unit awaitUp(Collection<Instance> instances)
-
getDescription
Property<String> getDescription()
Nice name of step describing purpose.
-
getVersion
Property<String> getVersion()
Implementation version.
-
getConditionCallback
final Function1<Condition, Boolean> getConditionCallback()
-
getContinueOnFail
Property<Boolean> getContinueOnFail()
Controls logging error to console instead of breaking build with exception so that next step might be performed.
-
getRerunOnFail
Property<Boolean> getRerunOnFail()
Controls if step should be performed again when previously failed.
-
getAwaitUp
Property<Boolean> getAwaitUp()
Controls is after running step on all instances, checking for up instances need to be done.
-
getProvisioner
final Provisioner getProvisioner()
-
setVersion
Unit setVersion(Property<String> version)
Implementation version.
-
setConditionCallback
final Unit setConditionCallback(Function1<Condition, Boolean> conditionCallback)
-
-
-
-