fixing sclaingDependents to use alias in group definition
Project: http://git-wip-us.apache.org/repos/asf/stratos/repo Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/049d01eb Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/049d01eb Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/049d01eb Branch: refs/heads/master Commit: 049d01ebd374654d7918e999f668b088dc33c183 Parents: cf7c8a6 Author: reka <[email protected]> Authored: Wed Apr 29 16:12:31 2015 +0530 Committer: reka <[email protected]> Committed: Wed Apr 29 16:14:03 2015 +0530 ---------------------------------------------------------------------- .../stratos/autoscaler/applications/parser/ParserUtils.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/stratos/blob/049d01eb/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/applications/parser/ParserUtils.java ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/applications/parser/ParserUtils.java b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/applications/parser/ParserUtils.java index 8d5233b..a43aee1 100644 --- a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/applications/parser/ParserUtils.java +++ b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/applications/parser/ParserUtils.java @@ -119,7 +119,8 @@ public class ParserUtils { } - public static Set<ScalingDependentList> convertScalingDependentList(String[] scalingDependentListArr) throws ApplicationDefinitionException { + public static Set<ScalingDependentList> convertScalingDependentList(String[] scalingDependentListArr) + throws ApplicationDefinitionException { Set<ScalingDependentList> scalingDependentLists = new HashSet<ScalingDependentList>(); if (scalingDependentListArr == null) { @@ -155,7 +156,8 @@ public class ParserUtils { for (String commaSeparatedScalingDependentList : scalingDependentListArr) { // convertScalingDependentList all scaling dependents to aliases-based List<String> components = Arrays.asList(commaSeparatedScalingDependentList.split(",")); - scalingDependentLists.add(getScalingDependentList(components, groupContext)); + ScalingDependentList dependentList = new ScalingDependentList(components); + scalingDependentLists.add(dependentList); } return scalingDependentLists; }
