Class ReactiveFlightRecorderEndpoint

java.lang.Object
de.mirkosertic.flightrecorderstarter.actuator.ReactiveFlightRecorderEndpoint

@RestControllerEndpoint(id="flightrecorder") public class ReactiveFlightRecorderEndpoint extends Object
The type Reactive flight recorder endpoint.
  • Constructor Details

    • ReactiveFlightRecorderEndpoint

      public ReactiveFlightRecorderEndpoint(FlightRecorder flightRecorder)
      Instantiates a new Reactive flight recorder endpoint.
      Parameters:
      flightRecorder - the flight recorder
  • Method Details

    • allSessions

      @GetMapping("/") public reactor.core.publisher.Flux<FlightRecorderPublicSession> allSessions()
      All sessions flux.
      Returns:
      the flux
    • startRecording

      @PostMapping("/") public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<?>> startRecording(@RequestBody reactor.core.publisher.Mono<StartRecordingCommand> commandInput, org.springframework.web.server.ServerWebExchange serverWebExchange)
      Start recording mono.
      Parameters:
      commandInput - the command input
      serverWebExchange - the server web exchange
      Returns:
      the mono
    • stopRecording

      @PutMapping("/{recordingId}") public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<?>> stopRecording(@Selector @PathVariable Long recordingId)
      Stop recording mono.
      Parameters:
      recordingId - the recording id param
      Returns:
      the mono
    • deleteRecording

      @DeleteMapping("/{recordingId}") public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<?>> deleteRecording(@Selector @PathVariable Long recordingId)
      Delete recording mono.
      Parameters:
      recordingId - the recording id param
      Returns:
      the mono
    • downloadRecording

      @GetMapping("/{recordingId}") public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<?>> downloadRecording(@Selector @PathVariable Long recordingId)
      Download recording mono.
      Parameters:
      recordingId - the recording id param
      Returns:
      the mono