Class JobStatus

  • All Implemented Interfaces:
    com.marcnuri.yakc.model.Model

    public class JobStatus
    extends java.lang.Object
    implements com.marcnuri.yakc.model.Model
    JobStatus represents the current state of a Job.
    • Constructor Detail

      • JobStatus

        public JobStatus​(java.lang.Number active,
                         java.lang.String completedIndexes,
                         java.time.OffsetDateTime completionTime,
                         java.util.List<JobCondition> conditions,
                         java.lang.Number failed,
                         java.time.OffsetDateTime startTime,
                         java.lang.Number succeeded,
                         UncountedTerminatedPods uncountedTerminatedPods)
      • JobStatus

        public JobStatus()
    • Method Detail

      • getActive

        public java.lang.Number getActive()
        The number of actively running pods.
      • getCompletedIndexes

        public java.lang.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".
      • getCompletionTime

        public java.time.OffsetDateTime getCompletionTime()
      • getConditions

        public java.util.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. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
      • getFailed

        public java.lang.Number getFailed()
        The number of pods which reached phase Failed.
      • getStartTime

        public java.time.OffsetDateTime getStartTime()
      • getSucceeded

        public java.lang.Number getSucceeded()
        The number of pods which reached phase Succeeded.
      • setActive

        public void setActive​(java.lang.Number active)
        The number of actively running pods.
      • setCompletedIndexes

        public void setCompletedIndexes​(java.lang.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".
      • setCompletionTime

        public void setCompletionTime​(java.time.OffsetDateTime completionTime)
      • setConditions

        public void setConditions​(java.util.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. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
      • setFailed

        public void setFailed​(java.lang.Number failed)
        The number of pods which reached phase Failed.
      • setStartTime

        public void setStartTime​(java.time.OffsetDateTime startTime)
      • setSucceeded

        public void setSucceeded​(java.lang.Number succeeded)
        The number of pods which reached phase Succeeded.
      • setUncountedTerminatedPods

        public void setUncountedTerminatedPods​(UncountedTerminatedPods uncountedTerminatedPods)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object