01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tc.simulator.distrunner;
05:
06: import com.tcsimulator.ClientSpec;
07: import com.tcsimulator.ClientSpecImpl;
08: import com.tcsimulator.distrunner.ServerSpec;
09: import com.tcsimulator.distrunner.ServerSpecImpl;
10:
11: import java.util.List;
12:
13: public class SpecFactoryImpl implements SpecFactory {
14:
15: public ClientSpec newClientSpec(String hostname, String testHome,
16: int vmCount, int executionCount, List jvmOpts) {
17: return new ClientSpecImpl(hostname, testHome, vmCount,
18: executionCount, jvmOpts);
19: }
20:
21: public ServerSpec newServerSpec(String host, String path,
22: int cache, int jmxPort, int dsoPort, List jvmOpts, int type) {
23: return new ServerSpecImpl(host, path, cache, jmxPort, dsoPort,
24: jvmOpts, type);
25: }
26: }
|