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

[5/5] stratos git commit: Improving load thresholds class

Improving load thresholds class


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

Branch: refs/heads/master
Commit: f7b9dd23f50f3113dbae3505cabaa877ff71ffe4
Parents: 81ae4dc
Author: Lahiru Sandaruwan <la...@apache.org>
Authored: Mon Dec 22 17:21:16 2014 +0530
Committer: Lahiru Sandaruwan <la...@apache.org>
Committed: Mon Dec 22 17:28:38 2014 +0530

----------------------------------------------------------------------
 .../pojo/policy/autoscale/LoadThresholds.java   | 42 ++++++++++----------
 1 file changed, 21 insertions(+), 21 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/f7b9dd23/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/pojo/policy/autoscale/LoadThresholds.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/pojo/policy/autoscale/LoadThresholds.java b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/pojo/policy/autoscale/LoadThresholds.java
index 4825c08..8a85734 100644
--- a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/pojo/policy/autoscale/LoadThresholds.java
+++ b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/pojo/policy/autoscale/LoadThresholds.java
@@ -27,80 +27,80 @@ import java.io.Serializable;
 public class LoadThresholds implements Serializable{
 
 	private static final long serialVersionUID = -8148571245537655867L;
-	private RequestsInFlightThresholds requestsInFlight;
-	private MemoryConsumptionThresholds memoryConsumption;
-	private LoadAverageThresholds loadAverage;
+	private float requestsInFlightThreshold;
+	private float memoryConsumptionThreshold;
+	private float loadAverageThreshold;
 
     /**
-     * Gets the value of the requestsInFlight property.
+     * Gets the value of the requestsInFlightThreshold property.
      * 
      * @return
      *     possible object is
      *     {@link RequestsInFlightThresholds }
      *     
      */
-    public RequestsInFlightThresholds getRequestsInFlight() {
-        return requestsInFlight;
+    public float getRequestsInFlightThreshold() {
+        return requestsInFlightThreshold;
     }
 
     /**
-     * Sets the value of the requestsInFlight property.
+     * Sets the value of the requestsInFlightThreshold property.
      * 
      * @param value
      *     allowed object is
      *     {@link RequestsInFlightThresholds }
      *     
      */
-    public void setRequestsInFlight(RequestsInFlightThresholds value) {
-        this.requestsInFlight = value;
+    public void setRequestsInFlightThreshold(float value) {
+        this.requestsInFlightThreshold = value;
     }
 
     /**
-     * Gets the value of the memoryConsumption property.
+     * Gets the value of the memoryConsumptionThreshold property.
      * 
      * @return
      *     possible object is
      *     {@link MemoryConsumptionThresholds }
      *     
      */
-    public MemoryConsumptionThresholds getMemoryConsumption() {
-        return memoryConsumption;
+    public float getMemoryConsumptionThreshold() {
+        return memoryConsumptionThreshold;
     }
 
     /**
-     * Sets the value of the memoryConsumption property.
+     * Sets the value of the memoryConsumptionThreshold property.
      * 
      * @param value
      *     allowed object is
      *     {@link MemoryConsumptionThresholds }
      *     
      */
-    public void setMemoryConsumption(MemoryConsumptionThresholds value) {
-        this.memoryConsumption = value;
+    public void setMemoryConsumptionThreshold(float value) {
+        this.memoryConsumptionThreshold = value;
     }
 
     /**
-     * Gets the value of the loadAverage property.
+     * Gets the value of the loadAverageThreshold property.
      * 
      * @return
      *     possible object is
      *     {@link LoadAverageThresholds }
      *     
      */
-    public LoadAverageThresholds getLoadAverage() {
-        return loadAverage;
+    public float getLoadAverageThreshold() {
+        return loadAverageThreshold;
     }
 
     /**
-     * Sets the value of the loadAverage property.
+     * Sets the value of the loadAverageThreshold property.
      * 
      * @param value
      *     allowed object is
      *     {@link LoadAverageThresholds }
      *     
      */
-    public void setLoadAverage(LoadAverageThresholds value) {
-        this.loadAverage = value;
+    public void setLoadAverageThreshold(float value) {
+        this.loadAverageThreshold = value;
     }
 
 }
\ No newline at end of file