Class TaskLogsController
java.lang.Object
org.springframework.cloud.dataflow.server.controller.TaskLogsController
Retrieves logs of task applications.
- Author:
- Ilayaperumal Gopinathan
-
Constructor Summary
ConstructorDescriptionTaskLogsController
(TaskExecutionService taskExecutionService) Construct Task logs controller. -
Method Summary
Modifier and TypeMethodDescriptionRetrieve logs for the task execution identified by the provided external execution ID
-
Constructor Details
-
TaskLogsController
Construct Task logs controller.- Parameters:
taskExecutionService
- the task execution service that this controller uses to get the logs of launched task applications.
-
-
Method Details
-
getLog
@GetMapping("/{taskExternalExecutionId}") @ResponseStatus(OK) public ResponseEntity<String> getLog(@PathVariable String taskExternalExecutionId, @RequestParam(required=false,defaultValue="default") String platformName) Retrieve logs for the task execution identified by the provided external execution ID- Parameters:
taskExternalExecutionId
- the external execution ID returned by the platform when launching the taskplatformName
- the platform name- Returns:
- the log content represented as String
-