@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,
StreamDeploymentRepository streamDeploymentRepository,
DeploymentIdRepository deploymentIdRepository,
org.springframework.cloud.deployer.spi.app.AppDeployer appDeployer,
MetricStore metricStore,
ForkJoinPool forkJoinPool,
org.springframework.cloud.skipper.client.SkipperClient skipperClient)
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, StreamDeploymentRepository streamDeploymentRepository, DeploymentIdRepository deploymentIdRepository, org.springframework.cloud.deployer.spi.app.AppDeployer appDeployer, MetricStore metricStore, ForkJoinPool forkJoinPool, org.springframework.cloud.skipper.client.SkipperClient skipperClient)
streamDefinitionRepository
- the repository this controller will use for stream CRUD operationsstreamDeploymentRepository
- the repository to use to retrieve stream deploymentsdeploymentIdRepository
- the repository this controller will use for deployment IDsappDeployer
- the deployer this controller will use to get the status of deployed stream appsmetricStore
- the proxy to the metrics collectorforkJoinPool
- a ForkJoinPool which will be used to query AppStatuses in parallelskipperClient
- the Skipper client to get the status from Skipper server@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.