KickJava   Java API By Example, From Geeks To Geeks.

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


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 public interface ServerControl {
7
8   public void mergeSTDOUT();
9   
10   public void mergeSTDERR();
11   
12   /**
13    * Starts the shutdown sequence, but doesn't block.
14    */

15   public void attemptShutdown() throws Exception JavaDoc;
16   
17   /**
18    * Starts the shutdown sequence, blocking until isRunning() is false.
19    */

20   public void shutdown() throws Exception JavaDoc;
21   
22   /**
23    * Forces the server to exit, blocking until isRunning() is false.
24    */

25   public void crash() throws Exception JavaDoc;
26
27   /**
28    * Starts the server, blocking until isRunning() is true.
29    */

30   public void start(long timeout) throws Exception JavaDoc;
31
32   /**
33    * Returns true if the server responds.
34    */

35   public boolean isRunning();
36
37   public void clean();
38
39   public void waitUntilShutdown() throws Exception JavaDoc;
40
41   public int getDsoPort();
42
43 }
Popular Tags