01: /* JFox, the OpenSource J2EE Application Server
02: *
03: * Copyright (C) 2002 huihoo.com
04: * Distributable under GNU LGPL license
05: * See the GNU Lesser General Public License for more details.
06: */
07:
08: package org.huihoo.jfox.service;
09:
10: /**
11: * define Constants and Method needed by common service
12: * @author <a href="mailto:young_yy@hotmail.com">Young Yang</a>
13: */
14:
15: public interface Service extends Component, Runnable {
16: /**
17: * the running flag
18: */
19: boolean isRunning();
20:
21: /**
22: * doStart the service, doCreate is already called
23: */
24: void start() throws Exception;
25:
26: /**
27: * doStop the service
28: */
29: void stop() throws Exception;
30:
31: }
|