Klasse StatisticsService

java.lang.Object
de.dlr.proseo.ui.gui.service.StatisticsService

@Service public class StatisticsService extends Object
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
  • 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 status
      last - 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 id
      auth - 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 unsuccessful
      RuntimeException
    • 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 identifier
      auth - a GUIAuthenticationToken
      Gibt zurück:
      the order identifier
      Löst aus:
      org.springframework.web.client.RestClientResponseException - if the call to the order manager was unsuccessful
      RuntimeException