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 interface ServerControl {
08:
09: public void mergeSTDOUT();
10:
11: public void mergeSTDERR();
12:
13: /**
14: * Starts the shutdown sequence, but doesn't block.
15: */
16: public void attemptShutdown() throws Exception;
17:
18: /**
19: * Starts the shutdown sequence, blocking until isRunning() is false.
20: */
21: public void shutdown() throws Exception;
22:
23: /**
24: * Forces the server to exit, blocking until isRunning() is false.
25: */
26: public void crash() throws Exception;
27:
28: /**
29: * Starts the server, blocking until isRunning() is true.
30: */
31: public void start() throws Exception;
32:
33: /**
34: * Returns true if the server responds.
35: */
36: public boolean isRunning();
37:
38: public void waitUntilShutdown() throws Exception;
39:
40: public int getDsoPort();
41:
42: public int getAdminPort();
43:
44: }
|