Repository: airavata
Updated Branches:
  refs/heads/thrift-0.10.0-upgrade 39fba1f58 -> 8e7756608 (forced update)


http://git-wip-us.apache.org/repos/asf/airavata/blob/8e775660/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/job/JobModel.java
----------------------------------------------------------------------
diff --git 
a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/job/JobModel.java
 
b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/job/JobModel.java
index 9553b0c..508709a 100644
--- 
a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/job/JobModel.java
+++ 
b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/job/JobModel.java
@@ -16,42 +16,15 @@
  */
 
 /**
- * Autogenerated by Thrift Compiler (0.9.3)
+ * Autogenerated by Thrift Compiler (0.10.0)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.airavata.model.job;
 
-import org.apache.thrift.scheme.IScheme;
-import org.apache.thrift.scheme.SchemeFactory;
-import org.apache.thrift.scheme.StandardScheme;
-
-import org.apache.thrift.scheme.TupleScheme;
-import org.apache.thrift.protocol.TTupleProtocol;
-import org.apache.thrift.protocol.TProtocolException;
-import org.apache.thrift.EncodingUtils;
-import org.apache.thrift.TException;
-import org.apache.thrift.async.AsyncMethodCallback;
-import org.apache.thrift.server.AbstractNonblockingServer.*;
-import java.util.List;
-import java.util.ArrayList;
-import java.util.Map;
-import java.util.HashMap;
-import java.util.EnumMap;
-import java.util.Set;
-import java.util.HashSet;
-import java.util.EnumSet;
-import java.util.Collections;
-import java.util.BitSet;
-import java.nio.ByteBuffer;
-import java.util.Arrays;
-import javax.annotation.Generated;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
-@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)")
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
+@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler 
(0.10.0)")
 public class JobModel implements org.apache.thrift.TBase<JobModel, 
JobModel._Fields>, java.io.Serializable, Cloneable, Comparable<JobModel> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new 
org.apache.thrift.protocol.TStruct("JobModel");
 
@@ -68,23 +41,20 @@ public class JobModel implements 
org.apache.thrift.TBase<JobModel, JobModel._Fie
   private static final org.apache.thrift.protocol.TField STD_ERR_FIELD_DESC = 
new org.apache.thrift.protocol.TField("stdErr", 
org.apache.thrift.protocol.TType.STRING, (short)11);
   private static final org.apache.thrift.protocol.TField EXIT_CODE_FIELD_DESC 
= new org.apache.thrift.protocol.TField("exitCode", 
org.apache.thrift.protocol.TType.I32, (short)12);
 
-  private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = 
new HashMap<Class<? extends IScheme>, SchemeFactory>();
-  static {
-    schemes.put(StandardScheme.class, new JobModelStandardSchemeFactory());
-    schemes.put(TupleScheme.class, new JobModelTupleSchemeFactory());
-  }
+  private static final org.apache.thrift.scheme.SchemeFactory 
STANDARD_SCHEME_FACTORY = new JobModelStandardSchemeFactory();
+  private static final org.apache.thrift.scheme.SchemeFactory 
TUPLE_SCHEME_FACTORY = new JobModelTupleSchemeFactory();
 
-  private String jobId; // required
-  private String taskId; // required
-  private String processId; // required
-  private String jobDescription; // required
+  private java.lang.String jobId; // required
+  private java.lang.String taskId; // required
+  private java.lang.String processId; // required
+  private java.lang.String jobDescription; // required
   private long creationTime; // optional
-  private List<org.apache.airavata.model.status.JobStatus> jobStatuses; // 
optional
-  private String computeResourceConsumed; // optional
-  private String jobName; // optional
-  private String workingDir; // optional
-  private String stdOut; // optional
-  private String stdErr; // optional
+  private java.util.List<org.apache.airavata.model.status.JobStatus> 
jobStatuses; // optional
+  private java.lang.String computeResourceConsumed; // optional
+  private java.lang.String jobName; // optional
+  private java.lang.String workingDir; // optional
+  private java.lang.String stdOut; // optional
+  private java.lang.String stdErr; // optional
   private int exitCode; // optional
 
   /** The set of fields this struct contains, along with convenience methods 
for finding and manipulating them. */
@@ -102,10 +72,10 @@ public class JobModel implements 
org.apache.thrift.TBase<JobModel, JobModel._Fie
     STD_ERR((short)11, "stdErr"),
     EXIT_CODE((short)12, "exitCode");
 
-    private static final Map<String, _Fields> byName = new HashMap<String, 
_Fields>();
+    private static final java.util.Map<java.lang.String, _Fields> byName = new 
java.util.HashMap<java.lang.String, _Fields>();
 
     static {
-      for (_Fields field : EnumSet.allOf(_Fields.class)) {
+      for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
         byName.put(field.getFieldName(), field);
       }
     }
@@ -150,21 +120,21 @@ public class JobModel implements 
org.apache.thrift.TBase<JobModel, JobModel._Fie
      */
     public static _Fields findByThriftIdOrThrow(int fieldId) {
       _Fields fields = findByThriftId(fieldId);
-      if (fields == null) throw new IllegalArgumentException("Field " + 
fieldId + " doesn't exist!");
+      if (fields == null) throw new java.lang.IllegalArgumentException("Field 
" + fieldId + " doesn't exist!");
       return fields;
     }
 
     /**
      * Find the _Fields constant that matches name, or null if its not found.
      */
-    public static _Fields findByName(String name) {
+    public static _Fields findByName(java.lang.String name) {
       return byName.get(name);
     }
 
     private final short _thriftId;
-    private final String _fieldName;
+    private final java.lang.String _fieldName;
 
-    _Fields(short thriftId, String fieldName) {
+    _Fields(short thriftId, java.lang.String fieldName) {
       _thriftId = thriftId;
       _fieldName = fieldName;
     }
@@ -173,7 +143,7 @@ public class JobModel implements 
org.apache.thrift.TBase<JobModel, JobModel._Fie
       return _thriftId;
     }
 
-    public String getFieldName() {
+    public java.lang.String getFieldName() {
       return _fieldName;
     }
   }
@@ -183,9 +153,9 @@ public class JobModel implements 
org.apache.thrift.TBase<JobModel, JobModel._Fie
   private static final int __EXITCODE_ISSET_ID = 1;
   private byte __isset_bitfield = 0;
   private static final _Fields optionals[] = 
{_Fields.CREATION_TIME,_Fields.JOB_STATUSES,_Fields.COMPUTE_RESOURCE_CONSUMED,_Fields.JOB_NAME,_Fields.WORKING_DIR,_Fields.STD_OUT,_Fields.STD_ERR,_Fields.EXIT_CODE};
-  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> 
metaDataMap;
+  public static final java.util.Map<_Fields, 
org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
   static {
-    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new 
EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+    java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = 
new java.util.EnumMap<_Fields, 
org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
     tmpMap.put(_Fields.JOB_ID, new 
org.apache.thrift.meta_data.FieldMetaData("jobId", 
org.apache.thrift.TFieldRequirementType.REQUIRED, 
         new 
org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
     tmpMap.put(_Fields.TASK_ID, new 
org.apache.thrift.meta_data.FieldMetaData("taskId", 
org.apache.thrift.TFieldRequirementType.REQUIRED, 
@@ -211,7 +181,7 @@ public class JobModel implements 
org.apache.thrift.TBase<JobModel, JobModel._Fie
         new 
org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
     tmpMap.put(_Fields.EXIT_CODE, new 
org.apache.thrift.meta_data.FieldMetaData("exitCode", 
org.apache.thrift.TFieldRequirementType.OPTIONAL, 
         new 
org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
-    metaDataMap = Collections.unmodifiableMap(tmpMap);
+    metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
     
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(JobModel.class, 
metaDataMap);
   }
 
@@ -219,10 +189,10 @@ public class JobModel implements 
org.apache.thrift.TBase<JobModel, JobModel._Fie
   }
 
   public JobModel(
-    String jobId,
-    String taskId,
-    String processId,
-    String jobDescription)
+    java.lang.String jobId,
+    java.lang.String taskId,
+    java.lang.String processId,
+    java.lang.String jobDescription)
   {
     this();
     this.jobId = jobId;
@@ -250,7 +220,7 @@ public class JobModel implements 
org.apache.thrift.TBase<JobModel, JobModel._Fie
     }
     this.creationTime = other.creationTime;
     if (other.isSetJobStatuses()) {
-      List<org.apache.airavata.model.status.JobStatus> __this__jobStatuses = 
new 
ArrayList<org.apache.airavata.model.status.JobStatus>(other.jobStatuses.size());
+      java.util.List<org.apache.airavata.model.status.JobStatus> 
__this__jobStatuses = new 
java.util.ArrayList<org.apache.airavata.model.status.JobStatus>(other.jobStatuses.size());
       for (org.apache.airavata.model.status.JobStatus other_element : 
other.jobStatuses) {
         __this__jobStatuses.add(new 
org.apache.airavata.model.status.JobStatus(other_element));
       }
@@ -296,11 +266,11 @@ public class JobModel implements 
org.apache.thrift.TBase<JobModel, JobModel._Fie
     this.exitCode = 0;
   }
 
-  public String getJobId() {
+  public java.lang.String getJobId() {
     return this.jobId;
   }
 
-  public void setJobId(String jobId) {
+  public void setJobId(java.lang.String jobId) {
     this.jobId = jobId;
   }
 
@@ -319,11 +289,11 @@ public class JobModel implements 
org.apache.thrift.TBase<JobModel, JobModel._Fie
     }
   }
 
-  public String getTaskId() {
+  public java.lang.String getTaskId() {
     return this.taskId;
   }
 
-  public void setTaskId(String taskId) {
+  public void setTaskId(java.lang.String taskId) {
     this.taskId = taskId;
   }
 
@@ -342,11 +312,11 @@ public class JobModel implements 
org.apache.thrift.TBase<JobModel, JobModel._Fie
     }
   }
 
-  public String getProcessId() {
+  public java.lang.String getProcessId() {
     return this.processId;
   }
 
-  public void setProcessId(String processId) {
+  public void setProcessId(java.lang.String processId) {
     this.processId = processId;
   }
 
@@ -365,11 +335,11 @@ public class JobModel implements 
org.apache.thrift.TBase<JobModel, JobModel._Fie
     }
   }
 
-  public String getJobDescription() {
+  public java.lang.String getJobDescription() {
     return this.jobDescription;
   }
 
-  public void setJobDescription(String jobDescription) {
+  public void setJobDescription(java.lang.String jobDescription) {
     this.jobDescription = jobDescription;
   }
 
@@ -398,16 +368,16 @@ public class JobModel implements 
org.apache.thrift.TBase<JobModel, JobModel._Fie
   }
 
   public void unsetCreationTime() {
-    __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, 
__CREATIONTIME_ISSET_ID);
+    __isset_bitfield = 
org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, 
__CREATIONTIME_ISSET_ID);
   }
 
   /** Returns true if field creationTime is set (has been assigned a value) 
and false otherwise */
   public boolean isSetCreationTime() {
-    return EncodingUtils.testBit(__isset_bitfield, __CREATIONTIME_ISSET_ID);
+    return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, 
__CREATIONTIME_ISSET_ID);
   }
 
   public void setCreationTimeIsSet(boolean value) {
-    __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, 
__CREATIONTIME_ISSET_ID, value);
+    __isset_bitfield = 
org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, 
__CREATIONTIME_ISSET_ID, value);
   }
 
   public int getJobStatusesSize() {
@@ -420,16 +390,16 @@ public class JobModel implements 
org.apache.thrift.TBase<JobModel, JobModel._Fie
 
   public void addToJobStatuses(org.apache.airavata.model.status.JobStatus 
elem) {
     if (this.jobStatuses == null) {
-      this.jobStatuses = new 
ArrayList<org.apache.airavata.model.status.JobStatus>();
+      this.jobStatuses = new 
java.util.ArrayList<org.apache.airavata.model.status.JobStatus>();
     }
     this.jobStatuses.add(elem);
   }
 
-  public List<org.apache.airavata.model.status.JobStatus> getJobStatuses() {
+  public java.util.List<org.apache.airavata.model.status.JobStatus> 
getJobStatuses() {
     return this.jobStatuses;
   }
 
-  public void setJobStatuses(List<org.apache.airavata.model.status.JobStatus> 
jobStatuses) {
+  public void 
setJobStatuses(java.util.List<org.apache.airavata.model.status.JobStatus> 
jobStatuses) {
     this.jobStatuses = jobStatuses;
   }
 
@@ -448,11 +418,11 @@ public class JobModel implements 
org.apache.thrift.TBase<JobModel, JobModel._Fie
     }
   }
 
-  public String getComputeResourceConsumed() {
+  public java.lang.String getComputeResourceConsumed() {
     return this.computeResourceConsumed;
   }
 
-  public void setComputeResourceConsumed(String computeResourceConsumed) {
+  public void setComputeResourceConsumed(java.lang.String 
computeResourceConsumed) {
     this.computeResourceConsumed = computeResourceConsumed;
   }
 
@@ -471,11 +441,11 @@ public class JobModel implements 
org.apache.thrift.TBase<JobModel, JobModel._Fie
     }
   }
 
-  public String getJobName() {
+  public java.lang.String getJobName() {
     return this.jobName;
   }
 
-  public void setJobName(String jobName) {
+  public void setJobName(java.lang.String jobName) {
     this.jobName = jobName;
   }
 
@@ -494,11 +464,11 @@ public class JobModel implements 
org.apache.thrift.TBase<JobModel, JobModel._Fie
     }
   }
 
-  public String getWorkingDir() {
+  public java.lang.String getWorkingDir() {
     return this.workingDir;
   }
 
-  public void setWorkingDir(String workingDir) {
+  public void setWorkingDir(java.lang.String workingDir) {
     this.workingDir = workingDir;
   }
 
@@ -517,11 +487,11 @@ public class JobModel implements 
org.apache.thrift.TBase<JobModel, JobModel._Fie
     }
   }
 
-  public String getStdOut() {
+  public java.lang.String getStdOut() {
     return this.stdOut;
   }
 
-  public void setStdOut(String stdOut) {
+  public void setStdOut(java.lang.String stdOut) {
     this.stdOut = stdOut;
   }
 
@@ -540,11 +510,11 @@ public class JobModel implements 
org.apache.thrift.TBase<JobModel, JobModel._Fie
     }
   }
 
-  public String getStdErr() {
+  public java.lang.String getStdErr() {
     return this.stdErr;
   }
 
-  public void setStdErr(String stdErr) {
+  public void setStdErr(java.lang.String stdErr) {
     this.stdErr = stdErr;
   }
 
@@ -573,25 +543,25 @@ public class JobModel implements 
org.apache.thrift.TBase<JobModel, JobModel._Fie
   }
 
   public void unsetExitCode() {
-    __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, 
__EXITCODE_ISSET_ID);
+    __isset_bitfield = 
org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __EXITCODE_ISSET_ID);
   }
 
   /** Returns true if field exitCode is set (has been assigned a value) and 
false otherwise */
   public boolean isSetExitCode() {
-    return EncodingUtils.testBit(__isset_bitfield, __EXITCODE_ISSET_ID);
+    return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, 
__EXITCODE_ISSET_ID);
   }
 
   public void setExitCodeIsSet(boolean value) {
-    __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, 
__EXITCODE_ISSET_ID, value);
+    __isset_bitfield = 
org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __EXITCODE_ISSET_ID, 
value);
   }
 
-  public void setFieldValue(_Fields field, Object value) {
+  public void setFieldValue(_Fields field, java.lang.Object value) {
     switch (field) {
     case JOB_ID:
       if (value == null) {
         unsetJobId();
       } else {
-        setJobId((String)value);
+        setJobId((java.lang.String)value);
       }
       break;
 
@@ -599,7 +569,7 @@ public class JobModel implements 
org.apache.thrift.TBase<JobModel, JobModel._Fie
       if (value == null) {
         unsetTaskId();
       } else {
-        setTaskId((String)value);
+        setTaskId((java.lang.String)value);
       }
       break;
 
@@ -607,7 +577,7 @@ public class JobModel implements 
org.apache.thrift.TBase<JobModel, JobModel._Fie
       if (value == null) {
         unsetProcessId();
       } else {
-        setProcessId((String)value);
+        setProcessId((java.lang.String)value);
       }
       break;
 
@@ -615,7 +585,7 @@ public class JobModel implements 
org.apache.thrift.TBase<JobModel, JobModel._Fie
       if (value == null) {
         unsetJobDescription();
       } else {
-        setJobDescription((String)value);
+        setJobDescription((java.lang.String)value);
       }
       break;
 
@@ -623,7 +593,7 @@ public class JobModel implements 
org.apache.thrift.TBase<JobModel, JobModel._Fie
       if (value == null) {
         unsetCreationTime();
       } else {
-        setCreationTime((Long)value);
+        setCreationTime((java.lang.Long)value);
       }
       break;
 
@@ -631,7 +601,7 @@ public class JobModel implements 
org.apache.thrift.TBase<JobModel, JobModel._Fie
       if (value == null) {
         unsetJobStatuses();
       } else {
-        
setJobStatuses((List<org.apache.airavata.model.status.JobStatus>)value);
+        
setJobStatuses((java.util.List<org.apache.airavata.model.status.JobStatus>)value);
       }
       break;
 
@@ -639,7 +609,7 @@ public class JobModel implements 
org.apache.thrift.TBase<JobModel, JobModel._Fie
       if (value == null) {
         unsetComputeResourceConsumed();
       } else {
-        setComputeResourceConsumed((String)value);
+        setComputeResourceConsumed((java.lang.String)value);
       }
       break;
 
@@ -647,7 +617,7 @@ public class JobModel implements 
org.apache.thrift.TBase<JobModel, JobModel._Fie
       if (value == null) {
         unsetJobName();
       } else {
-        setJobName((String)value);
+        setJobName((java.lang.String)value);
       }
       break;
 
@@ -655,7 +625,7 @@ public class JobModel implements 
org.apache.thrift.TBase<JobModel, JobModel._Fie
       if (value == null) {
         unsetWorkingDir();
       } else {
-        setWorkingDir((String)value);
+        setWorkingDir((java.lang.String)value);
       }
       break;
 
@@ -663,7 +633,7 @@ public class JobModel implements 
org.apache.thrift.TBase<JobModel, JobModel._Fie
       if (value == null) {
         unsetStdOut();
       } else {
-        setStdOut((String)value);
+        setStdOut((java.lang.String)value);
       }
       break;
 
@@ -671,7 +641,7 @@ public class JobModel implements 
org.apache.thrift.TBase<JobModel, JobModel._Fie
       if (value == null) {
         unsetStdErr();
       } else {
-        setStdErr((String)value);
+        setStdErr((java.lang.String)value);
       }
       break;
 
@@ -679,14 +649,14 @@ public class JobModel implements 
org.apache.thrift.TBase<JobModel, JobModel._Fie
       if (value == null) {
         unsetExitCode();
       } else {
-        setExitCode((Integer)value);
+        setExitCode((java.lang.Integer)value);
       }
       break;
 
     }
   }
 
-  public Object getFieldValue(_Fields field) {
+  public java.lang.Object getFieldValue(_Fields field) {
     switch (field) {
     case JOB_ID:
       return getJobId();
@@ -725,13 +695,13 @@ public class JobModel implements 
org.apache.thrift.TBase<JobModel, JobModel._Fie
       return getExitCode();
 
     }
-    throw new IllegalStateException();
+    throw new java.lang.IllegalStateException();
   }
 
   /** Returns true if field corresponding to fieldID is set (has been assigned 
a value) and false otherwise */
   public boolean isSet(_Fields field) {
     if (field == null) {
-      throw new IllegalArgumentException();
+      throw new java.lang.IllegalArgumentException();
     }
 
     switch (field) {
@@ -760,11 +730,11 @@ public class JobModel implements 
org.apache.thrift.TBase<JobModel, JobModel._Fie
     case EXIT_CODE:
       return isSetExitCode();
     }
-    throw new IllegalStateException();
+    throw new java.lang.IllegalStateException();
   }
 
   @Override
-  public boolean equals(Object that) {
+  public boolean equals(java.lang.Object that) {
     if (that == null)
       return false;
     if (that instanceof JobModel)
@@ -775,6 +745,8 @@ public class JobModel implements 
org.apache.thrift.TBase<JobModel, JobModel._Fie
   public boolean equals(JobModel that) {
     if (that == null)
       return false;
+    if (this == that)
+      return true;
 
     boolean this_present_jobId = true && this.isSetJobId();
     boolean that_present_jobId = true && that.isSetJobId();
@@ -889,69 +861,57 @@ public class JobModel implements 
org.apache.thrift.TBase<JobModel, JobModel._Fie
 
   @Override
   public int hashCode() {
-    List<Object> list = new ArrayList<Object>();
-
-    boolean present_jobId = true && (isSetJobId());
-    list.add(present_jobId);
-    if (present_jobId)
-      list.add(jobId);
-
-    boolean present_taskId = true && (isSetTaskId());
-    list.add(present_taskId);
-    if (present_taskId)
-      list.add(taskId);
-
-    boolean present_processId = true && (isSetProcessId());
-    list.add(present_processId);
-    if (present_processId)
-      list.add(processId);
-
-    boolean present_jobDescription = true && (isSetJobDescription());
-    list.add(present_jobDescription);
-    if (present_jobDescription)
-      list.add(jobDescription);
-
-    boolean present_creationTime = true && (isSetCreationTime());
-    list.add(present_creationTime);
-    if (present_creationTime)
-      list.add(creationTime);
-
-    boolean present_jobStatuses = true && (isSetJobStatuses());
-    list.add(present_jobStatuses);
-    if (present_jobStatuses)
-      list.add(jobStatuses);
-
-    boolean present_computeResourceConsumed = true && 
(isSetComputeResourceConsumed());
-    list.add(present_computeResourceConsumed);
-    if (present_computeResourceConsumed)
-      list.add(computeResourceConsumed);
-
-    boolean present_jobName = true && (isSetJobName());
-    list.add(present_jobName);
-    if (present_jobName)
-      list.add(jobName);
-
-    boolean present_workingDir = true && (isSetWorkingDir());
-    list.add(present_workingDir);
-    if (present_workingDir)
-      list.add(workingDir);
-
-    boolean present_stdOut = true && (isSetStdOut());
-    list.add(present_stdOut);
-    if (present_stdOut)
-      list.add(stdOut);
-
-    boolean present_stdErr = true && (isSetStdErr());
-    list.add(present_stdErr);
-    if (present_stdErr)
-      list.add(stdErr);
-
-    boolean present_exitCode = true && (isSetExitCode());
-    list.add(present_exitCode);
-    if (present_exitCode)
-      list.add(exitCode);
-
-    return list.hashCode();
+    int hashCode = 1;
+
+    hashCode = hashCode * 8191 + ((isSetJobId()) ? 131071 : 524287);
+    if (isSetJobId())
+      hashCode = hashCode * 8191 + jobId.hashCode();
+
+    hashCode = hashCode * 8191 + ((isSetTaskId()) ? 131071 : 524287);
+    if (isSetTaskId())
+      hashCode = hashCode * 8191 + taskId.hashCode();
+
+    hashCode = hashCode * 8191 + ((isSetProcessId()) ? 131071 : 524287);
+    if (isSetProcessId())
+      hashCode = hashCode * 8191 + processId.hashCode();
+
+    hashCode = hashCode * 8191 + ((isSetJobDescription()) ? 131071 : 524287);
+    if (isSetJobDescription())
+      hashCode = hashCode * 8191 + jobDescription.hashCode();
+
+    hashCode = hashCode * 8191 + ((isSetCreationTime()) ? 131071 : 524287);
+    if (isSetCreationTime())
+      hashCode = hashCode * 8191 + 
org.apache.thrift.TBaseHelper.hashCode(creationTime);
+
+    hashCode = hashCode * 8191 + ((isSetJobStatuses()) ? 131071 : 524287);
+    if (isSetJobStatuses())
+      hashCode = hashCode * 8191 + jobStatuses.hashCode();
+
+    hashCode = hashCode * 8191 + ((isSetComputeResourceConsumed()) ? 131071 : 
524287);
+    if (isSetComputeResourceConsumed())
+      hashCode = hashCode * 8191 + computeResourceConsumed.hashCode();
+
+    hashCode = hashCode * 8191 + ((isSetJobName()) ? 131071 : 524287);
+    if (isSetJobName())
+      hashCode = hashCode * 8191 + jobName.hashCode();
+
+    hashCode = hashCode * 8191 + ((isSetWorkingDir()) ? 131071 : 524287);
+    if (isSetWorkingDir())
+      hashCode = hashCode * 8191 + workingDir.hashCode();
+
+    hashCode = hashCode * 8191 + ((isSetStdOut()) ? 131071 : 524287);
+    if (isSetStdOut())
+      hashCode = hashCode * 8191 + stdOut.hashCode();
+
+    hashCode = hashCode * 8191 + ((isSetStdErr()) ? 131071 : 524287);
+    if (isSetStdErr())
+      hashCode = hashCode * 8191 + stdErr.hashCode();
+
+    hashCode = hashCode * 8191 + ((isSetExitCode()) ? 131071 : 524287);
+    if (isSetExitCode())
+      hashCode = hashCode * 8191 + exitCode;
+
+    return hashCode;
   }
 
   @Override
@@ -962,7 +922,7 @@ public class JobModel implements 
org.apache.thrift.TBase<JobModel, JobModel._Fie
 
     int lastComparison = 0;
 
-    lastComparison = 
Boolean.valueOf(isSetJobId()).compareTo(other.isSetJobId());
+    lastComparison = 
java.lang.Boolean.valueOf(isSetJobId()).compareTo(other.isSetJobId());
     if (lastComparison != 0) {
       return lastComparison;
     }
@@ -972,7 +932,7 @@ public class JobModel implements 
org.apache.thrift.TBase<JobModel, JobModel._Fie
         return lastComparison;
       }
     }
-    lastComparison = 
Boolean.valueOf(isSetTaskId()).compareTo(other.isSetTaskId());
+    lastComparison = 
java.lang.Boolean.valueOf(isSetTaskId()).compareTo(other.isSetTaskId());
     if (lastComparison != 0) {
       return lastComparison;
     }
@@ -982,7 +942,7 @@ public class JobModel implements 
org.apache.thrift.TBase<JobModel, JobModel._Fie
         return lastComparison;
       }
     }
-    lastComparison = 
Boolean.valueOf(isSetProcessId()).compareTo(other.isSetProcessId());
+    lastComparison = 
java.lang.Boolean.valueOf(isSetProcessId()).compareTo(other.isSetProcessId());
     if (lastComparison != 0) {
       return lastComparison;
     }
@@ -992,7 +952,7 @@ public class JobModel implements 
org.apache.thrift.TBase<JobModel, JobModel._Fie
         return lastComparison;
       }
     }
-    lastComparison = 
Boolean.valueOf(isSetJobDescription()).compareTo(other.isSetJobDescription());
+    lastComparison = 
java.lang.Boolean.valueOf(isSetJobDescription()).compareTo(other.isSetJobDescription());
     if (lastComparison != 0) {
       return lastComparison;
     }
@@ -1002,7 +962,7 @@ public class JobModel implements 
org.apache.thrift.TBase<JobModel, JobModel._Fie
         return lastComparison;
       }
     }
-    lastComparison = 
Boolean.valueOf(isSetCreationTime()).compareTo(other.isSetCreationTime());
+    lastComparison = 
java.lang.Boolean.valueOf(isSetCreationTime()).compareTo(other.isSetCreationTime());
     if (lastComparison != 0) {
       return lastComparison;
     }
@@ -1012,7 +972,7 @@ public class JobModel implements 
org.apache.thrift.TBase<JobModel, JobModel._Fie
         return lastComparison;
       }
     }
-    lastComparison = 
Boolean.valueOf(isSetJobStatuses()).compareTo(other.isSetJobStatuses());
+    lastComparison = 
java.lang.Boolean.valueOf(isSetJobStatuses()).compareTo(other.isSetJobStatuses());
     if (lastComparison != 0) {
       return lastComparison;
     }
@@ -1022,7 +982,7 @@ public class JobModel implements 
org.apache.thrift.TBase<JobModel, JobModel._Fie
         return lastComparison;
       }
     }
-    lastComparison = 
Boolean.valueOf(isSetComputeResourceConsumed()).compareTo(other.isSetComputeResourceConsumed());
+    lastComparison = 
java.lang.Boolean.valueOf(isSetComputeResourceConsumed()).compareTo(other.isSetComputeResourceConsumed());
     if (lastComparison != 0) {
       return lastComparison;
     }
@@ -1032,7 +992,7 @@ public class JobModel implements 
org.apache.thrift.TBase<JobModel, JobModel._Fie
         return lastComparison;
       }
     }
-    lastComparison = 
Boolean.valueOf(isSetJobName()).compareTo(other.isSetJobName());
+    lastComparison = 
java.lang.Boolean.valueOf(isSetJobName()).compareTo(other.isSetJobName());
     if (lastComparison != 0) {
       return lastComparison;
     }
@@ -1042,7 +1002,7 @@ public class JobModel implements 
org.apache.thrift.TBase<JobModel, JobModel._Fie
         return lastComparison;
       }
     }
-    lastComparison = 
Boolean.valueOf(isSetWorkingDir()).compareTo(other.isSetWorkingDir());
+    lastComparison = 
java.lang.Boolean.valueOf(isSetWorkingDir()).compareTo(other.isSetWorkingDir());
     if (lastComparison != 0) {
       return lastComparison;
     }
@@ -1052,7 +1012,7 @@ public class JobModel implements 
org.apache.thrift.TBase<JobModel, JobModel._Fie
         return lastComparison;
       }
     }
-    lastComparison = 
Boolean.valueOf(isSetStdOut()).compareTo(other.isSetStdOut());
+    lastComparison = 
java.lang.Boolean.valueOf(isSetStdOut()).compareTo(other.isSetStdOut());
     if (lastComparison != 0) {
       return lastComparison;
     }
@@ -1062,7 +1022,7 @@ public class JobModel implements 
org.apache.thrift.TBase<JobModel, JobModel._Fie
         return lastComparison;
       }
     }
-    lastComparison = 
Boolean.valueOf(isSetStdErr()).compareTo(other.isSetStdErr());
+    lastComparison = 
java.lang.Boolean.valueOf(isSetStdErr()).compareTo(other.isSetStdErr());
     if (lastComparison != 0) {
       return lastComparison;
     }
@@ -1072,7 +1032,7 @@ public class JobModel implements 
org.apache.thrift.TBase<JobModel, JobModel._Fie
         return lastComparison;
       }
     }
-    lastComparison = 
Boolean.valueOf(isSetExitCode()).compareTo(other.isSetExitCode());
+    lastComparison = 
java.lang.Boolean.valueOf(isSetExitCode()).compareTo(other.isSetExitCode());
     if (lastComparison != 0) {
       return lastComparison;
     }
@@ -1090,16 +1050,16 @@ public class JobModel implements 
org.apache.thrift.TBase<JobModel, JobModel._Fie
   }
 
   public void read(org.apache.thrift.protocol.TProtocol iprot) throws 
org.apache.thrift.TException {
-    schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+    scheme(iprot).read(iprot, this);
   }
 
   public void write(org.apache.thrift.protocol.TProtocol oprot) throws 
org.apache.thrift.TException {
-    schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+    scheme(oprot).write(oprot, this);
   }
 
   @Override
-  public String toString() {
-    StringBuilder sb = new StringBuilder("JobModel(");
+  public java.lang.String toString() {
+    java.lang.StringBuilder sb = new java.lang.StringBuilder("JobModel(");
     boolean first = true;
 
     sb.append("jobId:");
@@ -1238,7 +1198,7 @@ public class JobModel implements 
org.apache.thrift.TBase<JobModel, JobModel._Fie
     }
   }
 
-  private void readObject(java.io.ObjectInputStream in) throws 
java.io.IOException, ClassNotFoundException {
+  private void readObject(java.io.ObjectInputStream in) throws 
java.io.IOException, java.lang.ClassNotFoundException {
     try {
       // it doesn't seem like you should have to do this, but java 
serialization is wacky, and doesn't call the default constructor.
       __isset_bitfield = 0;
@@ -1248,13 +1208,13 @@ public class JobModel implements 
org.apache.thrift.TBase<JobModel, JobModel._Fie
     }
   }
 
-  private static class JobModelStandardSchemeFactory implements SchemeFactory {
+  private static class JobModelStandardSchemeFactory implements 
org.apache.thrift.scheme.SchemeFactory {
     public JobModelStandardScheme getScheme() {
       return new JobModelStandardScheme();
     }
   }
 
-  private static class JobModelStandardScheme extends StandardScheme<JobModel> 
{
+  private static class JobModelStandardScheme extends 
org.apache.thrift.scheme.StandardScheme<JobModel> {
 
     public void read(org.apache.thrift.protocol.TProtocol iprot, JobModel 
struct) throws org.apache.thrift.TException {
       org.apache.thrift.protocol.TField schemeField;
@@ -1310,7 +1270,7 @@ public class JobModel implements 
org.apache.thrift.TBase<JobModel, JobModel._Fie
             if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
               {
                 org.apache.thrift.protocol.TList _list0 = 
iprot.readListBegin();
-                struct.jobStatuses = new 
ArrayList<org.apache.airavata.model.status.JobStatus>(_list0.size);
+                struct.jobStatuses = new 
java.util.ArrayList<org.apache.airavata.model.status.JobStatus>(_list0.size);
                 org.apache.airavata.model.status.JobStatus _elem1;
                 for (int _i2 = 0; _i2 < _list0.size; ++_i2)
                 {
@@ -1471,22 +1431,22 @@ public class JobModel implements 
org.apache.thrift.TBase<JobModel, JobModel._Fie
 
   }
 
-  private static class JobModelTupleSchemeFactory implements SchemeFactory {
+  private static class JobModelTupleSchemeFactory implements 
org.apache.thrift.scheme.SchemeFactory {
     public JobModelTupleScheme getScheme() {
       return new JobModelTupleScheme();
     }
   }
 
-  private static class JobModelTupleScheme extends TupleScheme<JobModel> {
+  private static class JobModelTupleScheme extends 
org.apache.thrift.scheme.TupleScheme<JobModel> {
 
     @Override
     public void write(org.apache.thrift.protocol.TProtocol prot, JobModel 
struct) throws org.apache.thrift.TException {
-      TTupleProtocol oprot = (TTupleProtocol) prot;
+      org.apache.thrift.protocol.TTupleProtocol oprot = 
(org.apache.thrift.protocol.TTupleProtocol) prot;
       oprot.writeString(struct.jobId);
       oprot.writeString(struct.taskId);
       oprot.writeString(struct.processId);
       oprot.writeString(struct.jobDescription);
-      BitSet optionals = new BitSet();
+      java.util.BitSet optionals = new java.util.BitSet();
       if (struct.isSetCreationTime()) {
         optionals.set(0);
       }
@@ -1546,7 +1506,7 @@ public class JobModel implements 
org.apache.thrift.TBase<JobModel, JobModel._Fie
 
     @Override
     public void read(org.apache.thrift.protocol.TProtocol prot, JobModel 
struct) throws org.apache.thrift.TException {
-      TTupleProtocol iprot = (TTupleProtocol) prot;
+      org.apache.thrift.protocol.TTupleProtocol iprot = 
(org.apache.thrift.protocol.TTupleProtocol) prot;
       struct.jobId = iprot.readString();
       struct.setJobIdIsSet(true);
       struct.taskId = iprot.readString();
@@ -1555,7 +1515,7 @@ public class JobModel implements 
org.apache.thrift.TBase<JobModel, JobModel._Fie
       struct.setProcessIdIsSet(true);
       struct.jobDescription = iprot.readString();
       struct.setJobDescriptionIsSet(true);
-      BitSet incoming = iprot.readBitSet(8);
+      java.util.BitSet incoming = iprot.readBitSet(8);
       if (incoming.get(0)) {
         struct.creationTime = iprot.readI64();
         struct.setCreationTimeIsSet(true);
@@ -1563,7 +1523,7 @@ public class JobModel implements 
org.apache.thrift.TBase<JobModel, JobModel._Fie
       if (incoming.get(1)) {
         {
           org.apache.thrift.protocol.TList _list5 = new 
org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, 
iprot.readI32());
-          struct.jobStatuses = new 
ArrayList<org.apache.airavata.model.status.JobStatus>(_list5.size);
+          struct.jobStatuses = new 
java.util.ArrayList<org.apache.airavata.model.status.JobStatus>(_list5.size);
           org.apache.airavata.model.status.JobStatus _elem6;
           for (int _i7 = 0; _i7 < _list5.size; ++_i7)
           {
@@ -1601,5 +1561,8 @@ public class JobModel implements 
org.apache.thrift.TBase<JobModel, JobModel._Fie
     }
   }
 
+  private static <S extends org.apache.thrift.scheme.IScheme> S 
scheme(org.apache.thrift.protocol.TProtocol proto) {
+    return 
(org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? 
STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+  }
 }
 

Reply via email to