01: /*
02: * Copyright 2001-2004 The Apache Software Foundation
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16:
17: package org.apache.commons.daemon;
18:
19: /**
20: *
21: * @author Pier Fumagalli
22: * @author Copyright © 2000-2001 <a href="http://www.apache.org/">The
23: * Apache Software Foundation</a>. All rights reserved.
24: * @version 1.0 <i>(CVS $Revision: 155409 $)</i>
25: */
26: public interface DaemonController {
27:
28: /**
29: *
30: */
31: public void shutdown() throws IllegalStateException;
32:
33: /**
34: *
35: */
36: public void reload() throws IllegalStateException;
37:
38: /**
39: *
40: */
41: public void fail() throws IllegalStateException;
42:
43: /**
44: *
45: */
46: public void fail(String message) throws IllegalStateException;
47:
48: /**
49: *
50: */
51: public void fail(Exception exception) throws IllegalStateException;
52:
53: /**
54: *
55: */
56: public void fail(String message, Exception exception)
57: throws IllegalStateException;
58:
59: }
|