1 4 package com.tcsimulator.distrunner; 5 6 import java.util.ArrayList ; 7 import java.util.List ; 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 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 } 54 | Popular Tags |