You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by re...@apache.org on 2014/12/22 17:52:36 UTC

stratos git commit: fixing load average setting issue

Repository: stratos
Updated Branches:
  refs/heads/master 160f307c0 -> 126592ba3


fixing load average setting issue


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

Branch: refs/heads/master
Commit: 126592ba360a8964ce29dd2d3b659228f1e04964
Parents: 160f307
Author: reka <rt...@gmail.com>
Authored: Mon Dec 22 22:21:38 2014 +0530
Committer: reka <rt...@gmail.com>
Committed: Mon Dec 22 22:22:26 2014 +0530

----------------------------------------------------------------------
 .../stratos/rest/endpoint/util/converter/ObjectConverter.java  | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/126592ba/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/util/converter/ObjectConverter.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/util/converter/ObjectConverter.java b/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/util/converter/ObjectConverter.java
index 0272559..c439342 100644
--- a/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/util/converter/ObjectConverter.java
+++ b/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/util/converter/ObjectConverter.java
@@ -341,7 +341,7 @@ public class ObjectConverter {
             if (autoscalePolicyBean.getLoadThresholds().getLoadAverage() != null) {
 
                 //set load average information
-                loadThresholds.setMemoryConsumptionThreshold(
+                loadThresholds.setLoadAverageThreshold(
                         autoscalePolicyBean.getLoadThresholds().getLoadAverage().getThreshold());
             }
             if (autoscalePolicyBean.getLoadThresholds().getRequestsInFlight() != null) {
@@ -353,7 +353,9 @@ public class ObjectConverter {
             if (autoscalePolicyBean.getLoadThresholds().getMemoryConsumption() != null) {
 
                 //set memory consumption information
-                loadThresholds.setMemoryConsumptionThreshold(autoscalePolicyBean.getLoadThresholds().getMemoryConsumption().getThreshold());
+                loadThresholds.setMemoryConsumptionThreshold(
+                        autoscalePolicyBean.getLoadThresholds().
+                                getMemoryConsumption().getThreshold());
             }
 
             autoscalePolicy.setLoadThresholds(loadThresholds);