Class RuntimeAppInstanceController
java.lang.Object
org.springframework.cloud.dataflow.server.controller.RuntimeAppInstanceController
@RestController
@RequestMapping("/runtime/apps/{appId}/instances")
@ExposesResourceFor(AppInstanceStatusResource.class)
public class RuntimeAppInstanceController
extends Object
- Author:
- Mark Pollack, Chris Bono
-
Constructor Summary
ConstructorDescriptionRuntimeAppInstanceController
(StreamDeployer streamDeployer) Construct a new RuntimeAppInstanceController -
Method Summary
Modifier and TypeMethodDescriptiongetFromActuator
(String appId, String instanceId, String endpoint) org.springframework.hateoas.PagedModel<AppInstanceStatusResource>
list
(org.springframework.data.domain.Pageable pageable, String appId, org.springframework.data.web.PagedResourcesAssembler<org.springframework.cloud.deployer.spi.app.AppInstanceStatus> assembler) postToActuator
(String appId, String instanceId, org.springframework.cloud.skipper.domain.ActuatorPostRequest actuatorPostRequest) postToUrl
(String appId, String instanceId, String data, HttpHeaders headers)
-
Constructor Details
-
RuntimeAppInstanceController
Construct a new RuntimeAppInstanceController- Parameters:
streamDeployer
- the stream deployer to use
-
-
Method Details
-
list
@RequestMapping public org.springframework.hateoas.PagedModel<AppInstanceStatusResource> list(org.springframework.data.domain.Pageable pageable, @PathVariable String appId, org.springframework.data.web.PagedResourcesAssembler<org.springframework.cloud.deployer.spi.app.AppInstanceStatus> assembler) -
display
@RequestMapping("/{instanceId}") public AppInstanceStatusResource display(@PathVariable String appId, @PathVariable String instanceId) -
getFromActuator
@GetMapping("/{instanceId}/actuator") public ResponseEntity<String> getFromActuator(@PathVariable String appId, @PathVariable String instanceId, @RequestParam String endpoint) -
postToActuator
@PostMapping("/{instanceId}/actuator") public ResponseEntity<Void> postToActuator(@PathVariable String appId, @PathVariable String instanceId, @RequestBody org.springframework.cloud.skipper.domain.ActuatorPostRequest actuatorPostRequest) -
postToUrl
@PostMapping("/{instanceId}/post") public ResponseEntity<String> postToUrl(@PathVariable String appId, @PathVariable String instanceId, @RequestBody String data, @RequestHeader HttpHeaders headers)
-