1 4 package com.tcsimulator; 5 6 import com.tcsimulator.distrunner.ServerSpec; 7 8 import java.util.List ; 9 10 public class ServerViewImpl implements ServerView { 11 12 private final ServerSpec spec; 13 private int isServerRunning; 14 15 public ServerViewImpl(ServerSpec sSpec) { 16 spec = sSpec; 17 } 18 19 public synchronized int isServerRunning() { 20 return this.isServerRunning; 21 } 22 23 public synchronized void setServerRunning(int val) { 24 this.isServerRunning = val; 25 } 26 27 public String getHostName() { 28 return this.spec.getHostName(); 29 } 30 31 public String getTestHome() { 32 return this.spec.getTestHome(); 33 } 34 35 public List getJvmOpts() { 36 return this.spec.getJvmOpts(); 37 } 38 39 public int getJmxPort() { 40 return this.spec.getJmxPort(); 41 } 42 43 public int getDsoPort() { 44 return this.spec.getDsoPort(); 45 } 46 47 public int getCacheCount() { 48 return this.spec.getCache(); 49 } 50 51 public int getType() { 52 return this.spec.getType(); 53 } 54 55 public ServerView copy() { 56 return new ServerViewImpl(spec.copy()); 57 } 58 59 } 60 | Popular Tags |