stratos-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lahi...@apache.org
Subject stratos git commit: Removing lb reference type from drools files
Date Mon, 01 Dec 2014 17:03:04 GMT
Repository: stratos
Updated Branches:
  refs/heads/master 48f8a81e3 -> b53465944


Removing lb reference type from drools files


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

Branch: refs/heads/master
Commit: b53465944ecfc1e0cc91d4f2852ae1c360da073c
Parents: 48f8a81
Author: Lahiru Sandaruwan <lahirus@apache.org>
Authored: Mon Dec 1 22:34:35 2014 +0530
Committer: Lahiru Sandaruwan <lahirus@apache.org>
Committed: Mon Dec 1 22:34:35 2014 +0530

----------------------------------------------------------------------
 .../org/apache/stratos/autoscaler/rule/RuleTasksDelegator.java    | 2 +-
 .../modules/distribution/src/main/conf/drools/mincheck.drl        | 3 +--
 .../stratos/modules/distribution/src/main/conf/drools/scaling.drl | 3 +--
 3 files changed, 3 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/b5346594/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/rule/RuleTasksDelegator.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/rule/RuleTasksDelegator.java
b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/rule/RuleTasksDelegator.java
index 2dfe967..bb4d87f 100644
--- a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/rule/RuleTasksDelegator.java
+++ b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/rule/RuleTasksDelegator.java
@@ -175,7 +175,7 @@ public class RuleTasksDelegator {
         }
     }
 
-    public void delegateSpawn(ClusterLevelPartitionContext clusterMonitorPartitionContext,
String clusterId, String instanceId, String lbRefType, boolean isPrimary) {
+    public void delegateSpawn(ClusterLevelPartitionContext clusterMonitorPartitionContext,
String clusterId, String instanceId, boolean isPrimary) {
 
         try {
 

http://git-wip-us.apache.org/repos/asf/stratos/blob/b5346594/products/stratos/modules/distribution/src/main/conf/drools/mincheck.drl
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/src/main/conf/drools/mincheck.drl b/products/stratos/modules/distribution/src/main/conf/drools/mincheck.drl
index 1c3fc4b..234b81a 100755
--- a/products/stratos/modules/distribution/src/main/conf/drools/mincheck.drl
+++ b/products/stratos/modules/distribution/src/main/conf/drools/mincheck.drl
@@ -48,7 +48,6 @@ global org.apache.stratos.messaging.domain.topology.Topology $topology;
 global java.util.Map partitionCtxts;
 global java.lang.String clusterId;
 global java.lang.String instanceId;
-global java.lang.String lbRef;
 global java.lang.Boolean isPrimary;
 global Integer primaryMemberCount;
 
@@ -66,5 +65,5 @@ dialect "mvel"
            } else{
               log.debug("[min-check] true  [primary] false");
            }
-	       $delegator.delegateSpawn($ctxt, clusterId, instanceId, lbRef, isPrimary);
+	       $delegator.delegateSpawn($ctxt, clusterId, instanceId, isPrimary);
 end

http://git-wip-us.apache.org/repos/asf/stratos/blob/b5346594/products/stratos/modules/distribution/src/main/conf/drools/scaling.drl
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/src/main/conf/drools/scaling.drl b/products/stratos/modules/distribution/src/main/conf/drools/scaling.drl
index b8de407..48b15a7 100644
--- a/products/stratos/modules/distribution/src/main/conf/drools/scaling.drl
+++ b/products/stratos/modules/distribution/src/main/conf/drools/scaling.drl
@@ -51,7 +51,6 @@ global org.apache.stratos.autoscaler.rule.RuleTasksDelegator delegator;
 global org.apache.stratos.autoscaler.pojo.policy.autoscale.AutoscalePolicy autoscalePolicy;
 global org.apache.stratos.autoscaler.context.cluster.ClusterInstanceContext clusterInstanceContext;
 global java.lang.String clusterId;
-global java.lang.String lbRef;
 global java.lang.String instanceId;
 global java.lang.Boolean rifReset;
 global java.lang.Boolean mcReset;
@@ -141,7 +140,7 @@ dialect "mvel"
             if(partitionContext != null){
                 log.info("[scale-up] Partition available, hence trying to spawn an instance
to scale up!" );
                 log.debug("[scale-up] " + " [partition] " + partitionContext.getPartitionId()
+ " [cluster] " + clusterId );
-                delegator.delegateSpawn(partitionContext, clusterId, instanceId, lbRef, isPrimary);
+                delegator.delegateSpawn(partitionContext, clusterId, instanceId, isPrimary);
 				count++;
             }
           }    


Mime
View raw message