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 Summary
ConstructorsConstructorDescriptionReactiveFlightRecorderEndpoint(FlightRecorder flightRecorder) Instantiates a new Reactive flight recorder endpoint. -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Flux<FlightRecorderPublicSession>All sessions flux.reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<?>>deleteRecording(Long recordingId) Delete recording mono.reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<?>>downloadRecording(Long recordingId) Download recording mono.reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<?>>startRecording(reactor.core.publisher.Mono<StartRecordingCommand> commandInput, org.springframework.web.server.ServerWebExchange serverWebExchange) Start recording mono.reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<?>>stopRecording(Long recordingId) Stop recording mono.
-
Constructor Details
-
ReactiveFlightRecorderEndpoint
Instantiates a new Reactive flight recorder endpoint.- Parameters:
flightRecorder- the flight recorder
-
-
Method Details
-
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 inputserverWebExchange- 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
-