1 17 package javax.jbi.management; 18 19 import javax.jbi.JBIException; 20 21 public interface LifeCycleMBean 22 { 23 void start() throws JBIException; 24 25 void stop() throws JBIException; 26 27 void shutDown() throws JBIException; 28 29 String getCurrentState(); 30 31 final static String SHUTDOWN = "Shutdown"; 32 33 final static String STOPPED = "Stopped"; 34 35 final static String STARTED = "Started"; 36 37 final static String UNKNOWN = "Unknown"; 38 } 39 | Popular Tags |