KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > test > server > dsoserver > StandardDsoServerParameters


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.test.server.dsoserver;
5
6 import com.tc.test.server.tcconfig.TerracottaServerConfigGenerator;
7
8 import java.io.File JavaDoc;
9
10 /**
11  * This object is created by the client and passed to the DSO server at startup.
12  */

13 public final class StandardDsoServerParameters implements DsoServerParameters {
14
15   private final File JavaDoc config;
16   private final int dsoPort;
17   private final int jmxPort;
18   private final File JavaDoc outputFile;
19   private final File JavaDoc workingDir;
20
21   public StandardDsoServerParameters(TerracottaServerConfigGenerator config, File JavaDoc workingDir, File JavaDoc outputFile,
22                                      int dsoPort, int jmxPort) {
23     this.workingDir = workingDir;
24     this.outputFile = outputFile;
25     this.dsoPort = dsoPort;
26     this.jmxPort = jmxPort;
27     this.config = config.configFile();
28   }
29
30   public File JavaDoc configFile() {
31     return config;
32   }
33
34   public int dsoPort() {
35     return dsoPort;
36   }
37
38   public int jmxPort() {
39     return jmxPort;
40   }
41
42   public String JavaDoc jvmArgs() {
43     return "";
44   }
45
46   public String JavaDoc classpath() {
47     return "";
48   }
49
50   public File JavaDoc outputFile() {
51     return outputFile;
52   }
53
54   public File JavaDoc workingDir() {
55     return workingDir;
56   }
57 }
58
Popular Tags