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 2015/02/24 12:58:39 UTC
stratos git commit: Correcting the input of mincheck rule as
primaryMemberCount
Repository: stratos
Updated Branches:
refs/heads/master 5f62c3271 -> 3c4af466a
Correcting the input of mincheck rule as primaryMemberCount
Project: http://git-wip-us.apache.org/repos/asf/stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/3c4af466
Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/3c4af466
Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/3c4af466
Branch: refs/heads/master
Commit: 3c4af466a034c31d20a49828da8b128e429a7bc0
Parents: 5f62c32
Author: Lahiru Sandaruwan <la...@apache.org>
Authored: Tue Feb 24 17:28:29 2015 +0530
Committer: Lahiru Sandaruwan <la...@apache.org>
Committed: Tue Feb 24 17:28:29 2015 +0530
----------------------------------------------------------------------
.../apache/stratos/autoscaler/monitor/cluster/ClusterMonitor.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/stratos/blob/3c4af466/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/monitor/cluster/ClusterMonitor.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/monitor/cluster/ClusterMonitor.java b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/monitor/cluster/ClusterMonitor.java
index 197dfa7..6ea9f9f 100644
--- a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/monitor/cluster/ClusterMonitor.java
+++ b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/monitor/cluster/ClusterMonitor.java
@@ -517,7 +517,8 @@ public class ClusterMonitor extends Monitor implements Runnable {
}
}
- getScaleCheckKnowledgeSession().setGlobal("primaryMembers", primaryMemberListInClusterInstance);
+ getMinCheckKnowledgeSession().setGlobal("primaryMemberCount",
+ primaryMemberListInClusterInstance.size());
getMinCheckKnowledgeSession().setGlobal("clusterId", getClusterId());
getMinCheckKnowledgeSession().setGlobal("isPrimary", hasPrimary);
//FIXME when parent chosen the partition