Package de.dlr.proseo.planner.rest
Klasse JobControllerImpl
java.lang.Object
de.dlr.proseo.planner.rest.JobControllerImpl
- Alle implementierten Schnittstellen:
JobController
Spring MVC controller for the prosEO planner; implements the services required to plan
and handle jobs.
- Autor:
- Ernst Melchinger
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungorg.springframework.http.ResponseEntity
<RestJob> Cancel job of idorg.springframework.http.ResponseEntity
<String> Get production planner number of jobs by order id and stateorg.springframework.http.ResponseEntity
<RestJob> Get production planner jobgetJobs
(String state, Long orderId, Long recordFrom, Long recordTo, Boolean logs, String[] orderBy, org.springframework.http.HttpHeaders httpHeaders) Get production planner jobs, optionally filtered by job state and/or order IDorg.springframework.http.ResponseEntity
<RestJobGraph> graphJobSteps
(String jobId, org.springframework.http.HttpHeaders httpHeaders) Dependencies of all job steps of joborg.springframework.http.ResponseEntity
<RestJob> Resume job of idorg.springframework.http.ResponseEntity
<RestJob> Retry job of idorg.springframework.http.ResponseEntity
<RestJob> suspendJob
(String jobId, Boolean forceP, org.springframework.http.HttpHeaders httpHeaders) Suspend job of id
-
Konstruktordetails
-
JobControllerImpl
public JobControllerImpl()
-
-
Methodendetails
-
getJobs
@Transactional(isolation=REPEATABLE_READ, readOnly=true) public org.springframework.http.ResponseEntity<List<RestJob>> getJobs(String state, Long orderId, Long recordFrom, Long recordTo, Boolean logs, String[] orderBy, org.springframework.http.HttpHeaders httpHeaders) Get production planner jobs, optionally filtered by job state and/or order ID- Angegeben von:
getJobs
in SchnittstelleJobController
- Parameter:
state
- the job state to filter by (optional)orderId
- the order ID to filter by (optional)recordFrom
- first record of filtered and ordered result to return (optional; mandatory if "recordTo" is given)recordTo
- last record of filtered and ordered result to return (optional)orderBy
- an array of strings containing a column name and an optional sort direction (ASC/DESC), separated by white space- Gibt zurück:
- a list of JSON objects describing jobs
-
countJobs
@Transactional(isolation=REPEATABLE_READ, readOnly=true) public org.springframework.http.ResponseEntity<String> countJobs(String state, Long orderId, org.springframework.http.HttpHeaders httpHeaders) Get production planner number of jobs by order id and state- Angegeben von:
countJobs
in SchnittstelleJobController
- Parameter:
state
- state of jobsorderId
- order id of jobs- Gibt zurück:
- number of jobs
-
getJob
@Transactional(isolation=REPEATABLE_READ) public org.springframework.http.ResponseEntity<RestJob> getJob(String jobId, org.springframework.http.HttpHeaders httpHeaders) Beschreibung aus Schnittstelle kopiert:JobController
Get production planner job- Angegeben von:
getJob
in SchnittstelleJobController
-
graphJobSteps
@Transactional(isolation=REPEATABLE_READ, readOnly=true) public org.springframework.http.ResponseEntity<RestJobGraph> graphJobSteps(String jobId, org.springframework.http.HttpHeaders httpHeaders) Beschreibung aus Schnittstelle kopiert:JobController
Dependencies of all job steps of job- Angegeben von:
graphJobSteps
in SchnittstelleJobController
-
resumeJob
public org.springframework.http.ResponseEntity<RestJob> resumeJob(String jobId, org.springframework.http.HttpHeaders httpHeaders) Beschreibung aus Schnittstelle kopiert:JobController
Resume job of id- Angegeben von:
resumeJob
in SchnittstelleJobController
-
cancelJob
public org.springframework.http.ResponseEntity<RestJob> cancelJob(String jobId, org.springframework.http.HttpHeaders httpHeaders) Beschreibung aus Schnittstelle kopiert:JobController
Cancel job of id- Angegeben von:
cancelJob
in SchnittstelleJobController
-
suspendJob
public org.springframework.http.ResponseEntity<RestJob> suspendJob(String jobId, Boolean forceP, org.springframework.http.HttpHeaders httpHeaders) Beschreibung aus Schnittstelle kopiert:JobController
Suspend job of id- Angegeben von:
suspendJob
in SchnittstelleJobController
-
retryJob
public org.springframework.http.ResponseEntity<RestJob> retryJob(String id, org.springframework.http.HttpHeaders httpHeaders) Beschreibung aus Schnittstelle kopiert:JobController
Retry job of id- Angegeben von:
retryJob
in SchnittstelleJobController
-