private boolean unbindNotRequiredServices(CloudApplication app, List<String> requiredServices, CloudControllerClient client) { boolean hasUnbindedService = false; for (String serviceName : app.getServices()) { if (!requiredServices.contains(serviceName)) { unbindService(app.getName(), serviceName, client); hasUnbindedService = true; } } return hasUnbindedService; }
private boolean unbindNotRequiredServices(CloudApplication app, List<String> requiredServices, CloudControllerClient client) { boolean hasUnbindedService = false; for (String serviceName : app.getServices()) { if (!requiredServices.contains(serviceName)) { unbindService(app.getName(), serviceName, client); hasUnbindedService = true; } } return hasUnbindedService; }
CloudApplication app = apps.get(i); if (app != null) { List<String> appServices = app.getServices(); if (appServices != null) { for (String appServ : appServices) {
public static void bindServiceToTunnelApp(CloudFoundryClient client, String serviceName) { if (getTunnelAppInfo(client).getServices().contains(serviceName)) { return; } client.stopApplication(getTunnelAppName()); client.bindService(getTunnelAppName(), serviceName); client.startApplication(getTunnelAppName()); }
if (!app.getServices() .contains(serviceName)) { CloudService cloudService = getService(serviceName); for (String serviceName : app.getServices()) { if (!services.contains(serviceName)) { CloudService cloudService = getService(serviceName, false);
if (!app.getServices().contains(serviceName)) { CloudService cloudService = getService(serviceName); if (cloudService != null) { for (String serviceName : app.getServices()) { if (!services.contains(serviceName)) { CloudService cloudService = getService(serviceName);
deploymentInfo.setMemory(cloudApplication.getMemory()); List<String> boundServiceNames = cloudApplication.getServices(); if (boundServiceNames != null) { List<CloudService> services = new ArrayList<CloudService>();
List<String> actualServices = application.getServices(); if (actualServices != null) {
private boolean updateServices(CloudApplicationExtended app, CloudApplication existingApp, Map<String, Map<String, Object>> bindingParameters, CloudControllerClient client, ExecutionWrapper execution, List<String> services) { boolean hasUpdatedService = false; List<String> existingAppServices = existingApp.getServices(); for (String serviceName : services) { Map<String, Object> bindingParametersForCurrentService = getBindingParametersForService(serviceName, bindingParameters);
private boolean updateServices(CloudApplicationExtended app, CloudApplication existingApp, Map<String, Map<String, Object>> bindingParameters, CloudControllerClient client, ExecutionWrapper execution, List<String> services) { boolean hasUpdatedService = false; List<String> existingAppServices = existingApp.getServices(); for (String serviceName : services) { Map<String, Object> bindingParametersForCurrentService = getBindingParametersForService(serviceName, bindingParameters);