@RestController @RequestMapping(value="/runtime/apps") @ExposesResourceFor(value=AppStatusResource.class) public class RuntimeAppsController extends Object
Modifier and Type | Class and Description |
---|---|
static class |
RuntimeAppsController.AppInstanceController |
Constructor and Description |
---|
RuntimeAppsController(StreamDefinitionRepository streamDefinitionRepository,
DeploymentIdRepository deploymentIdRepository,
org.springframework.cloud.deployer.spi.app.AppDeployer appDeployer,
MetricStore metricStore,
ForkJoinPool forkJoinPool)
Instantiates a new runtime apps controller.
|
Modifier and Type | Method and Description |
---|---|
AppStatusResource |
display(String id) |
org.springframework.hateoas.PagedResources<AppStatusResource> |
list(org.springframework.data.domain.Pageable pageable,
org.springframework.data.web.PagedResourcesAssembler<org.springframework.cloud.deployer.spi.app.AppStatus> assembler) |
public RuntimeAppsController(StreamDefinitionRepository streamDefinitionRepository, DeploymentIdRepository deploymentIdRepository, org.springframework.cloud.deployer.spi.app.AppDeployer appDeployer, MetricStore metricStore, ForkJoinPool forkJoinPool)
streamDefinitionRepository
- the repository this controller will use for
stream CRUD operationsdeploymentIdRepository
- the repository this controller will use for
deployment IDsappDeployer
- the deployer this controller will use to deploy stream appsmetricStore
- the proxy to the metrics collectorforkJoinPool
- a ForkJoinPool which will be used to query AppStatuses in
parallel@RequestMapping public org.springframework.hateoas.PagedResources<AppStatusResource> list(org.springframework.data.domain.Pageable pageable, org.springframework.data.web.PagedResourcesAssembler<org.springframework.cloud.deployer.spi.app.AppStatus> assembler) throws ExecutionException, InterruptedException
@RequestMapping(value="/{id}") public AppStatusResource display(@PathVariable String id)
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.