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

[2/2] git commit: clusterId getters/setters in kubernetes cluster context

clusterId getters/setters in kubernetes cluster context


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

Branch: refs/heads/container-autoscaling
Commit: 7162325f3821cd174e2355d16dde8cb9137a1cec
Parents: d4c3152
Author: R-Rajkumar <rr...@gmail.com>
Authored: Tue Oct 7 18:55:04 2014 +0530
Committer: R-Rajkumar <rr...@gmail.com>
Committed: Tue Oct 7 18:55:04 2014 +0530

----------------------------------------------------------------------
 .../apache/stratos/autoscaler/KubernetesClusterContext.java | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/7162325f/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/KubernetesClusterContext.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/KubernetesClusterContext.java b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/KubernetesClusterContext.java
index 5704b18..faa93bc 100644
--- a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/KubernetesClusterContext.java
+++ b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/KubernetesClusterContext.java
@@ -639,11 +639,18 @@ public class KubernetesClusterContext implements Serializable {
     }
 
     public int getTotalMemberCount() {
-
         return activeMembers.size() + pendingMembers.size() + terminationPendingMembers.size();
     }
 
     public int getNonTerminatedMemberCount() {
         return activeMembers.size() + pendingMembers.size() + terminationPendingMembers.size();
     }
+
+	public String getClusterId() {
+		return clusterId;
+	}
+
+	public void setClusterId(String clusterId) {
+		this.clusterId = clusterId;
+	}
 }