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