1 22 package org.jboss.system; 23 24 35 public interface ServiceMBean 36 extends Service 37 { 38 40 41 public static final String CREATE_EVENT = "org.jboss.system.ServiceMBean.create"; 42 public static final String START_EVENT = "org.jboss.system.ServiceMBean.start"; 43 public static final String STOP_EVENT = "org.jboss.system.ServiceMBean.stop"; 44 public static final String DESTROY_EVENT = "org.jboss.system.ServiceMBean.destroy"; 45 46 public static final String [] states = { 47 "Stopped", "Stopping", "Starting", "Started", "Failed", 48 "Destroyed", "Created", "Unregistered", "Registered" 49 }; 50 51 52 public static final int STOPPED = 0; 53 54 public static final int STOPPING = 1; 55 56 public static final int STARTING = 2; 57 58 public static final int STARTED = 3; 59 60 public static final int FAILED = 4; 61 62 public static final int DESTROYED = 5; 63 64 public static final int CREATED = 6; 65 66 public static final int UNREGISTERED = 7; 67 68 public static final int REGISTERED = 8; 69 70 72 String getName(); 73 int getState(); 74 String getStateString(); 75 76 77 void jbossInternalLifecycle(String method) throws Exception ; 78 } 79 | Popular Tags |