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 ConcurrentHashMapSyncTest extends TransparentTestBase {
13:
14: // need to be at least 4
15: private static final int NODE_COUNT = 8;
16:
17: public void doSetUp(TransparentTestIface t) throws Exception {
18: t.getTransparentAppConfig().setClientCount(NODE_COUNT);
19: t.initializeTestRunner();
20: }
21:
22: protected Class getApplicationClass() {
23: return ConcurrentHashMapSyncTestApp.class;
24: }
25:
26: protected boolean canRunActivePassive() {
27: return true;
28: }
29:
30: public void setupActivePassiveTest(
31: ActivePassiveTestSetupManager setupManager) {
32: setupManager.setServerCount(2);
33: setupManager
34: .setServerCrashMode(ActivePassiveCrashMode.CONTINUOUS_ACTIVE_CRASH);
35: setupManager.setServerCrashWaitTimeInSec(30);
36: setupManager
37: .setServerShareDataMode(ActivePassiveSharedDataMode.NETWORK);
38: setupManager
39: .setServerPersistenceMode(ActivePassivePersistenceMode.TEMPORARY_SWAP_ONLY);
40: }
41:
42: }
|