Class BackingAppManagementService
java.lang.Object
org.springframework.cloud.appbroker.manager.BackingAppManagementService
-
Constructor Summary
ConstructorDescriptionBackingAppManagementService
(ManagementClient managementClient, AppDeployer appDeployer, BrokeredServices brokeredServices, TargetService targetService) -
Method Summary
Modifier and TypeMethodDescriptionreactor.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 invokesgetDeployedBackingApplications(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 idreactor.core.publisher.Mono<Void>
Helper method that fetches service name and plan name from Cloud Foundry Service Instances API (CF API) and invokesrestage(serviceInstanceId, serviceName, planName)
.reactor.core.publisher.Mono<Void>
Restages the backing applications for the service instance with the given idreactor.core.publisher.Mono<Void>
Helper method that fetches service name and plan name from Cloud Foundry Service Instances API (CF API) and invokesrestart(serviceInstanceId, serviceName, planName)
.reactor.core.publisher.Mono<Void>
Restarts the backing applications for the service instance with the given idreactor.core.publisher.Mono<Void>
Helper method that fetches service name and plan name from Cloud Foundry Service Instances API (CF API) and invokesstart(serviceInstanceId, serviceName, planName)
.reactor.core.publisher.Mono<Void>
Starts the backing applications for the service instance with the given idreactor.core.publisher.Mono<Void>
Helper method that fetches service name and plan name from Cloud Foundry Service Instances API (CF API) and invokesstop(serviceInstanceId, serviceName, planName)
.reactor.core.publisher.Mono<Void>
Stops the backing applications for the service instance with the given id
-
Constructor Details
-
BackingAppManagementService
public BackingAppManagementService(ManagementClient managementClient, AppDeployer appDeployer, BrokeredServices brokeredServices, TargetService targetService)
-
-
Method Details
-
stop
Helper method that fetches service name and plan name from Cloud Foundry Service Instances API (CF API) and invokesstop(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 havecloud_controller.admin
authority. If you want to avoid CF API call, usestop(String, String, String)
method.- Parameters:
serviceInstanceId
- target service instance id- Returns:
- completes when the operation is completed
-
stop
public reactor.core.publisher.Mono<Void> stop(String serviceInstanceId, String serviceName, String planName) Stops the backing applications for the service instance with the given id- Parameters:
serviceInstanceId
- target service instance idserviceName
- service nameplanName
- plan name- Returns:
- completes when the operation is completed
-
start
Helper method that fetches service name and plan name from Cloud Foundry Service Instances API (CF API) and invokesstart(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 havecloud_controller.admin
authority. If you want to avoid CF API call, usestart(String, String, String)
method.- Parameters:
serviceInstanceId
- target service instance id- Returns:
- completes when the operation is completed
-
start
public reactor.core.publisher.Mono<Void> start(String serviceInstanceId, String serviceName, String planName) Starts the backing applications for the service instance with the given id- Parameters:
serviceInstanceId
- target service instance idserviceName
- service nameplanName
- plan name- Returns:
- completes when the operation is completed
-
restart
Helper method that fetches service name and plan name from Cloud Foundry Service Instances API (CF API) and invokesrestart(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 havecloud_controller.admin
authority. If you want to avoid CF API call, userestart(String, String, String)
method.- Parameters:
serviceInstanceId
- target service instance id- Returns:
- completes when the operation is completed
-
restart
public reactor.core.publisher.Mono<Void> restart(String serviceInstanceId, String serviceName, String planName) Restarts the backing applications for the service instance with the given id- Parameters:
serviceInstanceId
- target service instance idserviceName
- service nameplanName
- plan name- Returns:
- completes when the operation is completed
-
restage
Helper method that fetches service name and plan name from Cloud Foundry Service Instances API (CF API) and invokesrestage(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 havecloud_controller.admin
authority. If you want to avoid CF API call, userestage(String, String, String)
method.- Parameters:
serviceInstanceId
- target service instance id- Returns:
- completes when the operation is completed
-
restage
public reactor.core.publisher.Mono<Void> restage(String serviceInstanceId, String serviceName, String planName) Restages the backing applications for the service instance with the given id- Parameters:
serviceInstanceId
- target service instance idserviceName
- service nameplanName
- plan name- Returns:
- completes when the operation is completed
-
getDeployedBackingApplications
public 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 invokesgetDeployedBackingApplications(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 havecloud_controller.admin
authority. If you want to avoid CF API call, usegetDeployedBackingApplications(String, String, String)
method.- Parameters:
serviceInstanceId
- target service instance id- Returns:
- backing applications for the target service instance
-
getDeployedBackingApplications
public 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- Parameters:
serviceInstanceId
- target service instance idserviceName
- service nameplanName
- plan name- Returns:
- backing applications for the target service instance
-
getBackingApplicationsForService
public reactor.core.publisher.Mono<BackingApplications> getBackingApplicationsForService(String serviceInstanceId, String serviceName, String planName)
-