airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chath...@apache.org
Subject svn commit: r1489035 - /airavata/trunk/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/impl/AiravataJPARegistry.java
Date Mon, 03 Jun 2013 15:42:26 GMT
Author: chathuri
Date: Mon Jun  3 15:42:25 2013
New Revision: 1489035

URL: http://svn.apache.org/r1489035
Log:
updating JPA impl class

Modified:
    airavata/trunk/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/impl/AiravataJPARegistry.java

Modified: airavata/trunk/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/impl/AiravataJPARegistry.java
URL: http://svn.apache.org/viewvc/airavata/trunk/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/impl/AiravataJPARegistry.java?rev=1489035&r1=1489034&r2=1489035&view=diff
==============================================================================
--- airavata/trunk/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/impl/AiravataJPARegistry.java
(original)
+++ airavata/trunk/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/impl/AiravataJPARegistry.java
Mon Jun  3 15:42:25 2013
@@ -2268,7 +2268,7 @@ public class AiravataJPARegistry extends
 
 	private void setupValues(ApplicationJob job, GFacJobDataResource gfacJob) {
 		gfacJob.setApplicationDescID(job.getApplicationDescriptionId());
-		gfacJob.setCompletedTime(new Timestamp(job.getStatusUpdateTime().getTime()));
+		gfacJob.setStatusUpdateTime(new Timestamp(job.getStatusUpdateTime().getTime()));
 		gfacJob.setHostDescID(job.getHostDescriptionId());
 		gfacJob.setJobData(job.getJobData());
 		gfacJob.setMetadata(job.getMetadata());
@@ -2302,7 +2302,7 @@ public class AiravataJPARegistry extends
 			throws RegistryException {
 		GFacJobDataResource gFacJob = validateAndGetGFacJob(gfacJobId);
 		gFacJob.setStatus(status.toString());
-		gFacJob.setCompletedTime(new Timestamp(statusUpdateTime.getTime()));
+		gFacJob.setStatusUpdateTime(new Timestamp(statusUpdateTime.getTime()));
 		gFacJob.save();
 	}
 
@@ -2326,7 +2326,7 @@ public class AiravataJPARegistry extends
 	public void updateApplicationJobStatusUpdateTime(String gfacJobId, Date completed)
 			throws RegistryException {
 		GFacJobDataResource gFacJob = validateAndGetGFacJob(gfacJobId);
-		gFacJob.setCompletedTime(new Timestamp(completed.getTime()));
+		gFacJob.setStatusUpdateTime(new Timestamp(completed.getTime()));
 		gFacJob.save();
 	}
 
@@ -2348,7 +2348,7 @@ public class AiravataJPARegistry extends
 
 	private void setupValues(GFacJobDataResource gfacJob, ApplicationJob job) {
 		job.setApplicationDescriptionId(gfacJob.getApplicationDescID());
-		job.setStatusUpdateTime(gfacJob.getCompletedTime());
+		job.setStatusUpdateTime(gfacJob.getStatusUpdateTime());
 		job.setExperimentId(gfacJob.getExperimentDataResource().getExperimentID());
 		job.setHostDescriptionId(gfacJob.getHostDescID());
 		job.setJobData(gfacJob.getJobData());



Mime
View raw message