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
Constructors Constructor Description ReactiveFlightRecorderEndpoint(FlightRecorder flightRecorder)Instantiates a new Reactive flight recorder endpoint.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description reactor.core.publisher.Flux<FlightRecorderPublicSession>allSessions()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 Detail
-
ReactiveFlightRecorderEndpoint
public ReactiveFlightRecorderEndpoint(FlightRecorder flightRecorder)
Instantiates a new Reactive flight recorder endpoint.- Parameters:
flightRecorder- the flight recorder
-
-
Method Detail
-
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 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
-
-