1 4 package com.tc.objectserver.control; 5 6 7 public class NullServerControl implements ServerControl { 8 9 private boolean isRunning; 10 11 public synchronized void attemptShutdown() throws Exception { 12 isRunning = false; 13 } 14 15 public synchronized void shutdown() throws Exception { 16 isRunning = false; 17 } 18 19 public synchronized void crash() throws Exception { 20 isRunning = false; 21 } 22 23 public synchronized void start(long timeout) throws Exception { 24 this.isRunning = true; 25 } 26 27 public synchronized boolean isRunning() { 28 return isRunning; 29 } 30 31 public void clean() { 32 return; 33 } 34 35 public void mergeSTDOUT() { 36 return; 37 } 38 39 public void mergeSTDERR() { 40 return; 41 } 42 43 public void waitUntilShutdown() { 44 return; 45 } 46 47 public int getDsoPort() { 48 return 0; 49 } 50 51 } 52 | Popular Tags |