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

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


   {
      // stop the resource deployment.
      DeploymentManager manager = super.getDeploymentManager();
      DeploymentProgress progress = manager.stop(resourceName);
      progress.addProgressListener(this.listener);
      progress.run();

      // undeploy the resource.
      progress = manager.remove(resourceName);
      progress.addProgressListener(this.listener);
      progress.run();
View Full Code Here


      progress.run();

      // undeploy the resource.
      progress = manager.remove(resourceName);
      progress.addProgressListener(this.listener);
      progress.run();
   }

   /**
    * <p>
    * Simple {@code ProgressListener} that logs progress events.
View Full Code Here

      getLog().debug(contentURL);

      DeploymentStatus status;
      DeploymentProgress progress = deployMgr.distribute(name, contentURL, true);
      progress.addProgressListener(this);
      progress.run();
      String[] uploadedNames = {};
      try
      {
         status = progress.getDeploymentStatus();
         assertTrue("DeploymentStatus.isCompleted: " + status, status.isCompleted());
View Full Code Here

         getLog().debug("Uploaded deployment names: "+Arrays.asList(uploadedNames));
        
         // Now start the deployment
         progress = deployMgr.start(uploadedNames);
         progress.addProgressListener(this);
         progress.run();
         try
         {
            status = progress.getDeploymentStatus();
            assertTrue("DeploymentStatus.isCompleted: " + status, status.isCompleted());
            assertFalse("DeploymentStatus.isRunning: " + status, status.isRunning());
View Full Code Here

            //Thread.sleep(15 * 1000); // 15 secs >> more than it takes for reaper to run :-)

            // Stop/remove the deployment
            progress = deployMgr.stop(uploadedNames);
            progress.addProgressListener(this);
            progress.run();
            status = progress.getDeploymentStatus();
            assertTrue("DeploymentStatus.isCompleted: " + status, status.isCompleted());
            assertFalse("DeploymentStatus.isFailed: " + status, status.isFailed());
         }
      }
View Full Code Here

      }
      finally
      {
         progress = deployMgr.remove(uploadedNames);
         progress.addProgressListener(this);
         progress.run();
         status = progress.getDeploymentStatus();
         assertTrue("DeploymentStatus.isCompleted: " + status, status.isCompleted());
         assertFalse("DeploymentStatus.isFailed: " + status, status.isFailed());
      }
   }
View Full Code Here

   }
  
   protected String[] distribute(String name, URL url) throws Exception
   {
      DeploymentProgress progress = this.deploymentMgr.distribute(name, url, true);
      progress.run();
     
      //
      checkComplete(progress);
     
      return progress.getDeploymentID().getRepositoryNames();     
View Full Code Here

   }
   protected void start(String[] names) throws Exception
   {
      DeploymentProgress progress = this.deploymentMgr.start(names);
      progress.run();
     
      checkComplete(progress);
   }
  
   protected void stop(String[] names) throws Exception
View Full Code Here

   }
  
   protected void stop(String[] names) throws Exception
   {
      DeploymentProgress progress = this.deploymentMgr.stop(names);
      progress.run();
     
      checkComplete(progress);     
   }
  
   protected void remove(String[] names) throws Exception
View Full Code Here

   }
  
   protected void remove(String[] names) throws Exception
   {
      DeploymentProgress progress = this.deploymentMgr.remove(names);
      progress.run();
     
      checkComplete(progress);     
   }
  
   protected void checkComplete(DeploymentProgress progress) 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.