Examples of ManagedDeployment


Examples of org.jboss.managed.api.ManagedDeployment

      if (mgtDeploymentCreator == null)
         throw new IllegalArgumentException("Null managed deployment creator.");

      DeploymentUnit unit = context.getDeploymentUnit();
      Map<String, ManagedObject> MOs = getManagedObjects(context);
      ManagedDeployment md = mgtDeploymentCreator.build(unit, MOs, parent);
      for (DeploymentContext childContext : context.getChildren())
      {
         processManagedDeployment(childContext, md);
      }
   }
View Full Code Here

Examples of org.jboss.managed.api.ManagedDeployment

      if (mgtDeploymentCreator == null)
         throw new IllegalArgumentException("Null managed deployment creator.");

      DeploymentContext context = getDeploymentContext(name, true);
      Map<String, ManagedObject> rootMOs = getManagedObjects(context);
      ManagedDeployment root = mgtDeploymentCreator.build(context.getDeploymentUnit(), rootMOs, null);
      for (DeploymentContext childContext : context.getChildren())
      {
         processManagedDeployment(childContext, root);
      }
      return root;
View Full Code Here

Examples of org.jboss.managed.api.ManagedDeployment

      if (mgtDeploymentCreator == null)
         throw new IllegalArgumentException("Null managed deployment creator.");

      DeploymentUnit unit = context.getDeploymentUnit();
      Map<String, ManagedObject> MOs = getManagedObjects(context);
      ManagedDeployment md = mgtDeploymentCreator.build(unit, MOs, parent);
      for (DeploymentContext childContext : context.getChildren())
      {
         processManagedDeployment(childContext, md);
      }
   }
View Full Code Here

Examples of org.jboss.managed.api.ManagedDeployment

      if (mgtDeploymentCreator == null)
         throw new IllegalArgumentException("Null managed deployment creator.");

      DeploymentContext context = getDeploymentContext(name, true);
      Map<String, ManagedObject> rootMOs = getManagedObjects(context);
      ManagedDeployment root = mgtDeploymentCreator.build(context.getDeploymentUnit(), rootMOs, null);
      for (DeploymentContext childContext : context.getChildren())
      {
         processManagedDeployment(childContext, root);
      }
      return root;
View Full Code Here

Examples of org.jboss.managed.api.ManagedDeployment

      if (mgtDeploymentCreator == null)
         throw new IllegalArgumentException("Null managed deployment creator.");

      DeploymentUnit unit = context.getDeploymentUnit();
      Map<String, ManagedObject> MOs = getManagedObjects(context);
      ManagedDeployment md = mgtDeploymentCreator.build(unit, MOs, parent);
      for (DeploymentContext childContext : context.getChildren())
      {
         processManagedDeployment(childContext, md);
      }
   }
View Full Code Here

Examples of org.jboss.managed.api.ManagedDeployment

      if (mgtDeploymentCreator == null)
         throw new IllegalArgumentException("Null managed deployment creator.");

      DeploymentContext context = getDeploymentContext(name, true);
      Map<String, ManagedObject> rootMOs = getManagedObjects(context);
      ManagedDeployment root = mgtDeploymentCreator.build(context.getDeploymentUnit(), rootMOs, null);
      for (DeploymentContext childContext : context.getChildren())
      {
         processManagedDeployment(childContext, root);
      }
      return root;
View Full Code Here

Examples of org.jboss.managed.api.ManagedDeployment

      if (mgtDeploymentCreator == null)
         throw new IllegalArgumentException("Null managed deployment creator.");

      DeploymentUnit unit = context.getDeploymentUnit();
      Map<String, ManagedObject> MOs = getManagedObjects(context);
      ManagedDeployment md = mgtDeploymentCreator.build(unit, MOs, parent);
      for (DeploymentContext childContext : context.getChildren())
      {
         processManagedDeployment(childContext, md);
      }
   }
View Full Code Here

Examples of org.jboss.managed.api.ManagedDeployment

            {
               try
               {
                  try
                  {
                     ManagedDeployment md = getManagedDeployment(deployment);
                     processRootManagedDeployment(md, key, trace);

                     // TODO update profileservice-spi
                     // Cache the deployment types
                     if(md.getTypes() != null && md.getTypes().isEmpty() == false)
                        ((AbstractProfileDeployment)deployment)
                           .addTransientAttachment(KnownDeploymentTypes.class.getName(), md.getTypes());
                  }
                  catch(DeploymentException e)
                  {
                     // FIXME Assume a undeployed (stopped) deployment
                     String deploymentName = deployment.getName();
                     ManagedDeployment md = new ManagedDeploymentImpl(deploymentName,
                           deployment.getRoot().getName());

                     // TODO update profileservice-spi
                     // Try to get the cached deployment type
                     Collection<String> deploymentTypes = (Collection<String>) ((AbstractProfileDeployment)deployment)
                           .getTransientAttachment(KnownDeploymentTypes.class.getName());

                     if(deploymentTypes != null)
                     {
                        md.setTypes(new HashSet<String>(deploymentTypes));
                     }
                     else
                     {
                        int i = deploymentName.lastIndexOf(".");
                        if(i != -1 && (i + 1) < deploymentName.length())
                        {
                           String guessedType = deploymentName.substring(i + 1, deploymentName.length());
                           if(guessedType.endsWith("/"))
                              guessedType = guessedType.substring(0, guessedType.length() -1 );
                           md.setTypes(new HashSet<String>(1));
                           md.addType(guessedType);
                        }
                     }

                     processManagedDeployment(md, key, DeploymentState.STOPPED, 0, trace);
                  }
View Full Code Here

Examples of org.jboss.managed.api.ManagedDeployment

   {
      if(name == null)
         throw new IllegalArgumentException("Null deployment name");

      // Resolve internally.
      ManagedDeployment md = this.managedDeployments.get(name);
      if (md == null)
      {
         // Check the bootstrap deployments
         md = this.bootstrapManagedDeployments.get(name);
      }
View Full Code Here

Examples of org.jboss.managed.api.ManagedDeployment

   {
      Set<String> names = getDeploymentNamesForType(type);
      HashSet<ManagedDeployment> mds = new HashSet<ManagedDeployment>();
      for(String name : names)
      {
         ManagedDeployment md = getDeployment(name);
         mds.add(md);
      }
      return mds;
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.