Package org.jboss.system

Examples of org.jboss.system.ServiceContext


      scmb.remove(serviceName);
   }

   public boolean isStarted(ObjectName serviceName)
   {
      ServiceContext sc = scmb.getServiceContext(serviceName);
      return sc.state == ServiceContext.RUNNING;
   }
View Full Code Here


      return sc.state == ServiceContext.RUNNING;
   }
  
   public boolean isCreated(ObjectName serviceName)
   {
      ServiceContext sc = scmb.getServiceContext(serviceName);
      return sc.state == ServiceContext.CREATED;
   }
View Full Code Here

      return sc.state == ServiceContext.CREATED;
   }
  
   public boolean isStopped(ObjectName serviceName)
   {
      ServiceContext sc = scmb.getServiceContext(serviceName);
      return sc.state == ServiceContext.STOPPED;
   }
View Full Code Here

      return sc.state == ServiceContext.STOPPED;
   }
  
   public boolean isDestroyed(ObjectName serviceName)
   {
      ServiceContext sc = scmb.getServiceContext(serviceName);
      return sc.state == ServiceContext.DESTROYED;
   }
View Full Code Here

      return sc.state == ServiceContext.DESTROYED;
   }
  
   public boolean isFailed(ObjectName serviceName)
   {
      ServiceContext sc = scmb.getServiceContext(serviceName);
      return sc.state == ServiceContext.FAILED;
   }
View Full Code Here

         ObjectName loaderName = deployment.getClassLoaderName();
         if (loaderName == null)
            loaderName = findLoaderName(unit.getClassLoader());

         controller.install(deployment, loaderName);
         ServiceContext context = controller.getServiceContext(name);
         if (context == null)
            throw new IllegalStateException("No context for " + name);
         try
         {
            create(context);
            try
            {
               start(context);
               Throwable t = context.getProblem();
               if (t != null)
                  throw t;
            }
            catch (Throwable t)
            {
View Full Code Here

   }

   public void undeploy(DeploymentUnit unit, ServiceMetaData deployment)
   {
      ObjectName name = deployment.getObjectName();
      ServiceContext context = controller.getServiceContext(name);
      if (context != null)
      {
         stop(name);
         destroy(name);
         remove(name);
View Full Code Here

         ObjectName loaderName = deployment.getClassLoaderName();
         if (loaderName == null)
            loaderName = findLoaderName(unit.getClassLoader());

         controller.install(deployment, loaderName);
         ServiceContext context = controller.getServiceContext(name);
         if (context == null)
            throw new IllegalStateException("No context for " + name);
         try
         {
            create(context);
            try
            {
               start(context);
               Throwable t = context.getProblem();
               if (t != null)
                  throw t;
            }
            catch (Throwable t)
            {
View Full Code Here

      ControllerContext serviceContext = getControllerContext(name);
      if (serviceContext != null)
         removeContext(serviceContext, unit.getParent());

      ServiceContext context = controller.getServiceContext(name);
      if (context != null)
      {
         stop(name);
         destroy(name);
         remove(name);
View Full Code Here

         ObjectName loaderName = deployment.getClassLoaderName();
         if (loaderName == null)
            loaderName = findLoaderName(unit.getClassLoader());

         controller.install(deployment, loaderName);
         ServiceContext context = controller.getServiceContext(name);
         if (context == null)
            throw new IllegalStateException("No context for " + name);
         try
         {
            create(context);
            try
            {
               start(context);
               Throwable t = context.getProblem();
               if (t != null)
                  throw t;
            }
            catch (Throwable t)
            {
View Full Code Here

TOP

Related Classes of org.jboss.system.ServiceContext

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.