Examples of DeploymentProgress


Examples of org.jboss.deployers.spi.management.deploy.DeploymentProgress

   {
      final String deploymentName = getName() + ".ear";
      try
      {
         //
         DeploymentProgress start = distributeAndStart(NESTED_DEPLOYMENT, deploymentName, true, true);
         assertComplete(start);
         for(int i = 0; i < 5; i++)
         {
            // disable stopped check, as it was started before
            start = distributeAndStart(NESTED_DEPLOYMENT, deploymentName, true, false);
            assertComplete(start);
            assertDeploymentState(start.getDeploymentID(), DeploymentState.STARTED);

            Thread.sleep(5);
           
            redeployCheckComplete(deploymentName);
         }
View Full Code Here

Examples of org.jboss.deployers.spi.management.deploy.DeploymentProgress

         // Test exploded
         distributeAndStart(NESTED_DEPLOYMENT, deploymentName,
               new DeploymentOption[] { DeploymentOption.Explode});

         // Test fail if exists
         DeploymentProgress override = getDeploymentManager().distribute(deploymentName,
               getDeployURL(NESTED_DEPLOYMENT),
               new DeploymentOption[] { DeploymentOption.FailIfExists});
         override.run();
         assertFailed(override);
      }
      catch(Exception e)
      {
         log.error("Failed ", e);
View Full Code Here

Examples of org.jboss.deployers.spi.management.deploy.DeploymentProgress

   {
      final String deploymentName = getName() + ".ear";
      getDeploymentManager().loadProfile(deployersKey);
      try
      {
         DeploymentProgress start = distributeAndStart(NESTED_DEPLOYMENT, deploymentName, true, false);
         String deployed = start.getDeploymentID().getRepositoryNames()[0];
        
         // Delete the file manually
         VirtualFile f = VFS.getChild(new URI(deployed));
         assertTrue(deployed, f.exists());
         assertTrue("deleted " + deployed, f.delete());
View Full Code Here

Examples of org.jboss.deployers.spi.management.deploy.DeploymentProgress

   }
  
   protected String[] distribute(DeploymentManager deployMgr, String name, URL contentURL)
      throws Exception
   {
      DeploymentProgress progress = deployMgr.distribute(name, contentURL, true);
      getLog().debug("distribute: "+ contentURL);
      progress.addProgressListener(this);
      progress.run();
     
      assertCompleted(progress.getDeploymentStatus());
     
      return progress.getDeploymentID().getRepositoryNames();
   }
View Full Code Here

Examples of org.jboss.deployers.spi.management.deploy.DeploymentProgress

      return progress.getDeploymentID().getRepositoryNames();
   }
  
   protected void start(DeploymentManager deployMgr, String[] repositoryNames) throws Exception
   {
      DeploymentProgress progress = deployMgr.start(repositoryNames);
      progress.addProgressListener(this);
      progress.run();
     
      DeploymentStatus status = progress.getDeploymentStatus();
      assertCompleted(status);
   }
View Full Code Here

Examples of org.jboss.deployers.spi.management.deploy.DeploymentProgress

      assertCompleted(status);
   }
  
   protected void stop(DeploymentManager deployMgr, String[] repositoryNames) throws Exception
   {
      DeploymentProgress progress = deployMgr.stop(repositoryNames);
      progress.addProgressListener(this);
      progress.run();
     
      DeploymentStatus status = progress.getDeploymentStatus();
      assertCompleted(status);
   }
View Full Code Here

Examples of org.jboss.deployers.spi.management.deploy.DeploymentProgress

      assertCompleted(status);
   }
  
   protected void undeploy(DeploymentManager deployMgr, String[] repositoryNames) throws Exception
   {
      DeploymentProgress progress = deployMgr.remove(repositoryNames);
      progress.addProgressListener(this);
      progress.run();
     
      assertCompleted(progress.getDeploymentStatus());
   }
View Full Code Here

Examples of org.jboss.deployers.spi.management.deploy.DeploymentProgress

      super(name);
   }
   void deployFailed(boolean isCopyContent) throws Exception
   {
      DeploymentProgress start = distributeAndStart(FAILING_DEPLOYMENT, isCopyContent);
      assertFailed(start);
      // Failed deployment, deployed through the deployment manager should get undeployed
      // if the actual start fails.
      assertDeploymentState(start.getDeploymentID(), DeploymentState.STOPPED);
   }
View Full Code Here

Examples of org.jboss.deployers.spi.management.deploy.DeploymentProgress

      assertDeploymentState(start.getDeploymentID(), DeploymentState.STOPPED);
   }

   void deployEmpty(boolean isCopyContent) throws Exception
   {
      DeploymentProgress start = distributeAndStart(EMTPY_DEPLOYMENT, isCopyContent);
      assertComplete(start);
      assertDeploymentState(start.getDeploymentID(), DeploymentState.STARTED);
   }
View Full Code Here

Examples of org.jboss.deployers.spi.management.deploy.DeploymentProgress

   {
      // The deployment manager
      DeploymentManager deployMgr = getDeploymentManager();

      // Distribute
      DeploymentProgress distribute = deployMgr.distribute(deploymentName,
            getDeployURL(deployment), copyContent);
      distribute.run();
      // Distribute always has to complete
      assertComplete(distribute);
      // check if the app is stopped
      if(checkStopped)
         assertDeploymentState(distribute.getDeploymentID(), DeploymentState.STOPPED);

      // Get the repository names
      String[] uploadedNames = distribute.getDeploymentID().getRepositoryNames();
      assertNotNull(uploadedNames);

      // Start
      DeploymentProgress start = deployMgr.start(uploadedNames);
      start.run();
      // Return the start deployment progress
      return start;
   }
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.