Class JobStatus
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.batch.v1.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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JobStatus.Builder
-
Constructor Summary
Constructors Constructor Description JobStatus()
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)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JobStatus.Builder
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
java.lang.Number
getActive()
The number of actively running pods.java.lang.String
getCompletedIndexes()
CompletedIndexes holds the completed indexes when .spec.completionMode = "Indexed" in a text format.java.time.OffsetDateTime
getCompletionTime()
java.util.List<JobCondition>
getConditions()
The latest available observations of an object's current state.java.lang.Number
getFailed()
The number of pods which reached phase Failed.java.time.OffsetDateTime
getStartTime()
java.lang.Number
getSucceeded()
The number of pods which reached phase Succeeded.UncountedTerminatedPods
getUncountedTerminatedPods()
int
hashCode()
void
setActive(java.lang.Number active)
The number of actively running pods.void
setCompletedIndexes(java.lang.String completedIndexes)
CompletedIndexes holds the completed indexes when .spec.completionMode = "Indexed" in a text format.void
setCompletionTime(java.time.OffsetDateTime completionTime)
void
setConditions(java.util.List<JobCondition> conditions)
The latest available observations of an object's current state.void
setFailed(java.lang.Number failed)
The number of pods which reached phase Failed.void
setStartTime(java.time.OffsetDateTime startTime)
void
setSucceeded(java.lang.Number succeeded)
The number of pods which reached phase Succeeded.void
setUncountedTerminatedPods(UncountedTerminatedPods uncountedTerminatedPods)
JobStatus.Builder
toBuilder()
java.lang.String
toString()
-
-
-
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
-
builder
public static JobStatus.Builder builder()
-
toBuilder
public JobStatus.Builder toBuilder()
-
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.
-
getUncountedTerminatedPods
public UncountedTerminatedPods getUncountedTerminatedPods()
-
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 classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-