01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright
03: * notice. All rights reserved.
04: */
05: package com.tc.objectserver.control;
06:
07: public class NullServerControl implements ServerControl {
08:
09: 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() 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: public int getAdminPort() {
52: return 0;
53: }
54:
55: }
|