KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tctest > TransparentLinkedListTest


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 import com.tc.config.schema.setup.TestTVSConfigurationSetupManagerFactory;
8 import com.terracottatech.config.PersistenceMode;
9
10 public class TransparentLinkedListTest extends TransparentTestBase implements TestConfigurator {
11   private static final int NODE_COUNT = 3;
12   private static final int EXECUTION_COUNT = 3;
13   private static final int LOOP_ITERATION_COUNT = 3;
14
15   public void doSetUp(TransparentTestIface t) throws Exception JavaDoc {
16     t.getTransparentAppConfig().setClientCount(NODE_COUNT).setApplicationInstancePerClientCount(EXECUTION_COUNT)
17         .setIntensity(LOOP_ITERATION_COUNT);
18     TestTVSConfigurationSetupManagerFactory factory = (TestTVSConfigurationSetupManagerFactory) t.getConfigFactory();
19
20     ((SettableConfigItem) factory.l2DSOConfig().garbageCollectionEnabled()).setValue(true);
21     ((SettableConfigItem) factory.l2DSOConfig().persistenceMode()).setValue(PersistenceMode.TEMPORARY_SWAP_ONLY);
22
23     t.initializeTestRunner();
24   }
25
26   protected Class JavaDoc getApplicationClass() {
27     return TransparentLinkedListTestApp.class;
28   }
29
30   protected boolean canRunCrash() {
31     return true;
32   }
33
34 }
35
Popular Tags