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.longrunning;
06:
07: import com.tc.config.schema.setup.TestTVSConfigurationSetupManagerFactory;
08: import com.tctest.TestConfigurator;
09: import com.tctest.TransparentTestBase;
10: import com.tctest.TransparentTestIface;
11: import com.terracottatech.config.PersistenceMode;
12:
13: public class LongrunningGCTester extends TransparentTestBase implements
14: TestConfigurator {
15:
16: int NODE_COUNT = 3;
17: int LOOP_ITERATION_COUNT = 1;
18:
19: public void doSetUp(TransparentTestIface t) throws Exception {
20: t.getTransparentAppConfig().setClientCount(NODE_COUNT)
21: .setIntensity(LOOP_ITERATION_COUNT);
22: t.initializeTestRunner();
23: }
24:
25: protected void setupConfig(
26: TestTVSConfigurationSetupManagerFactory configFactory) {
27: configFactory.setGCEnabled(true);
28: configFactory.setGCVerbose(true);
29: configFactory
30: .setPersistenceMode(PersistenceMode.TEMPORARY_SWAP_ONLY);
31: }
32:
33: protected Class getApplicationClass() {
34: return LongrunningGCTestApp.class;
35: }
36:
37: }
|