Package de.dlr.proseo.ui.gui.service
Klasse StatisticsService
java.lang.Object
de.dlr.proseo.ui.gui.service.StatisticsService
A bridge between the GUI frontend and the backend services, providing methods to retrieve statistics related to job steps and
orders by making HTTP requests to the appropriate endpoints
- Autor:
- Ernst Melchinger
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungreactor.core.publisher.Mono
<org.springframework.web.reactive.function.client.ClientResponse> getJobsteps
(String status, Long last) Retrieves job steps based on a specified status and optional last parametergetOrderIdentifierOfJob
(String jobId, GUIAuthenticationToken auth) Retrieves the order identifier associated with a job based on its IDgetOrderIdOfIdentifier
(String identifier, GUIAuthenticationToken auth) Retrieves the order ID based on its identifier
-
Konstruktordetails
-
StatisticsService
public StatisticsService()
-
-
Methodendetails
-
getJobsteps
public reactor.core.publisher.Mono<org.springframework.web.reactive.function.client.ClientResponse> getJobsteps(String status, Long last) Retrieves job steps based on a specified status and optional last parameter- Parameter:
status
- the job step statuslast
- the last job step to return- Gibt zurück:
- a Mono<ClientResponse> providing access to the response status and headers, and as well as methods to consume the response body
-
getOrderIdentifierOfJob
public String getOrderIdentifierOfJob(String jobId, GUIAuthenticationToken auth) throws org.springframework.web.client.RestClientResponseException, RuntimeException Retrieves the order identifier associated with a job based on its ID- Parameter:
jobId
- the job idauth
- a GUIAuthenticationToken- Gibt zurück:
- the associated order identifier
- Löst aus:
org.springframework.web.client.RestClientResponseException
- if the call to the order manager was unsuccessfulRuntimeException
-
getOrderIdOfIdentifier
public String getOrderIdOfIdentifier(String identifier, GUIAuthenticationToken auth) throws org.springframework.web.client.RestClientResponseException, RuntimeException Retrieves the order ID based on its identifier- Parameter:
identifier
- the order identifierauth
- a GUIAuthenticationToken- Gibt zurück:
- the order identifier
- Löst aus:
org.springframework.web.client.RestClientResponseException
- if the call to the order manager was unsuccessfulRuntimeException
-