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.lang.String failedIndexes, java.lang.Number ready, java.time.OffsetDateTime startTime, java.lang.Number succeeded, java.lang.Number terminating, 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 pending and 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.lang.String
getFailedIndexes()
FailedIndexes holds the failed indexes when backoffLimitPerIndex=true.java.lang.Number
getReady()
The number of pods which have a Ready condition.java.time.OffsetDateTime
getStartTime()
java.lang.Number
getSucceeded()
The number of pods which reached phase Succeeded.java.lang.Number
getTerminating()
The number of pods which are terminating (in phase Pending or Running and have a deletionTimestamp).UncountedTerminatedPods
getUncountedTerminatedPods()
int
hashCode()
void
setActive(java.lang.Number active)
The number of pending and 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
setFailedIndexes(java.lang.String failedIndexes)
FailedIndexes holds the failed indexes when backoffLimitPerIndex=true.void
setReady(java.lang.Number ready)
The number of pods which have a Ready condition.void
setStartTime(java.time.OffsetDateTime startTime)
void
setSucceeded(java.lang.Number succeeded)
The number of pods which reached phase Succeeded.void
setTerminating(java.lang.Number terminating)
The number of pods which are terminating (in phase Pending or Running and have a deletionTimestamp).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.lang.String failedIndexes, java.lang.Number ready, java.time.OffsetDateTime startTime, java.lang.Number succeeded, java.lang.Number terminating, 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 pending and 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.
-
getFailedIndexes
public java.lang.String getFailedIndexes()
FailedIndexes holds the failed indexes when backoffLimitPerIndex=true. 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". This field is alpha-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (disabled by default).
-
getReady
public java.lang.Number getReady()
The number of pods which have a Ready condition.This field is beta-level. The job controller populates the field when the feature gate JobReadyPods is enabled (enabled by default).
-
getStartTime
public java.time.OffsetDateTime getStartTime()
-
getSucceeded
public java.lang.Number getSucceeded()
The number of pods which reached phase Succeeded.
-
getTerminating
public java.lang.Number getTerminating()
The number of pods which are terminating (in phase Pending or Running and have a deletionTimestamp).This field is alpha-level. The job controller populates the field when the feature gate JobPodReplacementPolicy is enabled (disabled by default).
-
getUncountedTerminatedPods
public UncountedTerminatedPods getUncountedTerminatedPods()
-
setActive
public void setActive(java.lang.Number active)
The number of pending and 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.
-
setFailedIndexes
public void setFailedIndexes(java.lang.String failedIndexes)
FailedIndexes holds the failed indexes when backoffLimitPerIndex=true. 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". This field is alpha-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (disabled by default).
-
setReady
public void setReady(java.lang.Number ready)
The number of pods which have a Ready condition.This field is beta-level. The job controller populates the field when the feature gate JobReadyPods is enabled (enabled by default).
-
setStartTime
public void setStartTime(java.time.OffsetDateTime startTime)
-
setSucceeded
public void setSucceeded(java.lang.Number succeeded)
The number of pods which reached phase Succeeded.
-
setTerminating
public void setTerminating(java.lang.Number terminating)
The number of pods which are terminating (in phase Pending or Running and have a deletionTimestamp).This field is alpha-level. The job controller populates the field when the feature gate JobPodReplacementPolicy is enabled (disabled by default).
-
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
-
-