KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > simulator > distrunner > SpecFactoryImpl


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tc.simulator.distrunner;
5
6 import com.tcsimulator.ClientSpec;
7 import com.tcsimulator.ClientSpecImpl;
8 import com.tcsimulator.distrunner.ServerSpec;
9 import com.tcsimulator.distrunner.ServerSpecImpl;
10
11 import java.util.List JavaDoc;
12
13 public class SpecFactoryImpl implements SpecFactory {
14
15   public ClientSpec newClientSpec(String JavaDoc hostname, String JavaDoc testHome, int vmCount, int executionCount, List JavaDoc jvmOpts) {
16     return new ClientSpecImpl(hostname, testHome, vmCount, executionCount, jvmOpts);
17   }
18
19   public ServerSpec newServerSpec(String JavaDoc host, String JavaDoc path, int cache, int jmxPort, int dsoPort, List JavaDoc jvmOpts, int type) {
20     return new ServerSpecImpl(host, path, cache, jmxPort, dsoPort, jvmOpts, type);
21   }
22 }
23
Popular Tags