/* JFox, the OpenSource J2EE Application Server
 *
 * Copyright (C) 2002 huihoo.com
 * Distributable under GNU LGPL license
 * See the GNU Lesser General Public License for more details.
 */

package org.huihoo.jfox.service;

/**
 * define Constants and Method needed by common service
 * @author <a href="mailto:young_yy@hotmail.com">Young Yang</a>
 */


public interface Service extends Component, Runnable {
  /**
   * the running flag
   */
  boolean isRunning();

  /**
   * doStart the service, doCreate is already called
   */
  void start() throws Exception;

  /**
   * doStop the service
   */
  void stop() throws Exception;

}
