public class BackingAppManagementService extends Object
Constructor and Description |
---|
BackingAppManagementService(ManagementClient managementClient,
AppDeployer appDeployer,
BrokeredServices brokeredServices,
TargetService targetService) |
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<BackingApplications> |
getBackingApplicationsForService(String serviceInstanceId,
String serviceName,
String planName) |
reactor.core.publisher.Mono<BackingApplications> |
getDeployedBackingApplications(String serviceInstanceId)
Helper method that fetches service name and plan name from Cloud Foundry Service Instances API (CF API) and
invokes
getDeployedBackingApplications(serviceInstanceId, serviceName, planName) . |
reactor.core.publisher.Mono<BackingApplications> |
getDeployedBackingApplications(String serviceInstanceId,
String serviceName,
String planName)
Returns a list of backing applications for the service instance with the given id
|
reactor.core.publisher.Mono<Void> |
restage(String serviceInstanceId)
Helper method that fetches service name and plan name from Cloud Foundry Service Instances API (CF API) and
invokes
restage(serviceInstanceId, serviceName, planName) . |
reactor.core.publisher.Mono<Void> |
restage(String serviceInstanceId,
String serviceName,
String planName)
Restages the backing applications for the service instance with the given id
|
reactor.core.publisher.Mono<Void> |
restart(String serviceInstanceId)
Helper method that fetches service name and plan name from Cloud Foundry Service Instances API (CF API) and
invokes
restart(serviceInstanceId, serviceName, planName) . |
reactor.core.publisher.Mono<Void> |
restart(String serviceInstanceId,
String serviceName,
String planName)
Restarts the backing applications for the service instance with the given id
|
reactor.core.publisher.Mono<Void> |
start(String serviceInstanceId)
Helper method that fetches service name and plan name from Cloud Foundry Service Instances API (CF API) and
invokes
start(serviceInstanceId, serviceName, planName) . |
reactor.core.publisher.Mono<Void> |
start(String serviceInstanceId,
String serviceName,
String planName)
Starts the backing applications for the service instance with the given id
|
reactor.core.publisher.Mono<Void> |
stop(String serviceInstanceId)
Helper method that fetches service name and plan name from Cloud Foundry Service Instances API (CF API) and
invokes
stop(serviceInstanceId, serviceName, planName) . |
reactor.core.publisher.Mono<Void> |
stop(String serviceInstanceId,
String serviceName,
String planName)
Stops the backing applications for the service instance with the given id
|
public BackingAppManagementService(ManagementClient managementClient, AppDeployer appDeployer, BrokeredServices brokeredServices, TargetService targetService)
public reactor.core.publisher.Mono<Void> stop(String serviceInstanceId)
stop(serviceInstanceId, serviceName, planName)
.
Because this method will try to fetch user-created service instance, UAA client used by the broker has to be a
space developer of the space containing the service instance, or has to have cloud_controller.admin
authority. If you want to avoid CF API call, use
stop(String, String, String)
method.serviceInstanceId
- target service instance idpublic reactor.core.publisher.Mono<Void> stop(String serviceInstanceId, String serviceName, String planName)
serviceInstanceId
- target service instance idserviceName
- service nameplanName
- plan namepublic reactor.core.publisher.Mono<Void> start(String serviceInstanceId)
start(serviceInstanceId, serviceName, planName)
.
Because this method will try to fetch user-created service instance, UAA client used by the broker has to be a
space developer of the space containing the service instance, or has to have cloud_controller.admin
authority. If you want to avoid CF API call, use
start(String, String, String)
method.serviceInstanceId
- target service instance idpublic reactor.core.publisher.Mono<Void> start(String serviceInstanceId, String serviceName, String planName)
serviceInstanceId
- target service instance idserviceName
- service nameplanName
- plan namepublic reactor.core.publisher.Mono<Void> restart(String serviceInstanceId)
restart(serviceInstanceId, serviceName, planName)
.
Because this method will try to fetch user-created service instance, UAA client used by the broker has to be a
space developer of the space containing the service instance, or has to have cloud_controller.admin
authority. If you want to avoid CF API call, use
restart(String, String, String)
method.serviceInstanceId
- target service instance idpublic reactor.core.publisher.Mono<Void> restart(String serviceInstanceId, String serviceName, String planName)
serviceInstanceId
- target service instance idserviceName
- service nameplanName
- plan namepublic reactor.core.publisher.Mono<Void> restage(String serviceInstanceId)
restage(serviceInstanceId, serviceName, planName)
.
Because this method will try to fetch user-created service instance, UAA client used by the broker has to be a
space developer of the space containing the service instance, or has to have cloud_controller.admin
authority. If you want to avoid CF API call, use
restage(String, String, String)
method.serviceInstanceId
- target service instance idpublic reactor.core.publisher.Mono<Void> restage(String serviceInstanceId, String serviceName, String planName)
serviceInstanceId
- target service instance idserviceName
- service nameplanName
- plan namepublic reactor.core.publisher.Mono<BackingApplications> getDeployedBackingApplications(String serviceInstanceId)
getDeployedBackingApplications(serviceInstanceId, serviceName, planName)
.
Because this method will try to fetch user-created service instance, UAA client used by the broker has to be a
space developer of the space containing the service instance, or has to have cloud_controller.admin
authority. If you want to avoid CF API call, use
getDeployedBackingApplications(String, String, String)
method.serviceInstanceId
- target service instance idpublic reactor.core.publisher.Mono<BackingApplications> getDeployedBackingApplications(String serviceInstanceId, String serviceName, String planName)
serviceInstanceId
- target service instance idserviceName
- service nameplanName
- plan namepublic reactor.core.publisher.Mono<BackingApplications> getBackingApplicationsForService(String serviceInstanceId, String serviceName, String planName)