Repository: stratos
Updated Branches:
  refs/heads/docker-grouping-merge fcbb662df -> 9e19c8770


removing duplicate mincheck.drl file


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

Branch: refs/heads/docker-grouping-merge
Commit: 9e19c877051016e665e2ff4d89beb7926f296309
Parents: fcbb662
Author: R-Rajkumar <[email protected]>
Authored: Tue Nov 4 09:40:30 2014 +0530
Committer: R-Rajkumar <[email protected]>
Committed: Tue Nov 4 09:40:30 2014 +0530

----------------------------------------------------------------------
 .../distribution/src/main/conf/mincheck.drl     | 84 --------------------
 1 file changed, 84 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/9e19c877/products/stratos/modules/distribution/src/main/conf/mincheck.drl
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/src/main/conf/mincheck.drl 
b/products/stratos/modules/distribution/src/main/conf/mincheck.drl
deleted file mode 100755
index ceeab48..0000000
--- a/products/stratos/modules/distribution/src/main/conf/mincheck.drl
+++ /dev/null
@@ -1,84 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one 
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- * 
- *  http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 
- * KIND, either express or implied.  See the License for the 
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.stratos.autoscaler.rule;
-
-import org.apache.stratos.messaging.domain.topology.Service;
-import org.apache.stratos.messaging.domain.topology.Cluster;
-import org.apache.stratos.autoscaler.AutoscalerContext;
-import org.apache.stratos.autoscaler.Constants;
-import org.apache.stratos.autoscaler.policy.PolicyManager;
-import org.apache.stratos.autoscaler.policy.model.AutoscalePolicy;
-import org.apache.stratos.autoscaler.policy.model.RequestsInFlight;
-import org.apache.stratos.autoscaler.policy.model.LoadThresholds;
-import 
org.apache.stratos.autoscaler.client.cloud.controller.CloudControllerClient;
-import org.apache.stratos.autoscaler.algorithm.AutoscaleAlgorithm;
-import org.apache.stratos.autoscaler.algorithm.OneAfterAnother;
-import org.apache.stratos.autoscaler.algorithm.RoundRobin;
-import org.apache.stratos.autoscaler.PartitionContext;
-import org.apache.stratos.messaging.message.receiver.topology.TopologyManager;
-import org.apache.stratos.autoscaler.rule.AutoscalerRuleEvaluator;
-import org.apache.commons.logging.Log;
-import org.apache.stratos.autoscaler.deployment.policy.DeploymentPolicy;
-import org.apache.stratos.autoscaler.partition.PartitionGroup;
-import org.apache.stratos.cloud.controller.stub.deployment.partition.Partition;
-import org.apache.stratos.cloud.controller.stub.pojo.MemberContext;
-
-global org.apache.stratos.autoscaler.rule.RuleLog log;
-global org.apache.stratos.autoscaler.policy.PolicyManager $manager;
-global org.apache.stratos.autoscaler.AutoscalerContext $context;
-global org.apache.stratos.autoscaler.rule.RuleTasksDelegator $delegator;
-global org.apache.stratos.messaging.domain.topology.Topology $topology;
-global java.util.Map partitionCtxts;
-global java.lang.String clusterId;
-global java.lang.String lbRef;
-global java.lang.Boolean isPrimary;
-global Integer primaryMemberCount;
-
-rule "Minimum Rule"
-dialect "mvel"
-       when
-           $ctxt : PartitionContext ()
-           eval(log.debug("Running minimum rule: [network-partition] " + 
$ctxt.getNetworkPartitionId() + " [partition] " + $ctxt.getPartitionId()))
-              eval(log.debug("[min-check] [network-partition] " + 
$ctxt.getNetworkPartitionId() + " [partition] " + $ctxt.getPartitionId() + " 
Non terminated member count: " + $ctxt.getNonTerminatedMemberCount()))
-              eval(log.debug("[min-check] [network-partition] " + 
$ctxt.getNetworkPartitionId() + " [partition] " + $ctxt.getPartitionId() + " 
Minimum member count: " + $ctxt.getMinimumMemberCount()))
-              eval ( (isPrimary && (primaryMemberCount < 
$ctxt.getMinimumMemberCount() )) || ( !isPrimary && 
($ctxt.getNonTerminatedMemberCount() < $ctxt.getMinimumMemberCount() )) )
-       then
-           if (isPrimary){
-              log.debug("[min-check] true  [primary] true   [primary member 
count] " + primaryMemberCount);
-           } else{
-              log.debug("[min-check] true  [primary] false");
-           }
-              $delegator.delegateSpawn($ctxt, clusterId, lbRef, isPrimary);
-end
-
-rule "Terminate Obsoleted Instances"
-dialect "mvel"
-        when
-            $ctxt : PartitionContext ()
-            eval(log.debug("Running obsolete instances rule: [partition] " + 
$ctxt.getPartitionId() + " [network-partition] " + 
$ctxt.getNetworkPartitionId()))
-            eval(log.debug("[obsolete-check] [network-partition] " + 
$ctxt.getNetworkPartitionId() + " [partition] " + $ctxt.getPartitionId() +" 
Obsolete member count: " + $ctxt.getObsoletedMembers().size()))
-            eval($ctxt.getObsoletedMembers().size() > 0)
-            memberId : String() from $ctxt.getObsoletedMembers()
-            eval(log.debug("[obsolete-check] [network-partition] " + 
$ctxt.getNetworkPartitionId() + " [partition] " + $ctxt.getPartitionId() + " 
Member id: " + memberId))
-            eval($ctxt.removeObsoleteMember(memberId))
-        then
-           $delegator.terminateObsoleteInstance(memberId);
-end
-

Reply via email to