KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tctest > performance > timedtask > TimedObjectFaultBase


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.timedtask;
5
6 import com.tctest.TransparentTestBase;
7 import com.tctest.TransparentTestIface;
8 import com.tctest.performance.timedtask.TimedObjectFaultTestApp;
9
10 public abstract class TimedObjectFaultBase extends TransparentTestBase {
11
12   private static final int TIMEOUT = 30 * 60 * 1000; // 30min;
13

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