Class TaskPlatformController

java.lang.Object
org.springframework.cloud.dataflow.server.controller.TaskPlatformController

@RestController @RequestMapping("/tasks/platforms") @ExposesResourceFor(LauncherResource.class) public class TaskPlatformController extends Object
REST controller for task launching platform related operations.
Author:
Ilayaperumal Gopinathan
  • Constructor Details

    • TaskPlatformController

      public TaskPlatformController(LauncherService launcherService)
  • Method Details

    • list

      @GetMapping("") @ResponseStatus(OK) public org.springframework.hateoas.PagedModel<LauncherResource> list(org.springframework.data.domain.Pageable pageable, @RequestParam(required=false) String schedulesEnabled, org.springframework.data.web.PagedResourcesAssembler<Launcher> assembler)
      Returns the list of platform accounts available for launching tasks.
      Parameters:
      pageable - the Pageable request
      schedulesEnabled - optional criteria to indicate enabled schedules.
      assembler - the paged resource assembler for Launcher*
      Returns:
      the paged resources of type LauncherResource