Klasse JobstepControllerImpl

java.lang.Object
de.dlr.proseo.planner.rest.JobstepControllerImpl
Alle implementierten Schnittstellen:
JobstepController

@Component public class JobstepControllerImpl extends Object implements JobstepController
Spring MVC controller for the prosEO planner; implements the services required to plan and handle job steps.
Autor:
Ernst Melchinger
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
     
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    org.springframework.http.ResponseEntity<RestJobStep>
    cancelJobStep(String jobstepId, org.springframework.http.HttpHeaders httpHeaders)
    Cancel a production planner job step identified by name or id
    org.springframework.http.ResponseEntity<RestJobStep>
    getJobStep(String name, org.springframework.http.HttpHeaders httpHeaders)
    Get production planner job step identified by name or id
    org.springframework.http.ResponseEntity<String>
    getJobStepLog(String name, org.springframework.http.HttpHeaders httpHeaders)
    Get production planner job step log string by name or id
    org.springframework.http.ResponseEntity<List<RestJobStep>>
    getJobSteps(Status status, String mission, Long last, org.springframework.http.HttpHeaders httpHeaders)
    Retrieves a list of job steps based on the provided status, mission, and optional last parameter.
    org.springframework.http.ResponseEntity<RestJobStep>
    resumeJobStep(String jobstepId, org.springframework.http.HttpHeaders httpHeaders)
    Resume a production planner job step identified by name or id
    org.springframework.http.ResponseEntity<RestJobStep>
    retryJobStep(String jobstepId, org.springframework.http.HttpHeaders httpHeaders)
    Retry a production planner job step identified by name or id
    org.springframework.http.ResponseEntity<RestJobStep>
    suspendJobStep(String jobstepId, Boolean forceP, org.springframework.http.HttpHeaders httpHeaders)
    Cancel a production planner job step identified by name or id.

    Von Klasse geerbte Methoden java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Konstruktordetails

    • JobstepControllerImpl

      public JobstepControllerImpl()
  • Methodendetails

    • getJobSteps

      @Transactional(isolation=REPEATABLE_READ, readOnly=true) public org.springframework.http.ResponseEntity<List<RestJobStep>> getJobSteps(Status status, String mission, Long last, org.springframework.http.HttpHeaders httpHeaders)
      Retrieves a list of job steps based on the provided status, mission, and optional last parameter.
      Angegeben von:
      getJobSteps in Schnittstelle JobstepController
      Parameter:
      status - The status of the job steps to retrieve.
      mission - The mission code for which the job steps are retrieved. If null or blank, uses the mission from security context.
      last - An optional parameter indicating the index of the last job step retrieved.
      httpHeaders - HttpHeaders object containing HTTP headers for the response.
      Gibt zurück:
      ResponseEntity containing a list of REST representations of the retrieved job steps.
    • getJobStep

      public org.springframework.http.ResponseEntity<RestJobStep> getJobStep(String name, org.springframework.http.HttpHeaders httpHeaders)
      Get production planner job step identified by name or id
      Angegeben von:
      getJobStep in Schnittstelle JobstepController
      Parameter:
      name - The name or id of the job step to retrieve
      httpHeaders - HttpHeaders object containing HTTP headers for the response.
      Gibt zurück:
      ResponseEntity containing the RestJobStep object
    • getJobStepLog

      public org.springframework.http.ResponseEntity<String> getJobStepLog(String name, org.springframework.http.HttpHeaders httpHeaders)
      Get production planner job step log string by name or id
      Angegeben von:
      getJobStepLog in Schnittstelle JobstepController
      Parameter:
      name - The name or id of the job step to retrieve the log for
      httpHeaders - HttpHeaders object containing HTTP headers for the response.
      Gibt zurück:
      ResponseEntity containing the log string
    • resumeJobStep

      public org.springframework.http.ResponseEntity<RestJobStep> resumeJobStep(String jobstepId, org.springframework.http.HttpHeaders httpHeaders)
      Resume a production planner job step identified by name or id
      Angegeben von:
      resumeJobStep in Schnittstelle JobstepController
      Parameter:
      jobstepId - The id of the job step to resume
      httpHeaders - HttpHeaders object containing HTTP headers for the response.
      Gibt zurück:
      ResponseEntity containing the resumed RestJobStep object
    • cancelJobStep

      public org.springframework.http.ResponseEntity<RestJobStep> cancelJobStep(String jobstepId, org.springframework.http.HttpHeaders httpHeaders)
      Cancel a production planner job step identified by name or id
      Angegeben von:
      cancelJobStep in Schnittstelle JobstepController
      Parameter:
      jobstepId - The id of the job step to cancel
      httpHeaders - HttpHeaders object containing HTTP headers for the response.
      Gibt zurück:
      ResponseEntity containing the canceled RestJobStep object
    • suspendJobStep

      public org.springframework.http.ResponseEntity<RestJobStep> suspendJobStep(String jobstepId, Boolean forceP, org.springframework.http.HttpHeaders httpHeaders)
      Cancel a production planner job step identified by name or id. Kill the job step if force equals true, otherwise wait until end of Kubernetes job.
      Angegeben von:
      suspendJobStep in Schnittstelle JobstepController
      Parameter:
      jobstepId - The id of the job step to suspend
      forceP - Whether to force suspension or not
      httpHeaders - HttpHeaders object containing HTTP headers for the response.
      Gibt zurück:
      ResponseEntity containing the suspended RestJobStep object
    • retryJobStep

      public org.springframework.http.ResponseEntity<RestJobStep> retryJobStep(String jobstepId, org.springframework.http.HttpHeaders httpHeaders)
      Retry a production planner job step identified by name or id
      Angegeben von:
      retryJobStep in Schnittstelle JobstepController
      Parameter:
      jobstepId - The id of the job step to retry
      httpHeaders - HttpHeaders object containing HTTP headers for the response.
      Gibt zurück:
      ResponseEntity containing the retried RestJobStep object