stratos-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject [1/2] stratos git commit: using LinkedHasSet in order to preserve the startupOrder
Date Fri, 01 May 2015 07:01:55 GMT
Repository: stratos
Updated Branches:
  refs/heads/master 9ec061f44 -> ae89ba094


using LinkedHasSet in order to preserve the startupOrder


Project: http://git-wip-us.apache.org/repos/asf/stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/ae89ba09
Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/ae89ba09
Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/ae89ba09

Branch: refs/heads/master
Commit: ae89ba09491891512a9bc89e080577c565ebe8b7
Parents: 8128e40
Author: reka <rthirunavukkarasu23@gmail.com>
Authored: Fri May 1 12:30:55 2015 +0530
Committer: reka <rthirunavukkarasu23@gmail.com>
Committed: Fri May 1 12:31:39 2015 +0530

----------------------------------------------------------------------
 .../autoscaler/applications/parser/DefaultApplicationParser.java | 2 +-
 .../stratos/autoscaler/applications/parser/ParserUtils.java      | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/ae89ba09/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/applications/parser/DefaultApplicationParser.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/applications/parser/DefaultApplicationParser.java
b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/applications/parser/DefaultApplicationParser.java
index 67d2342..fd88d06 100644
--- a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/applications/parser/DefaultApplicationParser.java
+++ b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/applications/parser/DefaultApplicationParser.java
@@ -250,7 +250,7 @@ public class DefaultApplicationParser implements ApplicationParser {
         application.setTenantDomain(applicationContext.getTenantDomain());
         application.setTenantAdminUserName(applicationContext.getTenantAdminUsername());
 
-        Set<StartupOrder> startupOrderSet = new HashSet<StartupOrder>();
+        Set<StartupOrder> startupOrderSet = new LinkedHashSet<StartupOrder>();
         DependencyOrder dependencyOrder = new DependencyOrder();
         dependencyOrder.setStartupOrders(startupOrderSet);
         application.setDependencyOrder(dependencyOrder);

http://git-wip-us.apache.org/repos/asf/stratos/blob/ae89ba09/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 a43aee1..460a57b 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
@@ -31,7 +31,7 @@ public class ParserUtils {
 
     public static Set<StartupOrder> convertStartupOrder(String[] startupOrderArr) throws
ApplicationDefinitionException {
 
-        Set<StartupOrder> startupOrders = new HashSet<StartupOrder>();
+        Set<StartupOrder> startupOrders = new LinkedHashSet<StartupOrder>();
 
         if (startupOrderArr == null) {
             return startupOrders;
@@ -61,7 +61,7 @@ public class ParserUtils {
     public static Set<StartupOrder> convertStartupOrder(String[] startupOrderArr, GroupContext
groupContext)
             throws ApplicationDefinitionException {
 
-        Set<StartupOrder> startupOrders = new HashSet<StartupOrder>();
+        Set<StartupOrder> startupOrders = new LinkedHashSet<StartupOrder>();
 
         if (startupOrderArr == null) {
             return startupOrders;


Mime
View raw message