airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From samin...@apache.org
Subject svn commit: r1486065 - in /airavata/trunk/modules: airavata-client/src/main/java/org/apache/airavata/client/api/exception/ registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/resources/
Date Fri, 24 May 2013 14:12:19 GMT
Author: samindaw
Date: Fri May 24 14:12:19 2013
New Revision: 1486065

URL: http://svn.apache.org/r1486065
Log:
avoid logging exception

Modified:
    airavata/trunk/modules/airavata-client/src/main/java/org/apache/airavata/client/api/exception/AiravataAPIInvocationException.java
    airavata/trunk/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/resources/ExperimentDataResource.java

Modified: airavata/trunk/modules/airavata-client/src/main/java/org/apache/airavata/client/api/exception/AiravataAPIInvocationException.java
URL: http://svn.apache.org/viewvc/airavata/trunk/modules/airavata-client/src/main/java/org/apache/airavata/client/api/exception/AiravataAPIInvocationException.java?rev=1486065&r1=1486064&r2=1486065&view=diff
==============================================================================
--- airavata/trunk/modules/airavata-client/src/main/java/org/apache/airavata/client/api/exception/AiravataAPIInvocationException.java
(original)
+++ airavata/trunk/modules/airavata-client/src/main/java/org/apache/airavata/client/api/exception/AiravataAPIInvocationException.java
Fri May 24 14:12:19 2013
@@ -21,26 +21,24 @@
 
 package org.apache.airavata.client.api.exception;
 
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
 
 public class AiravataAPIInvocationException extends Exception {
-	private static final Logger log = LoggerFactory.getLogger(AiravataAPIInvocationException.class);
+	//private static final Logger log = LoggerFactory.getLogger(AiravataAPIInvocationException.class);
 
 	private static final long serialVersionUID = 1L;
 
 	public AiravataAPIInvocationException(Throwable e) {
 		super(e.getLocalizedMessage(), e);
-		log.error(e.getLocalizedMessage(),e);
+		//log.error(e.getLocalizedMessage(),e);
 	}
 	public AiravataAPIInvocationException(String message) {
 		super(message, null);
-		log.error(message);
+		//log.error(message);
 	}
 
 	public AiravataAPIInvocationException(String message, Throwable e) {
 		super(message, e);
-		log.error(message,e);
+		//log.error(message,e);
 	}
 
 }

Modified: airavata/trunk/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/resources/ExperimentDataResource.java
URL: http://svn.apache.org/viewvc/airavata/trunk/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/resources/ExperimentDataResource.java?rev=1486065&r1=1486064&r2=1486065&view=diff
==============================================================================
--- airavata/trunk/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/resources/ExperimentDataResource.java
(original)
+++ airavata/trunk/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/resources/ExperimentDataResource.java
Fri May 24 14:12:19 2013
@@ -264,6 +264,10 @@ public class ExperimentDataResource exte
 		return isExists(ResourceType.WORKFLOW_DATA, workflowInstanceId);
     }
     
+    public boolean isGFacJobPresent(String jobId){
+		return isExists(ResourceType.GFAC_JOB_DATA, jobId);
+    }
+    
     public boolean isExperimentMetadataPresent(){
 		return isExists(ResourceType.EXPERIMENT_METADATA, getExperimentID());
     }
@@ -286,6 +290,12 @@ public class ExperimentDataResource exte
     	return r;
     }
     
+    public GFacJobDataResource createGFacJob(String jobID){
+    	GFacJobDataResource r=(GFacJobDataResource)create(ResourceType.GFAC_JOB_DATA);
+    	r.setLocalJobID(jobID);
+    	return r;
+    }
+    
     public ExperimentMetadataResource createExperimentMetadata(){
     	return (ExperimentMetadataResource)create(ResourceType.EXPERIMENT_METADATA);
     }



Mime
View raw message