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 ConcurrentHashMapGCActivePassiveTest extends GCTestBase
13: implements TestConfigurator {
14: public void doSetUp(TransparentTestIface t) throws Exception {
15: t.getTransparentAppConfig().setAttribute(
16: ConcurrentHashMapSwapingTestApp.GC_TEST_KEY, "true");
17: super .doSetUp(t);
18: }
19:
20: protected Class getApplicationClass() {
21: return ConcurrentHashMapSwapingTestApp.class;
22: }
23:
24: protected boolean canRunActivePassive() {
25: return true;
26: }
27:
28: public void setupActivePassiveTest(
29: ActivePassiveTestSetupManager setupManager) {
30: setupManager.setServerCount(2);
31: setupManager
32: .setServerCrashMode(ActivePassiveCrashMode.CONTINUOUS_ACTIVE_CRASH);
33: setupManager.setServerCrashWaitTimeInSec(40);
34: setupManager
35: .setServerShareDataMode(ActivePassiveSharedDataMode.NETWORK);
36: setupManager
37: .setServerPersistenceMode(ActivePassivePersistenceMode.TEMPORARY_SWAP_ONLY);
38: }
39:
40: }
|