KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tctest > CacheLoadPerformanceTest


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;
5
6 import com.tc.config.schema.SettableConfigItem;
7
8 public class CacheLoadPerformanceTest extends TransparentTestBase {
9
10   private static final int NODE_COUNT = 1;
11
12   public void setUp() throws Exception JavaDoc {
13     super.setUp();
14
15     ((SettableConfigItem) configFactory().l2DSOConfig().garbageCollectionInterval()).setValue(1000000);
16
17     getTransparentAppConfig().setClientCount(NODE_COUNT).setIntensity(1);
18
19     initializeTestRunner();
20   }
21
22   protected Class JavaDoc getApplicationClass() {
23     return CacheLoadPerformanceTestApp.class;
24   }
25
26   protected boolean getStartServer() {
27     return true;
28   }
29 }
30
Popular Tags