Package de.dlr.proseo.planner.rest.model
Klasse PodKube
java.lang.Object
de.dlr.proseo.model.rest.model.PlannerPod
de.dlr.proseo.planner.rest.model.PodKube
- Alle implementierten Schnittstellen:
Serializable
Represents a Kubernetes pod/job and provides methods to handle its data. Extends PlannerPod to inherit common pod properties.
- Autor:
- Ernst Melchinger
- Siehe auch:
-
Feldübersicht
Von Klasse geerbte Felder de.dlr.proseo.model.rest.model.PlannerPod
completiontime, id, log, name, starttime, status, succeded, type
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungPodKube
(io.kubernetes.client.openapi.models.V1Job job) Constructs a PodKube object based on the provided Kubernetes job. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungboolean
Checks if the job has a specific status.boolean
Checks if the job has been completed.Von Klasse geerbte Methoden de.dlr.proseo.model.rest.model.PlannerPod
equals, getCompletiontime, getId, getLog, getName, getStarttime, getStatus, getSucceded, getType, hashCode, setCompletiontime, setId, setLog, setName, setStarttime, setStatus, setSucceded, setType, toString
-
Konstruktordetails
-
PodKube
public PodKube(io.kubernetes.client.openapi.models.V1Job job) Constructs a PodKube object based on the provided Kubernetes job. Extracts relevant information from the job and sets instance variables.- Parameter:
job
- Kubernetes job
-
-
Methodendetails
-
isCompleted
public boolean isCompleted()Checks if the job has been completed.- Gibt zurück:
- true if the job has been completed, otherwise false
-
hasStatus
Checks if the job has a specific status.- Parameter:
status
- the status to check for- Gibt zurück:
- true if the job's state equals the specified status or if the job is completed and type is specified as completed, otherwise false
-