Package com.google.cloud.batch.v1alpha
Interface LifecyclePolicyOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
LifecyclePolicy
,LifecyclePolicy.Builder
public interface LifecyclePolicyOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LifecyclePolicy.Action
getAction()
Action to execute when ActionCondition is true.LifecyclePolicy.ActionCondition
getActionCondition()
Conditions that decide why a task failure is dealt with a specific action.LifecyclePolicy.ActionConditionOrBuilder
getActionConditionOrBuilder()
Conditions that decide why a task failure is dealt with a specific action.int
getActionValue()
Action to execute when ActionCondition is true.boolean
hasActionCondition()
Conditions that decide why a task failure is dealt with a specific action.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getActionValue
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.v1alpha.LifecyclePolicy.Action action = 1;
- Returns:
- The enum numeric value on the wire for action.
-
getAction
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.v1alpha.LifecyclePolicy.Action action = 1;
- Returns:
- The action.
-
hasActionCondition
boolean hasActionCondition()
Conditions that decide why a task failure is dealt with a specific action.
.google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition action_condition = 2;
- Returns:
- Whether the actionCondition field is set.
-
getActionCondition
LifecyclePolicy.ActionCondition getActionCondition()
Conditions that decide why a task failure is dealt with a specific action.
.google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition action_condition = 2;
- Returns:
- The actionCondition.
-
getActionConditionOrBuilder
LifecyclePolicy.ActionConditionOrBuilder getActionConditionOrBuilder()
Conditions that decide why a task failure is dealt with a specific action.
.google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition action_condition = 2;
-
-