1 22 package org.jboss.system; 23 24 import java.util.Collection ; 25 import java.util.List ; 26 27 import javax.management.ObjectName ; 28 29 import org.jboss.deployers.spi.DeploymentException; 30 import org.jboss.deployment.DeploymentInfo; 31 import org.jboss.deployment.DeploymentState; 32 import org.jboss.mx.util.ObjectNameFactory; 33 import org.w3c.dom.Element ; 34 35 40 public interface ServiceControllerMBean 41 { 42 43 ObjectName OBJECT_NAME = ObjectNameFactory.create("jboss.system:service=ServiceController"); 44 45 50 void setServiceBinding(ServiceBinding serviceBinding); 51 52 57 List <ServiceContext> listDeployed(); 58 59 67 List <ServiceContext> listIncompletelyDeployed(); 68 69 75 List <ObjectName > listDeployedNames(); 76 77 84 String listConfiguration(ObjectName [] objectNames) throws Exception ; 85 86 93 void validateDeploymentState(DeploymentInfo di, DeploymentState state); 94 95 106 List <ObjectName > install(Element config, ObjectName loaderName) throws DeploymentException; 107 108 115 void register(ObjectName serviceName) throws Exception ; 116 117 124 void register(ObjectName serviceName, Collection <ObjectName > depends) throws Exception ; 125 126 132 void create(ObjectName serviceName) throws Exception ; 133 134 141 void create(ObjectName serviceName, Collection <ObjectName > depends) throws Exception ; 142 143 149 void start(ObjectName serviceName) throws Exception ; 150 151 157 void restart(ObjectName serviceName) throws Exception ; 158 159 165 void stop(ObjectName serviceName) throws Exception ; 166 167 173 void destroy(ObjectName serviceName) throws Exception ; 174 175 181 void remove(ObjectName objectName) throws Exception ; 182 183 186 void shutdown(); 187 188 194 ServiceContext getServiceContext(ObjectName serviceName); 195 } 196 | Popular Tags |