KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tcsimulator > distrunner > NullServerSpec


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.tcsimulator.distrunner;
5
6 import java.util.ArrayList JavaDoc;
7 import java.util.List JavaDoc;
8
9 public class NullServerSpec implements ServerSpec {
10
11   private static final int UNDEFINED = -1;
12
13   public boolean isNull() {
14     return true;
15   }
16
17   public String JavaDoc getHostName() {
18     return "";
19   }
20
21   public String JavaDoc getTestHome() {
22     return "";
23   }
24
25   public String JavaDoc toString() {
26     return "null";
27   }
28
29   public List JavaDoc getJvmOpts() {
30     return new ArrayList JavaDoc();
31   }
32
33   public int getCache() {
34     return UNDEFINED;
35   }
36
37   public int getJmxPort() {
38     return UNDEFINED;
39   }
40
41   public int getDsoPort() {
42     return UNDEFINED;
43   }
44
45   public ServerSpec copy() {
46     return this;
47   }
48
49   public int getType() {
50     return UNDEFINED;
51   }
52
53 }
54
Popular Tags