KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tctest > performance > faulting > DualQueueFaultBase


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tctest.performance.faulting;
5
6 import com.tctest.TransparentTestBase;
7 import com.tctest.TransparentTestIface;
8
9 public abstract class DualQueueFaultBase extends TransparentTestBase {
10
11   private static final int TIMEOUT = 30 * 60 * 1000; // 30min;
12

13   public void doSetUp(TransparentTestIface t) throws Exception JavaDoc {
14     t.getTransparentAppConfig().setClientCount(nodeCount());
15     t.getTransparentAppConfig().setIntensity(1);
16     t.initializeTestRunner();
17     t.getRunnerConfig().setExecutionTimeout(TIMEOUT);
18   }
19
20   protected Class JavaDoc getApplicationClass() {
21     return DualQueueFaultTestApp.class;
22   }
23
24   protected abstract int nodeCount();
25 }
26
Popular Tags