Filtering deployments that are only related to the compute resource of process
@@ -393,8 +393,10 @@ public class OrchestratorServerHandler implements OrchestratorService.Iface {
Map<ComputeResourceDescription, ApplicationDeploymentDescription> deploymentMap = new HashMap<ComputeResourceDescription, ApplicationDeploymentDescription>();
for (ApplicationDeploymentDescription deploymentDescription : applicationDeployements) {
+ if (processModel.getComputeResourceId().equals(deploymentDescription.getComputeHostId())) {
deploymentMap.put(registryClient.getComputeResource(deploymentDescription.getComputeHostId()), deploymentDescription);
}
+ }
List<ComputeResourceDescription> computeHostList = Arrays.asList(deploymentMap.keySet().toArray(new ComputeResourceDescription[]{}));
Class<? extends HostScheduler> aClass = Class.forName(
ServerSettings.getHostScheduler()).asSubclass(
