From a6396e58f32a24038b772ee75a8866abc17ea237 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel (Good Data) Date: Mon, 27 Jul 2009 18:40:24 +0200 Subject: [PATCH 2/2] Add Executor Limit Make it possible to limit number of executors configured on slaves. --- .../java/hudson/plugins/ec2/SlaveTemplate.java | 17 +++++++++++++++-- .../hudson/plugins/ec2/EC2Cloud/config.jelly | 3 +++ .../system-config/master-slave/maxExecutors.html | 7 +++++++ 3 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 target/hudson-for-test/help/system-config/master-slave/maxExecutors.html diff --git a/src/main/java/hudson/plugins/ec2/SlaveTemplate.java b/src/main/java/hudson/plugins/ec2/SlaveTemplate.java index 9380a25..4917b8b 100644 --- a/src/main/java/hudson/plugins/ec2/SlaveTemplate.java +++ b/src/main/java/hudson/plugins/ec2/SlaveTemplate.java @@ -41,12 +41,13 @@ public class SlaveTemplate implements Describable { public final String labels; public final String initScript; public final String userData; + public final String maxExecutors; protected transient EC2Cloud parent; private transient /*almost final*/ Set