Interface LifecyclePolicyOrBuilder (0.48.0)

public interface LifecyclePolicyOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAction()

public abstract LifecyclePolicy.Action getAction()

Action to execute when ActionCondition is true. When RETRY_TASK is specified, we will retry failed tasks if we notice any exit code match and fail tasks if no match is found. Likewise, when FAIL_TASK is specified, we will fail tasks if we notice any exit code match and retry tasks if no match is found.

.google.cloud.batch.v1.LifecyclePolicy.Action action = 1;

Returns
Type Description
LifecyclePolicy.Action

The action.

getActionCondition()

public abstract LifecyclePolicy.ActionCondition getActionCondition()

Conditions that decide why a task failure is dealt with a specific action.

.google.cloud.batch.v1.LifecyclePolicy.ActionCondition action_condition = 2;

Returns
Type Description
LifecyclePolicy.ActionCondition

The actionCondition.

getActionConditionOrBuilder()

public abstract LifecyclePolicy.ActionConditionOrBuilder getActionConditionOrBuilder()

Conditions that decide why a task failure is dealt with a specific action.

.google.cloud.batch.v1.LifecyclePolicy.ActionCondition action_condition = 2;

Returns
Type Description
LifecyclePolicy.ActionConditionOrBuilder

getActionValue()

public abstract int getActionValue()

Action to execute when ActionCondition is true. When RETRY_TASK is specified, we will retry failed tasks if we notice any exit code match and fail tasks if no match is found. Likewise, when FAIL_TASK is specified, we will fail tasks if we notice any exit code match and retry tasks if no match is found.

.google.cloud.batch.v1.LifecyclePolicy.Action action = 1;

Returns
Type Description
int

The enum numeric value on the wire for action.

hasActionCondition()

public abstract boolean hasActionCondition()

Conditions that decide why a task failure is dealt with a specific action.

.google.cloud.batch.v1.LifecyclePolicy.ActionCondition action_condition = 2;

Returns
Type Description
boolean

Whether the actionCondition field is set.