@RestController @RequestMapping(value="/runtime/streams") @ExposesResourceFor(value=StreamStatusResource.class) public class RuntimeStreamsController extends Object
Constructor and Description |
---|
RuntimeStreamsController(StreamDeployer streamDeployer)
Construct a new runtime apps controller.
|
Modifier and Type | Method and Description |
---|---|
org.springframework.hateoas.PagedModel<StreamStatusResource> |
status(String[] names,
org.springframework.data.domain.Pageable pageable,
org.springframework.data.web.PagedResourcesAssembler<org.springframework.data.util.Pair<String,List<org.springframework.cloud.deployer.spi.app.AppStatus>>> assembler) |
org.springframework.hateoas.PagedModel<StreamStatusResource> |
streamStatus(String[] streamNames,
org.springframework.data.domain.Pageable pageable,
org.springframework.data.web.PagedResourcesAssembler<org.springframework.data.util.Pair<String,List<org.springframework.cloud.deployer.spi.app.AppStatus>>> assembler) |
public RuntimeStreamsController(StreamDeployer streamDeployer)
streamDeployer
- the deployer this controller will use to get the status of
deployed stream apps@RequestMapping(method=GET) public org.springframework.hateoas.PagedModel<StreamStatusResource> status(@RequestParam(value="names",required=false) String[] names, org.springframework.data.domain.Pageable pageable, org.springframework.data.web.PagedResourcesAssembler<org.springframework.data.util.Pair<String,List<org.springframework.cloud.deployer.spi.app.AppStatus>>> assembler)
names
- The names of streams to include in result.pageable
- the pageassembler
- the resource assembler@RequestMapping(value="/{streamNames}", method=GET) public org.springframework.hateoas.PagedModel<StreamStatusResource> streamStatus(@PathVariable(value="streamNames") String[] streamNames, org.springframework.data.domain.Pageable pageable, org.springframework.data.web.PagedResourcesAssembler<org.springframework.data.util.Pair<String,List<org.springframework.cloud.deployer.spi.app.AppStatus>>> assembler)
streamNames
- comma separated list of streams to retrieve the statuses forpageable
- Pageable required on subsequent calls.assembler
- The resource assembler for the results.Copyright © 2024 Pivotal Software, Inc.. All rights reserved.