Package de.dlr.proseo.planner.rest
Klasse ProcessingfacilityControllerImpl
java.lang.Object
de.dlr.proseo.planner.rest.ProcessingfacilityControllerImpl
- Alle implementierten Schnittstellen:
ProcessingfacilityController
@Component
public class ProcessingfacilityControllerImpl
extends Object
implements ProcessingfacilityController
Spring MVC controller for the prosEO planner; implements the services required to handle
processing facilities.
- Autor:
- Ernst Melchinger
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungorg.springframework.http.ResponseEntity
<PlannerPod> finishKubeJob
(String podname, String name, String status, org.springframework.http.HttpHeaders httpHeaders) Kubernetes pod and job has finished with stateorg.springframework.http.ResponseEntity
<List<RestProcessingFacility>> getRestProcessingFacilities
(org.springframework.http.HttpHeaders httpHeaders) Get attached processing facilitiesorg.springframework.http.ResponseEntity
<RestProcessingFacility> getRestProcessingFacilityByName
(String name, org.springframework.http.HttpHeaders httpHeaders) Get production planner processing facility by nameorg.springframework.http.ResponseEntity
<RestProcessingFacility> synchronizeFacility
(String name, org.springframework.http.HttpHeaders httpHeaders) Synchronize and run job steps of processing facility identified by name
-
Konstruktordetails
-
ProcessingfacilityControllerImpl
public ProcessingfacilityControllerImpl()
-
-
Methodendetails
-
getRestProcessingFacilities
@Transactional(isolation=REPEATABLE_READ, readOnly=true) public org.springframework.http.ResponseEntity<List<RestProcessingFacility>> getRestProcessingFacilities(org.springframework.http.HttpHeaders httpHeaders) Get attached processing facilities- Angegeben von:
getRestProcessingFacilities
in SchnittstelleProcessingfacilityController
- Gibt zurück:
- a list of JSON objects describing the processing facilities
-
getRestProcessingFacilityByName
@Transactional(isolation=REPEATABLE_READ, readOnly=true) public org.springframework.http.ResponseEntity<RestProcessingFacility> getRestProcessingFacilityByName(String name, org.springframework.http.HttpHeaders httpHeaders) Get production planner processing facility by name- Angegeben von:
getRestProcessingFacilityByName
in SchnittstelleProcessingfacilityController
- Parameter:
name
- the processing facility name- Gibt zurück:
- a JSON object describing the processing facility
-
synchronizeFacility
public org.springframework.http.ResponseEntity<RestProcessingFacility> synchronizeFacility(String name, org.springframework.http.HttpHeaders httpHeaders) Synchronize and run job steps of processing facility identified by name- Angegeben von:
synchronizeFacility
in SchnittstelleProcessingfacilityController
- Parameter:
name
- the processing facility name- Gibt zurück:
- a JSON object describing the processing facility that was synchronized
-
finishKubeJob
public org.springframework.http.ResponseEntity<PlannerPod> finishKubeJob(String podname, String name, String status, org.springframework.http.HttpHeaders httpHeaders) Kubernetes pod and job has finished with state- Angegeben von:
finishKubeJob
in SchnittstelleProcessingfacilityController
- Parameter:
podname
- name of the Kubernetes podname
- the Kubernetes job namestatus
- finish status- Gibt zurück:
- a JSON object describing the finished pod (currently not implemented)
-