Class PodKube

java.lang.Object
de.dlr.proseo.model.rest.model.PlannerPod
de.dlr.proseo.planner.rest.model.PodKube
All Implemented Interfaces:
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.
Author:
Ernst Melchinger
See Also:
  • Constructor Details

    • 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.
      Parameters:
      job - Kubernetes job
  • Method Details

    • isCompleted

      public boolean isCompleted()
      Checks if the job has been completed.
      Returns:
      true if the job has been completed, otherwise false
    • hasStatus

      public boolean hasStatus(String status)
      Checks if the job has a specific status.
      Parameters:
      status - the status to check for
      Returns:
      true if the job's state equals the specified status or if the job is completed and type is specified as completed, otherwise false