summaryrefslogtreecommitdiffstats
path: root/branches/sca-trunk-20080910/demos/workpool-distributed/workerRules3.drl
diff options
context:
space:
mode:
authorlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2008-09-11 04:12:24 +0000
committerlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2008-09-11 04:12:24 +0000
commit28f92c6fc62f3bc0637ac77681aabcc8c0b5e42c (patch)
treec5200096f9d6529817b61ee630254a6bd5085729 /branches/sca-trunk-20080910/demos/workpool-distributed/workerRules3.drl
parenta72fcfa3adf5be93bcf62e8ed26c08d10939b364 (diff)
Renaming branch
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@694107 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'branches/sca-trunk-20080910/demos/workpool-distributed/workerRules3.drl')
-rw-r--r--branches/sca-trunk-20080910/demos/workpool-distributed/workerRules3.drl14
1 files changed, 14 insertions, 0 deletions
diff --git a/branches/sca-trunk-20080910/demos/workpool-distributed/workerRules3.drl b/branches/sca-trunk-20080910/demos/workpool-distributed/workerRules3.drl
new file mode 100644
index 0000000000..a67af910a4
--- /dev/null
+++ b/branches/sca-trunk-20080910/demos/workpool-distributed/workerRules3.drl
@@ -0,0 +1,14 @@
+package workpool
+import workpool.*;
+rule "AdaptUsageFactor"
+ when
+ $workerBean: WorkpoolBean(usageFactor > 0.8)
+ then
+ $workerBean.addWorkerToNode("");
+end
+rule "AdaptQueueFull"
+ when
+ $workerBean: WorkpoolBean((estimedQueueSize > 1900) && jobsComputed > 100)
+ then
+ $workerBean.addWorkerToNode("nodeB")
+end \ No newline at end of file