Class JobStatus

  • All Implemented Interfaces:
    io.fabric8.kubernetes.api.builder.Editable<JobStatusBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource, Serializable

    @Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator")
    public class JobStatus
    extends Object
    implements io.fabric8.kubernetes.api.builder.Editable<JobStatusBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
    JobStatus represents the current state of a Job.
    See Also:
    Serialized Form
    • Method Detail

      • getActive

        public Integer getActive()
        The number of pending and running pods which are not terminating (without a deletionTimestamp). The value is zero for finished jobs.
      • setActive

        public void setActive​(Integer active)
        The number of pending and running pods which are not terminating (without a deletionTimestamp). The value is zero for finished jobs.
      • getCompletedIndexes

        public String getCompletedIndexes()
        completedIndexes holds the completed indexes when .spec.completionMode = "Indexed" in a text format. The indexes are represented as decimal integers separated by commas. The numbers are listed in increasing order. Three or more consecutive numbers are compressed and represented by the first and last element of the series, separated by a hyphen. For example, if the completed indexes are 1, 3, 4, 5 and 7, they are represented as "1,3-5,7".
      • setCompletedIndexes

        public void setCompletedIndexes​(String completedIndexes)
        completedIndexes holds the completed indexes when .spec.completionMode = "Indexed" in a text format. The indexes are represented as decimal integers separated by commas. The numbers are listed in increasing order. Three or more consecutive numbers are compressed and represented by the first and last element of the series, separated by a hyphen. For example, if the completed indexes are 1, 3, 4, 5 and 7, they are represented as "1,3-5,7".
      • getCompletionTime

        public String getCompletionTime()
        JobStatus represents the current state of a Job.
      • setCompletionTime

        public void setCompletionTime​(String completionTime)
        JobStatus represents the current state of a Job.
      • getConditions

        public List<JobCondition> getConditions()
        The latest available observations of an object's current state. When a Job fails, one of the conditions will have type "Failed" and status true. When a Job is suspended, one of the conditions will have type "Suspended" and status true; when the Job is resumed, the status of this condition will become false. When a Job is completed, one of the conditions will have type "Complete" and status true.


        A job is considered finished when it is in a terminal condition, either "Complete" or "Failed". A Job cannot have both the "Complete" and "Failed" conditions. Additionally, it cannot be in the "Complete" and "FailureTarget" conditions. The "Complete", "Failed" and "FailureTarget" conditions cannot be disabled.


        More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/

      • setConditions

        public void setConditions​(List<JobCondition> conditions)
        The latest available observations of an object's current state. When a Job fails, one of the conditions will have type "Failed" and status true. When a Job is suspended, one of the conditions will have type "Suspended" and status true; when the Job is resumed, the status of this condition will become false. When a Job is completed, one of the conditions will have type "Complete" and status true.


        A job is considered finished when it is in a terminal condition, either "Complete" or "Failed". A Job cannot have both the "Complete" and "Failed" conditions. Additionally, it cannot be in the "Complete" and "FailureTarget" conditions. The "Complete", "Failed" and "FailureTarget" conditions cannot be disabled.


        More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/

      • getFailed

        public Integer getFailed()
        The number of pods which reached phase Failed. The value increases monotonically.
      • setFailed

        public void setFailed​(Integer failed)
        The number of pods which reached phase Failed. The value increases monotonically.
      • getFailedIndexes

        public String getFailedIndexes()
        FailedIndexes holds the failed indexes when spec.backoffLimitPerIndex is set. The indexes are represented in the text format analogous as for the `completedIndexes` field, ie. they are kept as decimal integers separated by commas. The numbers are listed in increasing order. Three or more consecutive numbers are compressed and represented by the first and last element of the series, separated by a hyphen. For example, if the failed indexes are 1, 3, 4, 5 and 7, they are represented as "1,3-5,7". The set of failed indexes cannot overlap with the set of completed indexes.
      • setFailedIndexes

        public void setFailedIndexes​(String failedIndexes)
        FailedIndexes holds the failed indexes when spec.backoffLimitPerIndex is set. The indexes are represented in the text format analogous as for the `completedIndexes` field, ie. they are kept as decimal integers separated by commas. The numbers are listed in increasing order. Three or more consecutive numbers are compressed and represented by the first and last element of the series, separated by a hyphen. For example, if the failed indexes are 1, 3, 4, 5 and 7, they are represented as "1,3-5,7". The set of failed indexes cannot overlap with the set of completed indexes.
      • getReady

        public Integer getReady()
        The number of active pods which have a Ready condition and are not terminating (without a deletionTimestamp).
      • setReady

        public void setReady​(Integer ready)
        The number of active pods which have a Ready condition and are not terminating (without a deletionTimestamp).
      • getStartTime

        public String getStartTime()
        JobStatus represents the current state of a Job.
      • setStartTime

        public void setStartTime​(String startTime)
        JobStatus represents the current state of a Job.
      • getSucceeded

        public Integer getSucceeded()
        The number of pods which reached phase Succeeded. The value increases monotonically for a given spec. However, it may decrease in reaction to scale down of elastic indexed jobs.
      • setSucceeded

        public void setSucceeded​(Integer succeeded)
        The number of pods which reached phase Succeeded. The value increases monotonically for a given spec. However, it may decrease in reaction to scale down of elastic indexed jobs.
      • getTerminating

        public Integer getTerminating()
        The number of pods which are terminating (in phase Pending or Running and have a deletionTimestamp).


        This field is beta-level. The job controller populates the field when the feature gate JobPodReplacementPolicy is enabled (enabled by default).

      • setTerminating

        public void setTerminating​(Integer terminating)
        The number of pods which are terminating (in phase Pending or Running and have a deletionTimestamp).


        This field is beta-level. The job controller populates the field when the feature gate JobPodReplacementPolicy is enabled (enabled by default).

      • getUncountedTerminatedPods

        public UncountedTerminatedPods getUncountedTerminatedPods()
        JobStatus represents the current state of a Job.
      • setUncountedTerminatedPods

        public void setUncountedTerminatedPods​(UncountedTerminatedPods uncountedTerminatedPods)
        JobStatus represents the current state of a Job.
      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)