KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > objectserver > control > NullServerControl


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

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 JavaDoc {
12     isRunning = false;
13   }
14
15   public synchronized void shutdown() throws Exception JavaDoc {
16      isRunning = false;
17   }
18
19   public synchronized void crash() throws Exception JavaDoc {
20     isRunning = false;
21   }
22
23   public synchronized void start(long timeout) throws Exception JavaDoc {
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