Package org.jboss.deployers.spi.management.deploy

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


   {
      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

   }
  
   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

      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

      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

      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

      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

      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

   {
      // 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

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

      // Distribute
      DeploymentProgress distribute = deployMgr.distribute(deploymentName,
            getDeployURL(deployment), options);
      distribute.run();
      // Distribute always has to complete
      assertComplete(distribute);
      // check if the app is stopped
      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

Related Classes of org.jboss.deployers.spi.management.deploy.DeploymentProgress

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.