Class V1JobStatus
java.lang.Object
io.kubernetes.client.openapi.models.V1JobStatus
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-04-23T13:45:09.091597Z[Etc/UTC]")
public class V1JobStatus
extends Object
JobStatus represents the current state of a Job.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddConditionsItem
(V1JobCondition conditionsItem) completedIndexes
(String completedIndexes) completionTime
(OffsetDateTime completionTime) conditions
(List<V1JobCondition> conditions) boolean
failedIndexes
(String failedIndexes) static V1JobStatus
Create an instance of V1JobStatus given an JSON stringThe 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.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 pods which have a Ready condition.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).Get uncountedTerminatedPodsint
hashCode()
void
void
setCompletedIndexes
(String completedIndexes) void
setCompletionTime
(OffsetDateTime completionTime) void
setConditions
(List<V1JobCondition> conditions) void
void
setFailedIndexes
(String failedIndexes) void
void
setStartTime
(OffsetDateTime startTime) void
setSucceeded
(Integer succeeded) void
setTerminating
(Integer terminating) void
setUncountedTerminatedPods
(V1UncountedTerminatedPods uncountedTerminatedPods) startTime
(OffsetDateTime startTime) terminating
(Integer terminating) toJson()
Convert an instance of V1JobStatus to an JSON stringtoString()
uncountedTerminatedPods
(V1UncountedTerminatedPods uncountedTerminatedPods) static void
validateJsonObject
(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_ACTIVE
- See Also:
-
SERIALIZED_NAME_COMPLETED_INDEXES
- See Also:
-
SERIALIZED_NAME_COMPLETION_TIME
- See Also:
-
SERIALIZED_NAME_CONDITIONS
- See Also:
-
SERIALIZED_NAME_FAILED
- See Also:
-
SERIALIZED_NAME_FAILED_INDEXES
- See Also:
-
SERIALIZED_NAME_READY
- See Also:
-
SERIALIZED_NAME_START_TIME
- See Also:
-
SERIALIZED_NAME_SUCCEEDED
- See Also:
-
SERIALIZED_NAME_TERMINATING
- See Also:
-
SERIALIZED_NAME_UNCOUNTED_TERMINATED_PODS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1JobStatus
public V1JobStatus()
-
-
Method Details
-
active
-
getActive
The number of pending and running pods which are not terminating (without a deletionTimestamp). The value is zero for finished jobs.- Returns:
- active
-
setActive
-
completedIndexes
-
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:
- completedIndexes
-
setCompletedIndexes
-
completionTime
-
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:
- completionTime
-
setCompletionTime
-
conditions
-
addConditionsItem
-
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:
- conditions
-
setConditions
-
failed
-
getFailed
The number of pods which reached phase Failed. The value increases monotonically.- Returns:
- failed
-
setFailed
-
failedIndexes
-
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:
- failedIndexes
-
setFailedIndexes
-
ready
-
getReady
The number of pods which have a Ready condition.- Returns:
- ready
-
setReady
-
startTime
-
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:
- startTime
-
setStartTime
-
succeeded
-
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:
- succeeded
-
setSucceeded
-
terminating
-
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:
- terminating
-
setTerminating
-
uncountedTerminatedPods
-
getUncountedTerminatedPods
Get uncountedTerminatedPods- Returns:
- uncountedTerminatedPods
-
setUncountedTerminatedPods
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonObject
Validates the JSON Object and throws an exception if issues found- Parameters:
jsonObj
- JSON Object- Throws:
IOException
- if the JSON Object is invalid with respect to V1JobStatus
-
fromJson
Create an instance of V1JobStatus given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1JobStatus
- Throws:
IOException
- if the JSON string is invalid with respect to V1JobStatus
-
toJson
Convert an instance of V1JobStatus to an JSON string- Returns:
- JSON string
-