@Test public void makeConfigWithTopology() { String homePath = "/Users/swsong/Projects/beluga/production"; String clusterId = "test-cluster"; Environment environment = new Environment(homePath); ClusterService clusterService = new ClusterService(clusterId, environment, environment.settingManager().getSystemSettings().getSubSettings("cluster")); HAProxyAPI api = new HAProxyAPI(clusterService, environment); String deploymentId = "asdfghjkl"; api.notifyServiceChanged(deploymentId); }
public void notifyServiceChanged(String deploymentsId) { logger.debug("Proxy notified Service Changed : {} > {}", clusterId, deploymentsId); deploymentSet.add(deploymentsId); }
HAProxyAPI { public void notifyServiceChanged(String deploymentsId) { logger.debug("Proxy notified Service Changed : {} > {}", clusterId, deploymentsId); deploymentSet.add(deploymentsId); } }
HAProxyAPI { public void notifyServiceChanged(String deploymentsId) { logger.debug("Proxy notified Service Changed : {} > {}", clusterId, deploymentsId); deploymentSet.add(deploymentsId); } HAProxyAPI(ClusterService clusterService, Environment environment); }
HAProxyAPI { public void notifyServiceChanged(String deploymentsId) { logger.debug("Proxy notified Service Changed : {} > {}", clusterId, deploymentsId); deploymentSet.add(deploymentsId); } HAProxyAPI(ClusterService clusterService, Environment environment); String notifyTopologyChanged(); void notifyServiceChanged(String deploymentsId); String updateProxyConfig(); void applyProxyConfig(SshInfo sshInfo); void checkDeploymentsAndApply(); }
HAProxyAPI { public void notifyServiceChanged(String deploymentsId) { logger.debug("Proxy notified Service Changed : {} > {}", clusterId, deploymentsId); deploymentSet.add(deploymentsId); } HAProxyAPI(ClusterService clusterService, Environment environment); String notifyTopologyChanged(); void notifyServiceChanged(String deploymentsId); String updateProxyConfig(); void applyProxyConfig(SshInfo sshInfo); void checkDeploymentsAndApply();  }