@RestController public class ManagementController extends Object
BackingAppManagementService
Constructor and Description |
---|
ManagementController(org.springframework.cloud.appbroker.manager.BackingAppManagementService service)
Construct a new ManagementController
|
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<String> |
restageApplications(String serviceInstanceId)
Tests service restage
|
reactor.core.publisher.Mono<String> |
restartApplications(String serviceInstanceId)
Tests service restart
|
reactor.core.publisher.Mono<String> |
startApplications(String serviceInstanceId)
Tests service start
|
reactor.core.publisher.Mono<String> |
stopApplications(String serviceInstanceId)
Tests service stop
|
public ManagementController(org.springframework.cloud.appbroker.manager.BackingAppManagementService service)
service
- the service to test@GetMapping(value="/start/{serviceInstanceId}") public reactor.core.publisher.Mono<String> startApplications(@PathVariable String serviceInstanceId)
serviceInstanceId
- the id of the service to test@GetMapping(value="/stop/{serviceInstanceId}") public reactor.core.publisher.Mono<String> stopApplications(@PathVariable String serviceInstanceId)
serviceInstanceId
- the id of the service to test@GetMapping(value="/restart/{serviceInstanceId}") public reactor.core.publisher.Mono<String> restartApplications(@PathVariable String serviceInstanceId)
serviceInstanceId
- the id of the service to test@GetMapping(value="/restage/{serviceInstanceId}") public reactor.core.publisher.Mono<String> restageApplications(@PathVariable String serviceInstanceId)
serviceInstanceId
- the id of the service to test