You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by pa...@apache.org on 2011/10/24 21:34:14 UTC

svn commit: r1188324 - /incubator/airavata/trunk/modules/gfac-core/src/main/java/org/apache/airavata/core/gfac/scheduler/impl/SchedulerImpl.java

Author: patanachai
Date: Mon Oct 24 19:34:14 2011
New Revision: 1188324

URL: http://svn.apache.org/viewvc?rev=1188324&view=rev
Log:
Airavata-170 fix build error

Modified:
    incubator/airavata/trunk/modules/gfac-core/src/main/java/org/apache/airavata/core/gfac/scheduler/impl/SchedulerImpl.java

Modified: incubator/airavata/trunk/modules/gfac-core/src/main/java/org/apache/airavata/core/gfac/scheduler/impl/SchedulerImpl.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/modules/gfac-core/src/main/java/org/apache/airavata/core/gfac/scheduler/impl/SchedulerImpl.java?rev=1188324&r1=1188323&r2=1188324&view=diff
==============================================================================
--- incubator/airavata/trunk/modules/gfac-core/src/main/java/org/apache/airavata/core/gfac/scheduler/impl/SchedulerImpl.java (original)
+++ incubator/airavata/trunk/modules/gfac-core/src/main/java/org/apache/airavata/core/gfac/scheduler/impl/SchedulerImpl.java Mon Oct 24 19:34:14 2011
@@ -25,11 +25,6 @@ import java.net.UnknownHostException;
 import java.util.Iterator;
 import java.util.List;
 
-import javax.jcr.PathNotFoundException;
-
-import org.apache.airavata.registry.api.Registry;
-import org.apache.airavata.registry.api.exception.DeploymentDescriptionRetrieveException;
-import org.apache.airavata.registry.api.exception.ServiceDescriptionRetrieveException;
 import org.apache.airavata.commons.gfac.type.ApplicationDeploymentDescription;
 import org.apache.airavata.commons.gfac.type.HostDescription;
 import org.apache.airavata.commons.gfac.type.ServiceDescription;
@@ -41,6 +36,8 @@ import org.apache.airavata.core.gfac.pro
 import org.apache.airavata.core.gfac.provider.impl.LocalProvider;
 import org.apache.airavata.core.gfac.scheduler.Scheduler;
 import org.apache.airavata.core.gfac.utils.GfacUtils;
+import org.apache.airavata.registry.api.Registry;
+import org.apache.airavata.registry.api.exception.RegistryException;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
@@ -61,11 +58,7 @@ public class SchedulerImpl implements Sc
         ServiceDescription serviceDesc = null;
         try {
             serviceDesc = registryService.getServiceDescription(context.getServiceName());
-        } catch (PathNotFoundException e2) {
-            // TODO Auto-generated catch block
-            e2.printStackTrace();
-        } catch (ServiceDescriptionRetrieveException e2) {
-            // TODO Auto-generated catch block
+        } catch (RegistryException e2) {
             e2.printStackTrace();
         }
 
@@ -88,12 +81,8 @@ public class SchedulerImpl implements Sc
         ApplicationDeploymentDescription app = null;
         try {
             app = registryService.getDeploymentDescription(context.getServiceName(), host.getId());
-        } catch (PathNotFoundException e1) {
-            // TODO Auto-generated catch block
-            e1.printStackTrace();
-        } catch (DeploymentDescriptionRetrieveException e1) {
-            // TODO Auto-generated catch block
-            e1.printStackTrace();
+        } catch (RegistryException e2) {
+            e2.printStackTrace();
         }
 
         if (app == null)