C
- the type of the child elementspublic interface ParentElement<C extends Element> extends Element, Interruptible
Modifier and Type | Field and Description |
---|---|
static Logger |
LOGGER |
Modifier and Type | Method and Description |
---|---|
default void |
forceComplete()
Force completes children.
|
java.util.List<C> |
getChildren()
Gets the children of this Element.
|
default java.util.List<java.lang.String> |
getErrors(java.util.List<java.lang.String> parentErrors)
Returns all errors from this and all its children.
|
default Status |
getStatus()
Returns the
Status of this Element, used to determine if the element still has work to be completed. |
Strategy<C> |
getStrategy()
Gets the
Strategy applied to the deployment of this Element's children. |
default void |
interrupt()
A call to interrupt indicates to an
Interruptible that it should not continue work beyond the current
point, until Interruptible.proceed() is called. |
default boolean |
isEligible(java.util.Collection<PodInstanceRequirement> dirtyAssets)
Indicates whether this Element is capable of being started.
|
default boolean |
isInterrupted()
Indicates whether the object is interrupted or not.
|
default void |
proceed()
A call to proceed indicates to an
Interruptible that it should may cancel a previous Interruptible.interrupt()
call and resume with any in-progress work. |
default void |
restart()
Restarts children.
|
default void |
update(Protos.TaskStatus taskStatus)
Updates children.
|
default void |
updateParameters(java.util.Map<java.lang.String,java.lang.String> parameters)
Provides the Element with a set of named string parameters that it can either use on start or provide to
children, if it has any.
|
getErrors, getId, getMessage, getName, hasErrors, isComplete, isPending, isPrepared, isRunning, isStarted, isStarting
java.util.List<C> getChildren()
Strategy<C> getStrategy()
Strategy
applied to the deployment of this Element's children.default void interrupt()
Interruptible
Interruptible
that it should not continue work beyond the current
point, until Interruptible.proceed()
is called. This call has no effect if the object is already interrupted.interrupt
in interface Interruptible
default void proceed()
Interruptible
Interruptible
that it should may cancel a previous Interruptible.interrupt()
call and resume with any in-progress work. This call has no effect if the object is already proceeding.proceed
in interface Interruptible
default boolean isInterrupted()
Interruptible
isInterrupted
in interface Interruptible
default void updateParameters(java.util.Map<java.lang.String,java.lang.String> parameters)
Element
updateParameters
in interface Element
default boolean isEligible(java.util.Collection<PodInstanceRequirement> dirtyAssets)
Element
isEligible
in interface Element
default void update(Protos.TaskStatus taskStatus)
default void forceComplete()
forceComplete
in interface Element
default java.util.List<java.lang.String> getErrors(java.util.List<java.lang.String> parentErrors)
parentErrors
- Errors from this itself.