|
@@ -112,15 +112,24 @@ public class TestCapacitySchedulerAutoCreatedQueueBase {
|
|
public static final String C = CapacitySchedulerConfiguration.ROOT + ".c";
|
|
public static final String C = CapacitySchedulerConfiguration.ROOT + ".c";
|
|
public static final String D = CapacitySchedulerConfiguration.ROOT + ".d";
|
|
public static final String D = CapacitySchedulerConfiguration.ROOT + ".d";
|
|
public static final String E = CapacitySchedulerConfiguration.ROOT + ".e";
|
|
public static final String E = CapacitySchedulerConfiguration.ROOT + ".e";
|
|
|
|
+ public static final String ASUBGROUP1 =
|
|
|
|
+ CapacitySchedulerConfiguration.ROOT + ".esubgroup1";
|
|
|
|
+ public static final String AGROUP =
|
|
|
|
+ CapacitySchedulerConfiguration.ROOT + ".fgroup";
|
|
public static final String A1 = A + ".a1";
|
|
public static final String A1 = A + ".a1";
|
|
public static final String A2 = A + ".a2";
|
|
public static final String A2 = A + ".a2";
|
|
public static final String B1 = B + ".b1";
|
|
public static final String B1 = B + ".b1";
|
|
public static final String B2 = B + ".b2";
|
|
public static final String B2 = B + ".b2";
|
|
public static final String B3 = B + ".b3";
|
|
public static final String B3 = B + ".b3";
|
|
|
|
+ public static final String ASUBGROUP1_A = ASUBGROUP1 + ".e";
|
|
|
|
+ public static final String AGROUP_A = AGROUP + ".f";
|
|
public static final float A_CAPACITY = 20f;
|
|
public static final float A_CAPACITY = 20f;
|
|
- public static final float B_CAPACITY = 40f;
|
|
|
|
|
|
+ public static final float B_CAPACITY = 20f;
|
|
public static final float C_CAPACITY = 20f;
|
|
public static final float C_CAPACITY = 20f;
|
|
public static final float D_CAPACITY = 20f;
|
|
public static final float D_CAPACITY = 20f;
|
|
|
|
+ public static final float ASUBGROUP1_CAPACITY = 10f;
|
|
|
|
+ public static final float AGROUP_CAPACITY = 10f;
|
|
|
|
+
|
|
public static final float A1_CAPACITY = 30;
|
|
public static final float A1_CAPACITY = 30;
|
|
public static final float A2_CAPACITY = 70;
|
|
public static final float A2_CAPACITY = 70;
|
|
public static final float B1_CAPACITY = 60f;
|
|
public static final float B1_CAPACITY = 60f;
|
|
@@ -328,12 +337,15 @@ public class TestCapacitySchedulerAutoCreatedQueueBase {
|
|
// Define top-level queues
|
|
// Define top-level queues
|
|
// Set childQueue for root
|
|
// Set childQueue for root
|
|
conf.setQueues(ROOT,
|
|
conf.setQueues(ROOT,
|
|
- new String[] { "a", "b", "c", "d", "asubgroup1", "asubgroup2" });
|
|
|
|
|
|
+ new String[] {"a", "b", "c", "d", "esubgroup1", "asubgroup2",
|
|
|
|
+ "fgroup"});
|
|
|
|
|
|
conf.setCapacity(A, A_CAPACITY);
|
|
conf.setCapacity(A, A_CAPACITY);
|
|
conf.setCapacity(B, B_CAPACITY);
|
|
conf.setCapacity(B, B_CAPACITY);
|
|
conf.setCapacity(C, C_CAPACITY);
|
|
conf.setCapacity(C, C_CAPACITY);
|
|
conf.setCapacity(D, D_CAPACITY);
|
|
conf.setCapacity(D, D_CAPACITY);
|
|
|
|
+ conf.setCapacity(ASUBGROUP1, ASUBGROUP1_CAPACITY);
|
|
|
|
+ conf.setCapacity(AGROUP, AGROUP_CAPACITY);
|
|
|
|
|
|
// Define 2nd-level queues
|
|
// Define 2nd-level queues
|
|
conf.setQueues(A, new String[] { "a1", "a2" });
|
|
conf.setQueues(A, new String[] { "a1", "a2" });
|
|
@@ -350,6 +362,13 @@ public class TestCapacitySchedulerAutoCreatedQueueBase {
|
|
conf.setCapacity(B3, B3_CAPACITY);
|
|
conf.setCapacity(B3, B3_CAPACITY);
|
|
conf.setUserLimitFactor(B3, 100.0f);
|
|
conf.setUserLimitFactor(B3, 100.0f);
|
|
|
|
|
|
|
|
+ conf.setQueues(ASUBGROUP1, new String[] {"e"});
|
|
|
|
+ conf.setCapacity(ASUBGROUP1_A, 100f);
|
|
|
|
+ conf.setUserLimitFactor(ASUBGROUP1_A, 100.0f);
|
|
|
|
+ conf.setQueues(AGROUP, new String[] {"f"});
|
|
|
|
+ conf.setCapacity(AGROUP_A, 100f);
|
|
|
|
+ conf.setUserLimitFactor(AGROUP_A, 100.0f);
|
|
|
|
+
|
|
conf.setUserLimitFactor(C, 1.0f);
|
|
conf.setUserLimitFactor(C, 1.0f);
|
|
conf.setAutoCreateChildQueueEnabled(C, true);
|
|
conf.setAutoCreateChildQueueEnabled(C, true);
|
|
|
|
|