You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by he...@apache.org on 2012/10/18 21:44:00 UTC

svn commit: r1399816 - /airavata/trunk/modules/gfac-core/src/main/java/org/apache/airavata/core/gfac/provider/utils/GramRSLGenerator.java

Author: heshan
Date: Thu Oct 18 19:44:00 2012
New Revision: 1399816

URL: http://svn.apache.org/viewvc?rev=1399816&view=rev
Log:
Fix for AIRAVATA-595.

Modified:
    airavata/trunk/modules/gfac-core/src/main/java/org/apache/airavata/core/gfac/provider/utils/GramRSLGenerator.java

Modified: airavata/trunk/modules/gfac-core/src/main/java/org/apache/airavata/core/gfac/provider/utils/GramRSLGenerator.java
URL: http://svn.apache.org/viewvc/airavata/trunk/modules/gfac-core/src/main/java/org/apache/airavata/core/gfac/provider/utils/GramRSLGenerator.java?rev=1399816&r1=1399815&r2=1399816&view=diff
==============================================================================
--- airavata/trunk/modules/gfac-core/src/main/java/org/apache/airavata/core/gfac/provider/utils/GramRSLGenerator.java (original)
+++ airavata/trunk/modules/gfac-core/src/main/java/org/apache/airavata/core/gfac/provider/utils/GramRSLGenerator.java Thu Oct 18 19:44:00 2012
@@ -49,7 +49,7 @@ public class GramRSLGenerator {
     protected static final Logger log = LoggerFactory.getLogger(GramRSLGenerator.class);
 
     private enum JobType {
-        SINGLE, MPI, MULTIPLE, CONDOR
+        SERIAL, SINGLE, MPI, MULTIPLE, CONDOR
     }
 
     ;
@@ -189,6 +189,9 @@ public class GramRSLGenerator {
         if (jobType.equalsIgnoreCase(JobType.SINGLE.toString())) {
             log.info("Setting job type to single");
             jobAttr.setJobType(GramAttributes.JOBTYPE_SINGLE);
+        } if (jobType.equalsIgnoreCase(JobType.SERIAL.toString())) {
+            log.info("Setting job type to single");
+            jobAttr.setJobType(GramAttributes.JOBTYPE_SINGLE);
         } else if (jobType.equalsIgnoreCase(JobType.MPI.toString())) {
             log.info("Setting job type to mpi");
             jobAttr.setJobType(GramAttributes.JOBTYPE_MPI);