[teiid-commits] teiid SVN: r2702 - branches/7.1.x/console/src/main/java/org/teiid/rhq/plugin.

teiid-commits at lists.jboss.org teiid-commits at lists.jboss.org
Wed Nov 3 13:55:20 EDT 2010


Author: tejones
Date: 2010-11-03 13:55:20 -0400 (Wed, 03 Nov 2010)
New Revision: 2702

Modified:
   branches/7.1.x/console/src/main/java/org/teiid/rhq/plugin/Facet.java
Log:
TEIID-1340: Changed from component name to deployment URL when looking of the deployment to remove.

Modified: branches/7.1.x/console/src/main/java/org/teiid/rhq/plugin/Facet.java
===================================================================
--- branches/7.1.x/console/src/main/java/org/teiid/rhq/plugin/Facet.java	2010-11-03 15:52:58 UTC (rev 2701)
+++ branches/7.1.x/console/src/main/java/org/teiid/rhq/plugin/Facet.java	2010-11-03 17:55:20 UTC (rev 2702)
@@ -398,23 +398,23 @@
 
 		DeploymentManager deploymentManager = getConnection()
 				.getDeploymentManager();
-
-		log.debug("Stopping deployment [" + this.deploymentName + "]..."); //$NON-NLS-1$ //$NON-NLS-2$
+		
+		log.debug("Stopping deployment [" + this.deploymentUrl + "]..."); //$NON-NLS-1$ //$NON-NLS-2$
 		DeploymentProgress progress = deploymentManager
-				.stop(this.deploymentName);
+				.stop(this.deploymentUrl);
 		DeploymentStatus stopStatus = DeploymentUtils.run(progress);
 		if (stopStatus.isFailed()) {
-			log.error("Failed to stop deployment '" + this.deploymentName //$NON-NLS-1$
+			log.error("Failed to stop deployment '" + this.deploymentUrl //$NON-NLS-1$
 					+ "'.", stopStatus.getFailure()); //$NON-NLS-1$
 			throw new Exception("Failed to stop deployment '" //$NON-NLS-1$
 					+ this.deploymentName + "' - cause: " //$NON-NLS-1$
 					+ stopStatus.getFailure());
 		}
-		log.debug("Removing deployment [" + this.deploymentName + "]..."); //$NON-NLS-1$ //$NON-NLS-2$
-		progress = deploymentManager.remove(this.deploymentName);
+		log.debug("Removing deployment [" + this.deploymentUrl + "]..."); //$NON-NLS-1$ //$NON-NLS-2$
+		progress = deploymentManager.remove(this.deploymentUrl);
 		DeploymentStatus removeStatus = DeploymentUtils.run(progress);
 		if (removeStatus.isFailed()) {
-			log.error("Failed to remove deployment '" + this.deploymentName //$NON-NLS-1$
+			log.error("Failed to remove deployment '" + this.deploymentUrl //$NON-NLS-1$
 					+ "'.", removeStatus.getFailure()); //$NON-NLS-1$
 			throw new Exception("Failed to remove deployment '" //$NON-NLS-1$
 					+ this.deploymentName + "' - cause: " //$NON-NLS-1$



More information about the teiid-commits mailing list