Save This Page
Home » jboss-5.0.0.CR1-src » org » jboss » system » [javadoc | source]
org.jboss.system
public class: ServiceController [javadoc | source]
java.lang.Object
   org.jboss.mx.util.JBossNotificationBroadcasterSupport
      org.jboss.system.ServiceController

All Implemented Interfaces:
    ServiceControllerMBean, MBeanRegistration, NotificationEmitter

This is the main Service Controller. A controller can deploy a service to a jboss.system It installs by delegating, it configures by delegating

This class has been rewritten to delegate to the microcontainer's generic controller. Like the original ServiceController, all state transitions must be handled manually, e.g. driven by the deployer invoking create, start, stop, etc. That is with one exception; we register ourselves an automatic context.

Field Summary
public static final  ObjectName DEFAULT_LOADER_REPOSITORY    The ObjectName of the default loader repository 
public static final  String JBOSS_INTERNAL_LIFECYCLE    The operation name for lifecycle 
public static final  String[] JBOSS_INTERNAL_LIFECYCLE_SIG    The signature for lifecycle operations 
protected  Kernel kernel    The kernel 
protected  MBeanServer server    A callback to the JMX MBeanServer 
protected  ServiceBinding serviceBinding    The service binding 
protected  Map installed    The contexts 
protected  CopyOnWriteArrayList installedOrder    The contexts in installation order 
Method from org.jboss.system.ServiceController Summary:
create,   create,   destroy,   getKernel,   getMBeanServer,   getServiceBinding,   getServiceContext,   install,   install,   install,   install,   listConfiguration,   listDeployed,   listDeployedNames,   listIncompletelyDeployed,   postDeregister,   postRegister,   preDeregister,   preRegister,   register,   register,   register,   remove,   restart,   sendControllerNotification,   setKernel,   setMBeanServer,   setServiceBinding,   shutdown,   start,   stop,   validateDeploymentState
Methods from org.jboss.mx.util.JBossNotificationBroadcasterSupport:
addNotificationListener,   getNotificationInfo,   handleNotification,   nextNotificationSequenceNumber,   removeNotificationListener,   removeNotificationListener,   sendNotification
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.system.ServiceController Detail:
 public  void create(ObjectName serviceName) throws Exception 
 public  void create(ObjectName serviceName,
    Collection depends) throws Exception 
 public  void destroy(ObjectName serviceName) throws Exception 
 public Kernel getKernel() 
    Get the kernel.
 public MBeanServer getMBeanServer() 
    Get the MBeanServer
 public ServiceBinding getServiceBinding() 
    Get the serviceBinding.
 public ServiceContext getServiceContext(ObjectName serviceName) 
 public List install(List metaDatas,
    ObjectName loaderName) throws DeploymentException 
 public ObjectName install(ServiceMetaData metaData,
    ObjectName loaderName) throws DeploymentException 
 public List install(Element config,
    ObjectName loaderName) throws DeploymentException 
 public  void install(ObjectName name,
    Object object) throws DeploymentException 
    Install an MBean without any meta data
 public String listConfiguration(ObjectName[] objectNames) throws Exception 
 public List listDeployed() 
 public List listDeployedNames() 
 public List listIncompletelyDeployed() 
 public  void postDeregister() 
 public  void postRegister(Boolean registrationDone) 
 public  void preDeregister() throws Exception 
 public ObjectName preRegister(MBeanServer server,
    ObjectName name) throws Exception 
 public  void register(ObjectName serviceName) throws Exception 
 public  void register(ObjectName serviceName,
    Collection depends) throws Exception 
 public  void register(ObjectName serviceName,
    Collection depends,
    boolean includeLifecycle) throws Exception 
 public  void remove(ObjectName objectName) throws Exception 
 public  void restart(ObjectName serviceName) throws Exception 
 public  void sendControllerNotification(String type,
    ObjectName serviceName) 
    Sends outs controller notifications about service lifecycle events
 public  void setKernel(Kernel kernel) 
    Set the kernel.
 public  void setMBeanServer(MBeanServer server) 
    Set the server.
 public  void setServiceBinding(ServiceBinding serviceBinding) 
    Plugin a ServiceBinding policy
 public  void shutdown() 
 public  void start(ObjectName serviceName) throws Exception 
 public  void stop(ObjectName serviceName) throws Exception 
 public  void validateDeploymentState(DeploymentInfo di,
    DeploymentState state)