001 package coldfusion.server; 002 003 import java.util.Map; 004 005 public interface Service { 006 007 public static final int UNINITALIZED=1; 008 public static final int STARTING=2; 009 public static final int STARTED=4; 010 public static final int STOPPING=8; 011 public static final int STOOPED=16; 012 013 public abstract void start() throws ServiceException; 014 015 public abstract void stop() throws ServiceException; 016 017 public abstract void restart() throws ServiceException; 018 019 public abstract int getStatus(); 020 021 public abstract ServiceMetaData getMetaData(); 022 023 public abstract Object getProperty(String arg0); 024 025 public abstract void setProperty(String arg0, Object arg1); 026 027 public abstract Map getResourceBundle(); 028 029 }