Author: chathuri
Date: Mon Jan 14 22:17:43 2013
New Revision: 1433173

URL: http://svn.apache.org/viewvc?rev=1433173&view=rev
Log:
replace saveHostDescriptor with addHostDescriptor

Modified:
    
airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/interpretor/WorkflowInterpretorSkeleton.java

Modified: 
airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/interpretor/WorkflowInterpretorSkeleton.java
URL: 
http://svn.apache.org/viewvc/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/interpretor/WorkflowInterpretorSkeleton.java?rev=1433173&r1=1433172&r2=1433173&view=diff
==============================================================================
--- 
airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/interpretor/WorkflowInterpretorSkeleton.java
 (original)
+++ 
airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/interpretor/WorkflowInterpretorSkeleton.java
 Mon Jan 14 22:17:43 2013
@@ -44,6 +44,7 @@ import javax.xml.stream.XMLStreamReader;
 import org.apache.airavata.client.AiravataAPIFactory;
 import org.apache.airavata.client.api.AiravataAPI;
 import org.apache.airavata.client.api.AiravataAPIInvocationException;
+import org.apache.airavata.client.api.DescriptorRecordAlreadyExistsException;
 import org.apache.airavata.client.stub.interpretor.NameValue;
 import org.apache.airavata.client.tools.PeriodicExecutorThread;
 import org.apache.airavata.common.exception.ApplicationSettingsException;
@@ -166,12 +167,14 @@ public class WorkflowInterpretorSkeleton
                                 AiravataAPI registry = getAiravataAPI();
                                                                
if(!registry.getApplicationManager().isHostDescriptorExists(host.getType().getHostName())){
                                     log.debug("Saving the predefined Host: " + 
host.getType().getHostName());
-                                    
registry.getApplicationManager().saveHostDescription(host);
+                                    
registry.getApplicationManager().addHostDescription(host);
                                 }
                             }
                                } catch (AiravataAPIInvocationException e) {
                                    e.printStackTrace();
-                               }
+                               } catch (DescriptorRecordAlreadyExistsException 
e) {
+                            e.printStackTrace();
+                        }
                     }else{
                                provenance = false;
                            }


Reply via email to