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.tcsimulator.distrunner;
05:
06: import java.util.ArrayList;
07: import java.util.List;
08:
09: 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 getHostName() {
18: return "";
19: }
20:
21: public String getTestHome() {
22: return "";
23: }
24:
25: public String toString() {
26: return "null";
27: }
28:
29: public List getJvmOpts() {
30: return new ArrayList();
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: }
|