Class BackingAppManagementService

java.lang.Object
org.springframework.cloud.appbroker.manager.BackingAppManagementService

public class BackingAppManagementService extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    BackingAppManagementService(ManagementClient managementClient, AppDeployer appDeployer, BrokeredServices brokeredServices, TargetService targetService)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    reactor.core.publisher.Mono<BackingApplications>
    getBackingApplicationsForService(String serviceInstanceId, String serviceName, String planName)
     
    reactor.core.publisher.Mono<BackingApplications>
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • stop

      public 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). 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.
      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 id
      serviceName - service name
      planName - plan name
      Returns:
      completes when the operation is completed
    • start

      public 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). 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.
      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 id
      serviceName - service name
      planName - plan name
      Returns:
      completes when the operation is completed
    • restart

      public 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). 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.
      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 id
      serviceName - service name
      planName - plan name
      Returns:
      completes when the operation is completed
    • restage

      public 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). 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.
      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 id
      serviceName - service name
      planName - 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 invokes 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.
      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 id
      serviceName - service name
      planName - plan name
      Returns:
      backing applications for the target service instance
    • getBackingApplicationsForService

      public reactor.core.publisher.Mono<BackingApplications> getBackingApplicationsForService(String serviceInstanceId, String serviceName, String planName)