Klasse PodKube

java.lang.Object
de.dlr.proseo.model.rest.model.PlannerPod
de.dlr.proseo.planner.rest.model.PodKube
Alle implementierten Schnittstellen:
Serializable

public class PodKube extends PlannerPod
Represents a Kubernetes pod/job and provides methods to handle its data. Extends PlannerPod to inherit common pod properties.
Autor:
Ernst Melchinger
Siehe auch:
  • 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

      public boolean hasStatus(String status)
      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