Class V1JobStatus
java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1JobStatus
@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen")
public class V1JobStatus
extends Object
JobStatus represents the current state of a Job.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSet active in a chainable fashion.addconditionsItem
(V1JobCondition conditionsItem) Add an item to the conditions property in a chainable fashion.completedIndexes
(String completedIndexes) Set completedIndexes in a chainable fashion.completionTime
(ZonedDateTime completionTime) Set completionTime in a chainable fashion.conditions
(List<@Valid V1JobCondition> conditions) Set conditions in a chainable fashion.boolean
Set failed in a chainable fashion.failedIndexes
(String failedIndexes) Set failedIndexes in a chainable fashion.The number of pending and running pods which are not terminating (without a deletionTimestamp).completedIndexes holds the completed indexes when .spec.completionMode = \"Indexed\" in a text format.Represents time when the job was completed.List<@Valid V1JobCondition>
The latest available observations of an object's current state.The number of pods which reached phase Failed.FailedIndexes holds the failed indexes when spec.backoffLimitPerIndex is set.getReady()
The number of active pods which have a Ready condition and are not terminating (without a deletionTimestamp).Represents time when the job controller started processing a job.The number of pods which reached phase Succeeded.The number of pods which are terminating (in phase Pending or Running and have a deletionTimestamp).int
hashCode()
Set ready in a chainable fashion.void
Set the active property valuevoid
setCompletedIndexes
(String completedIndexes) Set the completedIndexes property valuevoid
setCompletionTime
(ZonedDateTime completionTime) Set the completionTime property valuevoid
setConditions
(List<@Valid V1JobCondition> conditions) Set the conditions property valuevoid
Set the failed property valuevoid
setFailedIndexes
(String failedIndexes) Set the failedIndexes property valuevoid
Set the ready property valuevoid
setStartTime
(ZonedDateTime startTime) Set the startTime property valuevoid
setSucceeded
(Integer succeeded) Set the succeeded property valuevoid
setTerminating
(Integer terminating) Set the terminating property valuevoid
setUncountedTerminatedPods
(V1UncountedTerminatedPods uncountedTerminatedPods) Set the uncountedTerminatedPods property valuestartTime
(ZonedDateTime startTime) Set startTime in a chainable fashion.Set succeeded in a chainable fashion.terminating
(Integer terminating) Set terminating in a chainable fashion.toString()
uncountedTerminatedPods
(V1UncountedTerminatedPods uncountedTerminatedPods) Set uncountedTerminatedPods in a chainable fashion.
-
Field Details
-
JSON_PROPERTY_ACTIVE
- See Also:
-
JSON_PROPERTY_COMPLETED_INDEXES
- See Also:
-
JSON_PROPERTY_COMPLETION_TIME
- See Also:
-
JSON_PROPERTY_CONDITIONS
- See Also:
-
JSON_PROPERTY_FAILED
- See Also:
-
JSON_PROPERTY_FAILED_INDEXES
- See Also:
-
JSON_PROPERTY_READY
- See Also:
-
JSON_PROPERTY_START_TIME
- See Also:
-
JSON_PROPERTY_SUCCEEDED
- See Also:
-
JSON_PROPERTY_TERMINATING
- See Also:
-
JSON_PROPERTY_UNCOUNTED_TERMINATED_PODS
- See Also:
-
-
Constructor Details
-
V1JobStatus
public V1JobStatus()
-
-
Method Details
-
getActive
The number of pending and running pods which are not terminating (without a deletionTimestamp). The value is zero for finished jobs.- Returns:
- the active property value
-
setActive
Set the active property value- Parameters:
active
- property value to set
-
active
Set active in a chainable fashion.- Returns:
- The same instance of V1JobStatus for chaining.
-
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\".- Returns:
- the completedIndexes property value
-
setCompletedIndexes
Set the completedIndexes property value- Parameters:
completedIndexes
- property value to set
-
completedIndexes
Set completedIndexes in a chainable fashion.- Returns:
- The same instance of V1JobStatus for chaining.
-
getCompletionTime
Represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. The completion time is set when the job finishes successfully, and only then. The value cannot be updated or removed. The value indicates the same or later point in time as the startTime field.- Returns:
- the completionTime property value
-
setCompletionTime
Set the completionTime property value- Parameters:
completionTime
- property value to set
-
completionTime
Set completionTime in a chainable fashion.- Returns:
- The same instance of V1JobStatus for chaining.
-
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/- Returns:
- the conditions property value
-
setConditions
Set the conditions property value- Parameters:
conditions
- property value to set
-
conditions
Set conditions in a chainable fashion.- Returns:
- The same instance of V1JobStatus for chaining.
-
addconditionsItem
Add an item to the conditions property in a chainable fashion.- Returns:
- The same instance of V1JobStatus for chaining.
-
getFailed
The number of pods which reached phase Failed. The value increases monotonically.- Returns:
- the failed property value
-
setFailed
Set the failed property value- Parameters:
failed
- property value to set
-
failed
Set failed in a chainable fashion.- Returns:
- The same instance of V1JobStatus for chaining.
-
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. This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).- Returns:
- the failedIndexes property value
-
setFailedIndexes
Set the failedIndexes property value- Parameters:
failedIndexes
- property value to set
-
failedIndexes
Set failedIndexes in a chainable fashion.- Returns:
- The same instance of V1JobStatus for chaining.
-
getReady
The number of active pods which have a Ready condition and are not terminating (without a deletionTimestamp).- Returns:
- the ready property value
-
setReady
Set the ready property value- Parameters:
ready
- property value to set
-
ready
Set ready in a chainable fashion.- Returns:
- The same instance of V1JobStatus for chaining.
-
getStartTime
Represents time when the job controller started processing a job. When a Job is created in the suspended state, this field is not set until the first time it is resumed. This field is reset every time a Job is resumed from suspension. It is represented in RFC3339 form and is in UTC. Once set, the field can only be removed when the job is suspended. The field cannot be modified while the job is unsuspended or finished.- Returns:
- the startTime property value
-
setStartTime
Set the startTime property value- Parameters:
startTime
- property value to set
-
startTime
Set startTime in a chainable fashion.- Returns:
- The same instance of V1JobStatus for chaining.
-
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.- Returns:
- the succeeded property value
-
setSucceeded
Set the succeeded property value- Parameters:
succeeded
- property value to set
-
succeeded
Set succeeded in a chainable fashion.- Returns:
- The same instance of V1JobStatus for chaining.
-
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).- Returns:
- the terminating property value
-
setTerminating
Set the terminating property value- Parameters:
terminating
- property value to set
-
terminating
Set terminating in a chainable fashion.- Returns:
- The same instance of V1JobStatus for chaining.
-
getUncountedTerminatedPods
- Returns:
- the uncountedTerminatedPods property value
-
setUncountedTerminatedPods
Set the uncountedTerminatedPods property value- Parameters:
uncountedTerminatedPods
- property value to set
-
uncountedTerminatedPods
Set uncountedTerminatedPods in a chainable fashion.- Returns:
- The same instance of V1JobStatus for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-