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 TransparentSetL1ReconnectCrashTest extends
13: TransparentTestBase implements TestConfigurator {
14: private static final int NODE_COUNT = 3;
15: private static final int EXECUTION_COUNT = 3;
16: private static final int LOOP_ITERATION_COUNT = 400;
17:
18: protected Class getApplicationClass() {
19: return TransparentSetTestApp.class;
20: }
21:
22: public void doSetUp(TransparentTestIface t) throws Exception {
23: t.getTransparentAppConfig().setClientCount(NODE_COUNT)
24: .setApplicationInstancePerClientCount(EXECUTION_COUNT)
25: .setIntensity(LOOP_ITERATION_COUNT);
26: t.initializeTestRunner();
27: }
28:
29: protected boolean canRunCrash() {
30: return true;
31: }
32:
33: protected boolean enableL1Reconnect() {
34: return true;
35: }
36:
37: public void setupActivePassiveTest(
38: ActivePassiveTestSetupManager setupManager) {
39: setupManager.setServerCount(2);
40: setupManager
41: .setServerCrashMode(ActivePassiveCrashMode.CONTINUOUS_ACTIVE_CRASH);
42: setupManager.setServerCrashWaitTimeInSec(60);
43: setupManager
44: .setServerShareDataMode(ActivePassiveSharedDataMode.NETWORK);
45: setupManager
46: .setServerPersistenceMode(ActivePassivePersistenceMode.TEMPORARY_SWAP_ONLY);
47: }
48:
49: }
|