Package net.stickycode.kuuty.model.v18
Class IoK8sApiBatchV1JobSpec
- java.lang.Object
-
- net.stickycode.kuuty.model.v18.IoK8sApiBatchV1JobSpec
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2020-11-26T11:01:11.402583+13:00[Pacific/Auckland]") public class IoK8sApiBatchV1JobSpec extends Object
JobSpec describes how the job execution will look like.
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ACTIVE_DEADLINE_SECONDSstatic StringJSON_PROPERTY_BACKOFF_LIMITstatic StringJSON_PROPERTY_COMPLETIONSstatic StringJSON_PROPERTY_MANUAL_SELECTORstatic StringJSON_PROPERTY_PARALLELISMstatic StringJSON_PROPERTY_SELECTORstatic StringJSON_PROPERTY_TEMPLATEstatic StringJSON_PROPERTY_TTL_SECONDS_AFTER_FINISHED
-
Constructor Summary
Constructors Constructor Description IoK8sApiBatchV1JobSpec()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IoK8sApiBatchV1JobSpecactiveDeadlineSeconds(Long activeDeadlineSeconds)IoK8sApiBatchV1JobSpecbackoffLimit(Integer backoffLimit)IoK8sApiBatchV1JobSpeccompletions(Integer completions)booleanequals(Object o)LonggetActiveDeadlineSeconds()Specifies the duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integerIntegergetBackoffLimit()Specifies the number of retries before marking this job failed.IntegergetCompletions()Specifies the desired number of successfully finished pods the job should be run with.BooleangetManualSelector()manualSelector controls generation of pod labels and pod selectors.IntegergetParallelism()Specifies the maximum desired number of pods the job should run at any given time.IoK8sApimachineryPkgApisMetaV1LabelSelectorgetSelector()Get selectorIoK8sApiCoreV1PodTemplateSpecgetTemplate()Get templateIntegergetTtlSecondsAfterFinished()ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed).inthashCode()IoK8sApiBatchV1JobSpecmanualSelector(Boolean manualSelector)IoK8sApiBatchV1JobSpecparallelism(Integer parallelism)IoK8sApiBatchV1JobSpecselector(IoK8sApimachineryPkgApisMetaV1LabelSelector selector)voidsetActiveDeadlineSeconds(Long activeDeadlineSeconds)voidsetBackoffLimit(Integer backoffLimit)voidsetCompletions(Integer completions)voidsetManualSelector(Boolean manualSelector)voidsetParallelism(Integer parallelism)voidsetSelector(IoK8sApimachineryPkgApisMetaV1LabelSelector selector)voidsetTemplate(IoK8sApiCoreV1PodTemplateSpec template)voidsetTtlSecondsAfterFinished(Integer ttlSecondsAfterFinished)IoK8sApiBatchV1JobSpectemplate(IoK8sApiCoreV1PodTemplateSpec template)StringtoString()IoK8sApiBatchV1JobSpecttlSecondsAfterFinished(Integer ttlSecondsAfterFinished)
-
-
-
Field Detail
-
JSON_PROPERTY_ACTIVE_DEADLINE_SECONDS
public static final String JSON_PROPERTY_ACTIVE_DEADLINE_SECONDS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_BACKOFF_LIMIT
public static final String JSON_PROPERTY_BACKOFF_LIMIT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_COMPLETIONS
public static final String JSON_PROPERTY_COMPLETIONS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MANUAL_SELECTOR
public static final String JSON_PROPERTY_MANUAL_SELECTOR
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PARALLELISM
public static final String JSON_PROPERTY_PARALLELISM
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SELECTOR
public static final String JSON_PROPERTY_SELECTOR
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TEMPLATE
public static final String JSON_PROPERTY_TEMPLATE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TTL_SECONDS_AFTER_FINISHED
public static final String JSON_PROPERTY_TTL_SECONDS_AFTER_FINISHED
- See Also:
- Constant Field Values
-
-
Method Detail
-
activeDeadlineSeconds
public IoK8sApiBatchV1JobSpec activeDeadlineSeconds(Long activeDeadlineSeconds)
-
getActiveDeadlineSeconds
@Nullable public Long getActiveDeadlineSeconds()
Specifies the duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer- Returns:
- activeDeadlineSeconds
-
setActiveDeadlineSeconds
public void setActiveDeadlineSeconds(Long activeDeadlineSeconds)
-
backoffLimit
public IoK8sApiBatchV1JobSpec backoffLimit(Integer backoffLimit)
-
getBackoffLimit
@Nullable public Integer getBackoffLimit()
Specifies the number of retries before marking this job failed. Defaults to 6- Returns:
- backoffLimit
-
setBackoffLimit
public void setBackoffLimit(Integer backoffLimit)
-
completions
public IoK8sApiBatchV1JobSpec completions(Integer completions)
-
getCompletions
@Nullable public Integer getCompletions()
Specifies the desired number of successfully finished pods the job should be run with. Setting to nil means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/- Returns:
- completions
-
setCompletions
public void setCompletions(Integer completions)
-
manualSelector
public IoK8sApiBatchV1JobSpec manualSelector(Boolean manualSelector)
-
getManualSelector
@Nullable public Boolean getManualSelector()
manualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#specifying-your-own-pod-selector- Returns:
- manualSelector
-
setManualSelector
public void setManualSelector(Boolean manualSelector)
-
parallelism
public IoK8sApiBatchV1JobSpec parallelism(Integer parallelism)
-
getParallelism
@Nullable public Integer getParallelism()
Specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/- Returns:
- parallelism
-
setParallelism
public void setParallelism(Integer parallelism)
-
selector
public IoK8sApiBatchV1JobSpec selector(IoK8sApimachineryPkgApisMetaV1LabelSelector selector)
-
getSelector
@Nullable public IoK8sApimachineryPkgApisMetaV1LabelSelector getSelector()
Get selector- Returns:
- selector
-
setSelector
public void setSelector(IoK8sApimachineryPkgApisMetaV1LabelSelector selector)
-
template
public IoK8sApiBatchV1JobSpec template(IoK8sApiCoreV1PodTemplateSpec template)
-
getTemplate
public IoK8sApiCoreV1PodTemplateSpec getTemplate()
Get template- Returns:
- template
-
setTemplate
public void setTemplate(IoK8sApiCoreV1PodTemplateSpec template)
-
ttlSecondsAfterFinished
public IoK8sApiBatchV1JobSpec ttlSecondsAfterFinished(Integer ttlSecondsAfterFinished)
-
getTtlSecondsAfterFinished
@Nullable public Integer getTtlSecondsAfterFinished()
ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes. This field is alpha-level and is only honored by servers that enable the TTLAfterFinished feature.- Returns:
- ttlSecondsAfterFinished
-
setTtlSecondsAfterFinished
public void setTtlSecondsAfterFinished(Integer ttlSecondsAfterFinished)
-
-