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

Examples of org.jboss.deployers.spi.management.deploy.DeploymentProgress.run()


               assertTrue("resolve repsoitory names",
                     Arrays.asList(getDeploymentManager().getRepositoryNames(names)).containsAll(deploymentNames));
              
              
               DeploymentProgress start = getDeploymentManager().start(deploymentNames.toArray(new String[ deploymentNames.size()]));
               start.run();
               if(checkStarted)
                  checkProgress(start);

               staticLog.info("Deployed package: " + deploymentNames);
            }
View Full Code Here


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

         {
            if (jarNames == null)
               return;

            DeploymentProgress stop = getDeploymentManager().stop(deploymentNames.toArray(new String[ deploymentNames.size()]));
            stop.run();
            checkProgress(stop);

            DeploymentProgress undeploy = getDeploymentManager().remove(deploymentNames.toArray(new String[ deploymentNames.size()]));
            undeploy.run();
            checkProgress(undeploy);
View Full Code Here

            DeploymentProgress stop = getDeploymentManager().stop(deploymentNames.toArray(new String[ deploymentNames.size()]));
            stop.run();
            checkProgress(stop);

            DeploymentProgress undeploy = getDeploymentManager().remove(deploymentNames.toArray(new String[ deploymentNames.size()]));
            undeploy.run();
            checkProgress(undeploy);

            this.mv.load();
            for(String deploymentName : deploymentNames)
            {
View Full Code Here

      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

  
   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

  
   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

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

      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);
View Full Code Here

      String[] uploadedNames = distribute.getDeploymentID().getRepositoryNames();
      assertNotNull(uploadedNames);

      // Start
      DeploymentProgress start = deployMgr.start(uploadedNames);
      start.run();
      // Return the start deployment progress
      return start;
   }
  
   DeploymentProgress distributeAndStart(String deploymentName, DeploymentOption... options) throws Exception
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.