tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jsdelf...@apache.org
Subject svn commit: r643318 - in /incubator/tuscany/java/sca/modules/workspace-admin/src/main: java/org/apache/tuscany/sca/workspace/admin/impl/DeployedCompositeCollectionImpl.java resources/DomainManager.composite resources/cloud.html
Date Tue, 01 Apr 2008 08:21:50 GMT
Author: jsdelfino
Date: Tue Apr  1 01:21:41 2008
New Revision: 643318

URL: http://svn.apache.org/viewvc?rev=643318&view=rev
Log:
Fix for TUSCANY-2178. Minor change, perform the action to stop a node before deleting it in
the server side component instead of scripting that from the Javascript client.

Modified:
    incubator/tuscany/java/sca/modules/workspace-admin/src/main/java/org/apache/tuscany/sca/workspace/admin/impl/DeployedCompositeCollectionImpl.java
    incubator/tuscany/java/sca/modules/workspace-admin/src/main/resources/DomainManager.composite
    incubator/tuscany/java/sca/modules/workspace-admin/src/main/resources/cloud.html

Modified: incubator/tuscany/java/sca/modules/workspace-admin/src/main/java/org/apache/tuscany/sca/workspace/admin/impl/DeployedCompositeCollectionImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/workspace-admin/src/main/java/org/apache/tuscany/sca/workspace/admin/impl/DeployedCompositeCollectionImpl.java?rev=643318&r1=643317&r2=643318&view=diff
==============================================================================
--- incubator/tuscany/java/sca/modules/workspace-admin/src/main/java/org/apache/tuscany/sca/workspace/admin/impl/DeployedCompositeCollectionImpl.java
(original)
+++ incubator/tuscany/java/sca/modules/workspace-admin/src/main/java/org/apache/tuscany/sca/workspace/admin/impl/DeployedCompositeCollectionImpl.java
Tue Apr  1 01:21:41 2008
@@ -100,6 +100,9 @@
     
     @Reference
     public LocalItemCollection deployableCollection;
+    
+    @Reference(required=false)
+    public LocalItemCollection processCollection;
 
     private ModelFactoryExtensionPoint modelFactories;
     private AssemblyFactory assemblyFactory;
@@ -295,6 +298,11 @@
         
         String contributionURI = contributionURI(key);
         QName qname = compositeQName(key);
+        
+        // Delete/stop the corresponding process, if any
+        try {
+            processCollection.delete(qname.getLocalPart());
+        } catch (Exception e) {}
         
         // Delete a composite from the composite collection
         Composite compositeCollection = readCompositeCollection();

Modified: incubator/tuscany/java/sca/modules/workspace-admin/src/main/resources/DomainManager.composite
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/workspace-admin/src/main/resources/DomainManager.composite?rev=643318&r1=643317&r2=643318&view=diff
==============================================================================
--- incubator/tuscany/java/sca/modules/workspace-admin/src/main/resources/DomainManager.composite
(original)
+++ incubator/tuscany/java/sca/modules/workspace-admin/src/main/resources/DomainManager.composite
Tue Apr  1 01:21:41 2008
@@ -136,6 +136,7 @@
    	 		<t:binding.http uri="http://localhost:9990/cloud-source"/>
    		</service>
         <reference name="deployableCollection" target="DeployableCompositeCollectionComponent/LocalItemCollection"/>
+        <reference name="processCollection" target="NodeProcessCollectionFacadeComponent/LocalItemCollection"/>
     </component>
 
     <component name="CompositeImageCollectionComponent">

Modified: incubator/tuscany/java/sca/modules/workspace-admin/src/main/resources/cloud.html
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/workspace-admin/src/main/resources/cloud.html?rev=643318&r1=643317&r2=643318&view=diff
==============================================================================
--- incubator/tuscany/java/sca/modules/workspace-admin/src/main/resources/cloud.html (original)
+++ incubator/tuscany/java/sca/modules/workspace-admin/src/main/resources/cloud.html Tue Apr
 1 01:21:41 2008
@@ -116,8 +116,6 @@
 		var composites  = array(document.cloudCompositeForm.composites);
 		for (var i = 0; i < composites.length; i++) {
 			if (composites[i].checked) {
-			    var id = nodeNames[i];
-				processCollection.del(id, stopCompositeResponse);
 			    var id = composites[i].value;
 				cloudComposite.del(id, deleteCompositeResponse);
 			}



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org


Mime
View raw message