01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright
03: * notice. All rights reserved.
04: */
05: package com.tctest;
06:
07: import com.tc.test.activepassive.ActivePassiveCrashMode;
08: import com.tc.test.activepassive.ActivePassivePersistenceMode;
09: import com.tc.test.activepassive.ActivePassiveSharedDataMode;
10: import com.tc.test.activepassive.ActivePassiveTestSetupManager;
11:
12: public class ConcurrentLinkedListTest extends TransparentTestBase {
13:
14: private static final int NODE_COUNT = 8;
15:
16: public void doSetUp(TransparentTestIface t) throws Exception {
17: t.getTransparentAppConfig().setClientCount(NODE_COUNT);
18: t.initializeTestRunner();
19: }
20:
21: protected Class getApplicationClass() {
22: return ConcurrentLinkedListTestApp.class;
23: }
24:
25: protected boolean canRunActivePassive() {
26: return true;
27: }
28:
29: public void setupActivePassiveTest(
30: ActivePassiveTestSetupManager setupManager) {
31: setupManager.setServerCount(2);
32: setupManager
33: .setServerCrashMode(ActivePassiveCrashMode.CONTINUOUS_ACTIVE_CRASH);
34: setupManager.setServerCrashWaitTimeInSec(30);
35: setupManager
36: .setServerShareDataMode(ActivePassiveSharedDataMode.NETWORK);
37: setupManager
38: .setServerPersistenceMode(ActivePassivePersistenceMode.TEMPORARY_SWAP_ONLY);
39: }
40:
41: }
|