You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ch...@apache.org on 2013/11/13 19:14:51 UTC

svn commit: r1541646 [2/6] - in /airavata/trunk: ./ modules/thrift/ modules/thrift/interpreter-service-client/ modules/thrift/interpreter-service-client/src/ modules/thrift/interpreter-service-client/src/main/ modules/thrift/interpreter-service-client/...

Added: airavata/trunk/modules/thrift/interpreter-service/src/main/java/org/apache/airavata/experiment/execution/ExperimentAdvanceOptions.java
URL: http://svn.apache.org/viewvc/airavata/trunk/modules/thrift/interpreter-service/src/main/java/org/apache/airavata/experiment/execution/ExperimentAdvanceOptions.java?rev=1541646&view=auto
==============================================================================
--- airavata/trunk/modules/thrift/interpreter-service/src/main/java/org/apache/airavata/experiment/execution/ExperimentAdvanceOptions.java (added)
+++ airavata/trunk/modules/thrift/interpreter-service/src/main/java/org/apache/airavata/experiment/execution/ExperimentAdvanceOptions.java Wed Nov 13 18:14:50 2013
@@ -0,0 +1,1003 @@
+/**
+ * Autogenerated by Thrift Compiler (0.9.1)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ *  @generated
+ */
+package org.apache.airavata.experiment.execution;
+
+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 org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+public class ExperimentAdvanceOptions implements org.apache.thrift.TBase<ExperimentAdvanceOptions, ExperimentAdvanceOptions._Fields>, java.io.Serializable, Cloneable, Comparable<ExperimentAdvanceOptions> {
+  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ExperimentAdvanceOptions");
+
+  private static final org.apache.thrift.protocol.TField EXECUTION_USER_FIELD_DESC = new org.apache.thrift.protocol.TField("executionUser", org.apache.thrift.protocol.TType.STRING, (short)1);
+  private static final org.apache.thrift.protocol.TField METADATA_FIELD_DESC = new org.apache.thrift.protocol.TField("metadata", org.apache.thrift.protocol.TType.STRING, (short)2);
+  private static final org.apache.thrift.protocol.TField EXPERIMENT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("experimentName", org.apache.thrift.protocol.TType.STRING, (short)3);
+  private static final org.apache.thrift.protocol.TField CUSTOM_EXPERIMENT_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("customExperimentId", org.apache.thrift.protocol.TType.STRING, (short)4);
+  private static final org.apache.thrift.protocol.TField WORKFLOW_SCHEDULING_SETTINGS_FIELD_DESC = new org.apache.thrift.protocol.TField("workflowSchedulingSettings", org.apache.thrift.protocol.TType.STRUCT, (short)5);
+  private static final org.apache.thrift.protocol.TField WORKFLOW_OUTPUT_DATA_SETTINGS_FIELD_DESC = new org.apache.thrift.protocol.TField("workflowOutputDataSettings", org.apache.thrift.protocol.TType.STRUCT, (short)6);
+  private static final org.apache.thrift.protocol.TField SECURITY_SETTINGS_FIELD_DESC = new org.apache.thrift.protocol.TField("securitySettings", org.apache.thrift.protocol.TType.STRUCT, (short)7);
+
+  private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+  static {
+    schemes.put(StandardScheme.class, new ExperimentAdvanceOptionsStandardSchemeFactory());
+    schemes.put(TupleScheme.class, new ExperimentAdvanceOptionsTupleSchemeFactory());
+  }
+
+  public String executionUser; // required
+  public String metadata; // required
+  public String experimentName; // required
+  public String customExperimentId; // required
+  public WorkflowSchedulingSettings workflowSchedulingSettings; // required
+  public WorkflowOutputDataSettings workflowOutputDataSettings; // required
+  public SecuritySettings securitySettings; // required
+
+  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
+  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+    EXECUTION_USER((short)1, "executionUser"),
+    METADATA((short)2, "metadata"),
+    EXPERIMENT_NAME((short)3, "experimentName"),
+    CUSTOM_EXPERIMENT_ID((short)4, "customExperimentId"),
+    WORKFLOW_SCHEDULING_SETTINGS((short)5, "workflowSchedulingSettings"),
+    WORKFLOW_OUTPUT_DATA_SETTINGS((short)6, "workflowOutputDataSettings"),
+    SECURITY_SETTINGS((short)7, "securitySettings");
+
+    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+
+    static {
+      for (_Fields field : EnumSet.allOf(_Fields.class)) {
+        byName.put(field.getFieldName(), field);
+      }
+    }
+
+    /**
+     * Find the _Fields constant that matches fieldId, or null if its not found.
+     */
+    public static _Fields findByThriftId(int fieldId) {
+      switch(fieldId) {
+        case 1: // EXECUTION_USER
+          return EXECUTION_USER;
+        case 2: // METADATA
+          return METADATA;
+        case 3: // EXPERIMENT_NAME
+          return EXPERIMENT_NAME;
+        case 4: // CUSTOM_EXPERIMENT_ID
+          return CUSTOM_EXPERIMENT_ID;
+        case 5: // WORKFLOW_SCHEDULING_SETTINGS
+          return WORKFLOW_SCHEDULING_SETTINGS;
+        case 6: // WORKFLOW_OUTPUT_DATA_SETTINGS
+          return WORKFLOW_OUTPUT_DATA_SETTINGS;
+        case 7: // SECURITY_SETTINGS
+          return SECURITY_SETTINGS;
+        default:
+          return null;
+      }
+    }
+
+    /**
+     * Find the _Fields constant that matches fieldId, throwing an exception
+     * if it is not found.
+     */
+    public static _Fields findByThriftIdOrThrow(int fieldId) {
+      _Fields fields = findByThriftId(fieldId);
+      if (fields == null) throw new 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) {
+      return byName.get(name);
+    }
+
+    private final short _thriftId;
+    private final String _fieldName;
+
+    _Fields(short thriftId, String fieldName) {
+      _thriftId = thriftId;
+      _fieldName = fieldName;
+    }
+
+    public short getThriftFieldId() {
+      return _thriftId;
+    }
+
+    public String getFieldName() {
+      return _fieldName;
+    }
+  }
+
+  // isset id assignments
+  public static final 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);
+    tmpMap.put(_Fields.EXECUTION_USER, new org.apache.thrift.meta_data.FieldMetaData("executionUser", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+    tmpMap.put(_Fields.METADATA, new org.apache.thrift.meta_data.FieldMetaData("metadata", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+    tmpMap.put(_Fields.EXPERIMENT_NAME, new org.apache.thrift.meta_data.FieldMetaData("experimentName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+    tmpMap.put(_Fields.CUSTOM_EXPERIMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("customExperimentId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+    tmpMap.put(_Fields.WORKFLOW_SCHEDULING_SETTINGS, new org.apache.thrift.meta_data.FieldMetaData("workflowSchedulingSettings", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, WorkflowSchedulingSettings.class)));
+    tmpMap.put(_Fields.WORKFLOW_OUTPUT_DATA_SETTINGS, new org.apache.thrift.meta_data.FieldMetaData("workflowOutputDataSettings", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, WorkflowOutputDataSettings.class)));
+    tmpMap.put(_Fields.SECURITY_SETTINGS, new org.apache.thrift.meta_data.FieldMetaData("securitySettings", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SecuritySettings.class)));
+    metaDataMap = Collections.unmodifiableMap(tmpMap);
+    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(ExperimentAdvanceOptions.class, metaDataMap);
+  }
+
+  public ExperimentAdvanceOptions() {
+  }
+
+  public ExperimentAdvanceOptions(
+    String executionUser,
+    String metadata,
+    String experimentName,
+    String customExperimentId,
+    WorkflowSchedulingSettings workflowSchedulingSettings,
+    WorkflowOutputDataSettings workflowOutputDataSettings,
+    SecuritySettings securitySettings)
+  {
+    this();
+    this.executionUser = executionUser;
+    this.metadata = metadata;
+    this.experimentName = experimentName;
+    this.customExperimentId = customExperimentId;
+    this.workflowSchedulingSettings = workflowSchedulingSettings;
+    this.workflowOutputDataSettings = workflowOutputDataSettings;
+    this.securitySettings = securitySettings;
+  }
+
+  /**
+   * Performs a deep copy on <i>other</i>.
+   */
+  public ExperimentAdvanceOptions(ExperimentAdvanceOptions other) {
+    if (other.isSetExecutionUser()) {
+      this.executionUser = other.executionUser;
+    }
+    if (other.isSetMetadata()) {
+      this.metadata = other.metadata;
+    }
+    if (other.isSetExperimentName()) {
+      this.experimentName = other.experimentName;
+    }
+    if (other.isSetCustomExperimentId()) {
+      this.customExperimentId = other.customExperimentId;
+    }
+    if (other.isSetWorkflowSchedulingSettings()) {
+      this.workflowSchedulingSettings = new WorkflowSchedulingSettings(other.workflowSchedulingSettings);
+    }
+    if (other.isSetWorkflowOutputDataSettings()) {
+      this.workflowOutputDataSettings = new WorkflowOutputDataSettings(other.workflowOutputDataSettings);
+    }
+    if (other.isSetSecuritySettings()) {
+      this.securitySettings = new SecuritySettings(other.securitySettings);
+    }
+  }
+
+  public ExperimentAdvanceOptions deepCopy() {
+    return new ExperimentAdvanceOptions(this);
+  }
+
+  @Override
+  public void clear() {
+    this.executionUser = null;
+    this.metadata = null;
+    this.experimentName = null;
+    this.customExperimentId = null;
+    this.workflowSchedulingSettings = null;
+    this.workflowOutputDataSettings = null;
+    this.securitySettings = null;
+  }
+
+  public String getExecutionUser() {
+    return this.executionUser;
+  }
+
+  public ExperimentAdvanceOptions setExecutionUser(String executionUser) {
+    this.executionUser = executionUser;
+    return this;
+  }
+
+  public void unsetExecutionUser() {
+    this.executionUser = null;
+  }
+
+  /** Returns true if field executionUser is set (has been assigned a value) and false otherwise */
+  public boolean isSetExecutionUser() {
+    return this.executionUser != null;
+  }
+
+  public void setExecutionUserIsSet(boolean value) {
+    if (!value) {
+      this.executionUser = null;
+    }
+  }
+
+  public String getMetadata() {
+    return this.metadata;
+  }
+
+  public ExperimentAdvanceOptions setMetadata(String metadata) {
+    this.metadata = metadata;
+    return this;
+  }
+
+  public void unsetMetadata() {
+    this.metadata = null;
+  }
+
+  /** Returns true if field metadata is set (has been assigned a value) and false otherwise */
+  public boolean isSetMetadata() {
+    return this.metadata != null;
+  }
+
+  public void setMetadataIsSet(boolean value) {
+    if (!value) {
+      this.metadata = null;
+    }
+  }
+
+  public String getExperimentName() {
+    return this.experimentName;
+  }
+
+  public ExperimentAdvanceOptions setExperimentName(String experimentName) {
+    this.experimentName = experimentName;
+    return this;
+  }
+
+  public void unsetExperimentName() {
+    this.experimentName = null;
+  }
+
+  /** Returns true if field experimentName is set (has been assigned a value) and false otherwise */
+  public boolean isSetExperimentName() {
+    return this.experimentName != null;
+  }
+
+  public void setExperimentNameIsSet(boolean value) {
+    if (!value) {
+      this.experimentName = null;
+    }
+  }
+
+  public String getCustomExperimentId() {
+    return this.customExperimentId;
+  }
+
+  public ExperimentAdvanceOptions setCustomExperimentId(String customExperimentId) {
+    this.customExperimentId = customExperimentId;
+    return this;
+  }
+
+  public void unsetCustomExperimentId() {
+    this.customExperimentId = null;
+  }
+
+  /** Returns true if field customExperimentId is set (has been assigned a value) and false otherwise */
+  public boolean isSetCustomExperimentId() {
+    return this.customExperimentId != null;
+  }
+
+  public void setCustomExperimentIdIsSet(boolean value) {
+    if (!value) {
+      this.customExperimentId = null;
+    }
+  }
+
+  public WorkflowSchedulingSettings getWorkflowSchedulingSettings() {
+    return this.workflowSchedulingSettings;
+  }
+
+  public ExperimentAdvanceOptions setWorkflowSchedulingSettings(WorkflowSchedulingSettings workflowSchedulingSettings) {
+    this.workflowSchedulingSettings = workflowSchedulingSettings;
+    return this;
+  }
+
+  public void unsetWorkflowSchedulingSettings() {
+    this.workflowSchedulingSettings = null;
+  }
+
+  /** Returns true if field workflowSchedulingSettings is set (has been assigned a value) and false otherwise */
+  public boolean isSetWorkflowSchedulingSettings() {
+    return this.workflowSchedulingSettings != null;
+  }
+
+  public void setWorkflowSchedulingSettingsIsSet(boolean value) {
+    if (!value) {
+      this.workflowSchedulingSettings = null;
+    }
+  }
+
+  public WorkflowOutputDataSettings getWorkflowOutputDataSettings() {
+    return this.workflowOutputDataSettings;
+  }
+
+  public ExperimentAdvanceOptions setWorkflowOutputDataSettings(WorkflowOutputDataSettings workflowOutputDataSettings) {
+    this.workflowOutputDataSettings = workflowOutputDataSettings;
+    return this;
+  }
+
+  public void unsetWorkflowOutputDataSettings() {
+    this.workflowOutputDataSettings = null;
+  }
+
+  /** Returns true if field workflowOutputDataSettings is set (has been assigned a value) and false otherwise */
+  public boolean isSetWorkflowOutputDataSettings() {
+    return this.workflowOutputDataSettings != null;
+  }
+
+  public void setWorkflowOutputDataSettingsIsSet(boolean value) {
+    if (!value) {
+      this.workflowOutputDataSettings = null;
+    }
+  }
+
+  public SecuritySettings getSecuritySettings() {
+    return this.securitySettings;
+  }
+
+  public ExperimentAdvanceOptions setSecuritySettings(SecuritySettings securitySettings) {
+    this.securitySettings = securitySettings;
+    return this;
+  }
+
+  public void unsetSecuritySettings() {
+    this.securitySettings = null;
+  }
+
+  /** Returns true if field securitySettings is set (has been assigned a value) and false otherwise */
+  public boolean isSetSecuritySettings() {
+    return this.securitySettings != null;
+  }
+
+  public void setSecuritySettingsIsSet(boolean value) {
+    if (!value) {
+      this.securitySettings = null;
+    }
+  }
+
+  public void setFieldValue(_Fields field, Object value) {
+    switch (field) {
+    case EXECUTION_USER:
+      if (value == null) {
+        unsetExecutionUser();
+      } else {
+        setExecutionUser((String)value);
+      }
+      break;
+
+    case METADATA:
+      if (value == null) {
+        unsetMetadata();
+      } else {
+        setMetadata((String)value);
+      }
+      break;
+
+    case EXPERIMENT_NAME:
+      if (value == null) {
+        unsetExperimentName();
+      } else {
+        setExperimentName((String)value);
+      }
+      break;
+
+    case CUSTOM_EXPERIMENT_ID:
+      if (value == null) {
+        unsetCustomExperimentId();
+      } else {
+        setCustomExperimentId((String)value);
+      }
+      break;
+
+    case WORKFLOW_SCHEDULING_SETTINGS:
+      if (value == null) {
+        unsetWorkflowSchedulingSettings();
+      } else {
+        setWorkflowSchedulingSettings((WorkflowSchedulingSettings)value);
+      }
+      break;
+
+    case WORKFLOW_OUTPUT_DATA_SETTINGS:
+      if (value == null) {
+        unsetWorkflowOutputDataSettings();
+      } else {
+        setWorkflowOutputDataSettings((WorkflowOutputDataSettings)value);
+      }
+      break;
+
+    case SECURITY_SETTINGS:
+      if (value == null) {
+        unsetSecuritySettings();
+      } else {
+        setSecuritySettings((SecuritySettings)value);
+      }
+      break;
+
+    }
+  }
+
+  public Object getFieldValue(_Fields field) {
+    switch (field) {
+    case EXECUTION_USER:
+      return getExecutionUser();
+
+    case METADATA:
+      return getMetadata();
+
+    case EXPERIMENT_NAME:
+      return getExperimentName();
+
+    case CUSTOM_EXPERIMENT_ID:
+      return getCustomExperimentId();
+
+    case WORKFLOW_SCHEDULING_SETTINGS:
+      return getWorkflowSchedulingSettings();
+
+    case WORKFLOW_OUTPUT_DATA_SETTINGS:
+      return getWorkflowOutputDataSettings();
+
+    case SECURITY_SETTINGS:
+      return getSecuritySettings();
+
+    }
+    throw new 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();
+    }
+
+    switch (field) {
+    case EXECUTION_USER:
+      return isSetExecutionUser();
+    case METADATA:
+      return isSetMetadata();
+    case EXPERIMENT_NAME:
+      return isSetExperimentName();
+    case CUSTOM_EXPERIMENT_ID:
+      return isSetCustomExperimentId();
+    case WORKFLOW_SCHEDULING_SETTINGS:
+      return isSetWorkflowSchedulingSettings();
+    case WORKFLOW_OUTPUT_DATA_SETTINGS:
+      return isSetWorkflowOutputDataSettings();
+    case SECURITY_SETTINGS:
+      return isSetSecuritySettings();
+    }
+    throw new IllegalStateException();
+  }
+
+  @Override
+  public boolean equals(Object that) {
+    if (that == null)
+      return false;
+    if (that instanceof ExperimentAdvanceOptions)
+      return this.equals((ExperimentAdvanceOptions)that);
+    return false;
+  }
+
+  public boolean equals(ExperimentAdvanceOptions that) {
+    if (that == null)
+      return false;
+
+    boolean this_present_executionUser = true && this.isSetExecutionUser();
+    boolean that_present_executionUser = true && that.isSetExecutionUser();
+    if (this_present_executionUser || that_present_executionUser) {
+      if (!(this_present_executionUser && that_present_executionUser))
+        return false;
+      if (!this.executionUser.equals(that.executionUser))
+        return false;
+    }
+
+    boolean this_present_metadata = true && this.isSetMetadata();
+    boolean that_present_metadata = true && that.isSetMetadata();
+    if (this_present_metadata || that_present_metadata) {
+      if (!(this_present_metadata && that_present_metadata))
+        return false;
+      if (!this.metadata.equals(that.metadata))
+        return false;
+    }
+
+    boolean this_present_experimentName = true && this.isSetExperimentName();
+    boolean that_present_experimentName = true && that.isSetExperimentName();
+    if (this_present_experimentName || that_present_experimentName) {
+      if (!(this_present_experimentName && that_present_experimentName))
+        return false;
+      if (!this.experimentName.equals(that.experimentName))
+        return false;
+    }
+
+    boolean this_present_customExperimentId = true && this.isSetCustomExperimentId();
+    boolean that_present_customExperimentId = true && that.isSetCustomExperimentId();
+    if (this_present_customExperimentId || that_present_customExperimentId) {
+      if (!(this_present_customExperimentId && that_present_customExperimentId))
+        return false;
+      if (!this.customExperimentId.equals(that.customExperimentId))
+        return false;
+    }
+
+    boolean this_present_workflowSchedulingSettings = true && this.isSetWorkflowSchedulingSettings();
+    boolean that_present_workflowSchedulingSettings = true && that.isSetWorkflowSchedulingSettings();
+    if (this_present_workflowSchedulingSettings || that_present_workflowSchedulingSettings) {
+      if (!(this_present_workflowSchedulingSettings && that_present_workflowSchedulingSettings))
+        return false;
+      if (!this.workflowSchedulingSettings.equals(that.workflowSchedulingSettings))
+        return false;
+    }
+
+    boolean this_present_workflowOutputDataSettings = true && this.isSetWorkflowOutputDataSettings();
+    boolean that_present_workflowOutputDataSettings = true && that.isSetWorkflowOutputDataSettings();
+    if (this_present_workflowOutputDataSettings || that_present_workflowOutputDataSettings) {
+      if (!(this_present_workflowOutputDataSettings && that_present_workflowOutputDataSettings))
+        return false;
+      if (!this.workflowOutputDataSettings.equals(that.workflowOutputDataSettings))
+        return false;
+    }
+
+    boolean this_present_securitySettings = true && this.isSetSecuritySettings();
+    boolean that_present_securitySettings = true && that.isSetSecuritySettings();
+    if (this_present_securitySettings || that_present_securitySettings) {
+      if (!(this_present_securitySettings && that_present_securitySettings))
+        return false;
+      if (!this.securitySettings.equals(that.securitySettings))
+        return false;
+    }
+
+    return true;
+  }
+
+  @Override
+  public int hashCode() {
+    return 0;
+  }
+
+  @Override
+  public int compareTo(ExperimentAdvanceOptions other) {
+    if (!getClass().equals(other.getClass())) {
+      return getClass().getName().compareTo(other.getClass().getName());
+    }
+
+    int lastComparison = 0;
+
+    lastComparison = Boolean.valueOf(isSetExecutionUser()).compareTo(other.isSetExecutionUser());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetExecutionUser()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.executionUser, other.executionUser);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetMetadata()).compareTo(other.isSetMetadata());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetMetadata()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.metadata, other.metadata);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetExperimentName()).compareTo(other.isSetExperimentName());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetExperimentName()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.experimentName, other.experimentName);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetCustomExperimentId()).compareTo(other.isSetCustomExperimentId());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetCustomExperimentId()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.customExperimentId, other.customExperimentId);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetWorkflowSchedulingSettings()).compareTo(other.isSetWorkflowSchedulingSettings());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetWorkflowSchedulingSettings()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.workflowSchedulingSettings, other.workflowSchedulingSettings);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetWorkflowOutputDataSettings()).compareTo(other.isSetWorkflowOutputDataSettings());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetWorkflowOutputDataSettings()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.workflowOutputDataSettings, other.workflowOutputDataSettings);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetSecuritySettings()).compareTo(other.isSetSecuritySettings());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetSecuritySettings()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.securitySettings, other.securitySettings);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    return 0;
+  }
+
+  public _Fields fieldForId(int fieldId) {
+    return _Fields.findByThriftId(fieldId);
+  }
+
+  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
+    schemes.get(iprot.getScheme()).getScheme().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);
+  }
+
+  @Override
+  public String toString() {
+    StringBuilder sb = new StringBuilder("ExperimentAdvanceOptions(");
+    boolean first = true;
+
+    sb.append("executionUser:");
+    if (this.executionUser == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.executionUser);
+    }
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("metadata:");
+    if (this.metadata == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.metadata);
+    }
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("experimentName:");
+    if (this.experimentName == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.experimentName);
+    }
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("customExperimentId:");
+    if (this.customExperimentId == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.customExperimentId);
+    }
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("workflowSchedulingSettings:");
+    if (this.workflowSchedulingSettings == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.workflowSchedulingSettings);
+    }
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("workflowOutputDataSettings:");
+    if (this.workflowOutputDataSettings == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.workflowOutputDataSettings);
+    }
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("securitySettings:");
+    if (this.securitySettings == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.securitySettings);
+    }
+    first = false;
+    sb.append(")");
+    return sb.toString();
+  }
+
+  public void validate() throws org.apache.thrift.TException {
+    // check for required fields
+    // check for sub-struct validity
+    if (workflowSchedulingSettings != null) {
+      workflowSchedulingSettings.validate();
+    }
+    if (workflowOutputDataSettings != null) {
+      workflowOutputDataSettings.validate();
+    }
+    if (securitySettings != null) {
+      securitySettings.validate();
+    }
+  }
+
+  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+    try {
+      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
+    } catch (org.apache.thrift.TException te) {
+      throw new java.io.IOException(te);
+    }
+  }
+
+  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+    try {
+      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
+    } catch (org.apache.thrift.TException te) {
+      throw new java.io.IOException(te);
+    }
+  }
+
+  private static class ExperimentAdvanceOptionsStandardSchemeFactory implements SchemeFactory {
+    public ExperimentAdvanceOptionsStandardScheme getScheme() {
+      return new ExperimentAdvanceOptionsStandardScheme();
+    }
+  }
+
+  private static class ExperimentAdvanceOptionsStandardScheme extends StandardScheme<ExperimentAdvanceOptions> {
+
+    public void read(org.apache.thrift.protocol.TProtocol iprot, ExperimentAdvanceOptions struct) throws org.apache.thrift.TException {
+      org.apache.thrift.protocol.TField schemeField;
+      iprot.readStructBegin();
+      while (true)
+      {
+        schemeField = iprot.readFieldBegin();
+        if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
+          break;
+        }
+        switch (schemeField.id) {
+          case 1: // EXECUTION_USER
+            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+              struct.executionUser = iprot.readString();
+              struct.setExecutionUserIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 2: // METADATA
+            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+              struct.metadata = iprot.readString();
+              struct.setMetadataIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 3: // EXPERIMENT_NAME
+            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+              struct.experimentName = iprot.readString();
+              struct.setExperimentNameIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 4: // CUSTOM_EXPERIMENT_ID
+            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+              struct.customExperimentId = iprot.readString();
+              struct.setCustomExperimentIdIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 5: // WORKFLOW_SCHEDULING_SETTINGS
+            if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
+              struct.workflowSchedulingSettings = new WorkflowSchedulingSettings();
+              struct.workflowSchedulingSettings.read(iprot);
+              struct.setWorkflowSchedulingSettingsIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 6: // WORKFLOW_OUTPUT_DATA_SETTINGS
+            if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
+              struct.workflowOutputDataSettings = new WorkflowOutputDataSettings();
+              struct.workflowOutputDataSettings.read(iprot);
+              struct.setWorkflowOutputDataSettingsIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 7: // SECURITY_SETTINGS
+            if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
+              struct.securitySettings = new SecuritySettings();
+              struct.securitySettings.read(iprot);
+              struct.setSecuritySettingsIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          default:
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+        }
+        iprot.readFieldEnd();
+      }
+      iprot.readStructEnd();
+
+      // check for required fields of primitive type, which can't be checked in the validate method
+      struct.validate();
+    }
+
+    public void write(org.apache.thrift.protocol.TProtocol oprot, ExperimentAdvanceOptions struct) throws org.apache.thrift.TException {
+      struct.validate();
+
+      oprot.writeStructBegin(STRUCT_DESC);
+      if (struct.executionUser != null) {
+        oprot.writeFieldBegin(EXECUTION_USER_FIELD_DESC);
+        oprot.writeString(struct.executionUser);
+        oprot.writeFieldEnd();
+      }
+      if (struct.metadata != null) {
+        oprot.writeFieldBegin(METADATA_FIELD_DESC);
+        oprot.writeString(struct.metadata);
+        oprot.writeFieldEnd();
+      }
+      if (struct.experimentName != null) {
+        oprot.writeFieldBegin(EXPERIMENT_NAME_FIELD_DESC);
+        oprot.writeString(struct.experimentName);
+        oprot.writeFieldEnd();
+      }
+      if (struct.customExperimentId != null) {
+        oprot.writeFieldBegin(CUSTOM_EXPERIMENT_ID_FIELD_DESC);
+        oprot.writeString(struct.customExperimentId);
+        oprot.writeFieldEnd();
+      }
+      if (struct.workflowSchedulingSettings != null) {
+        oprot.writeFieldBegin(WORKFLOW_SCHEDULING_SETTINGS_FIELD_DESC);
+        struct.workflowSchedulingSettings.write(oprot);
+        oprot.writeFieldEnd();
+      }
+      if (struct.workflowOutputDataSettings != null) {
+        oprot.writeFieldBegin(WORKFLOW_OUTPUT_DATA_SETTINGS_FIELD_DESC);
+        struct.workflowOutputDataSettings.write(oprot);
+        oprot.writeFieldEnd();
+      }
+      if (struct.securitySettings != null) {
+        oprot.writeFieldBegin(SECURITY_SETTINGS_FIELD_DESC);
+        struct.securitySettings.write(oprot);
+        oprot.writeFieldEnd();
+      }
+      oprot.writeFieldStop();
+      oprot.writeStructEnd();
+    }
+
+  }
+
+  private static class ExperimentAdvanceOptionsTupleSchemeFactory implements SchemeFactory {
+    public ExperimentAdvanceOptionsTupleScheme getScheme() {
+      return new ExperimentAdvanceOptionsTupleScheme();
+    }
+  }
+
+  private static class ExperimentAdvanceOptionsTupleScheme extends TupleScheme<ExperimentAdvanceOptions> {
+
+    @Override
+    public void write(org.apache.thrift.protocol.TProtocol prot, ExperimentAdvanceOptions struct) throws org.apache.thrift.TException {
+      TTupleProtocol oprot = (TTupleProtocol) prot;
+      BitSet optionals = new BitSet();
+      if (struct.isSetExecutionUser()) {
+        optionals.set(0);
+      }
+      if (struct.isSetMetadata()) {
+        optionals.set(1);
+      }
+      if (struct.isSetExperimentName()) {
+        optionals.set(2);
+      }
+      if (struct.isSetCustomExperimentId()) {
+        optionals.set(3);
+      }
+      if (struct.isSetWorkflowSchedulingSettings()) {
+        optionals.set(4);
+      }
+      if (struct.isSetWorkflowOutputDataSettings()) {
+        optionals.set(5);
+      }
+      if (struct.isSetSecuritySettings()) {
+        optionals.set(6);
+      }
+      oprot.writeBitSet(optionals, 7);
+      if (struct.isSetExecutionUser()) {
+        oprot.writeString(struct.executionUser);
+      }
+      if (struct.isSetMetadata()) {
+        oprot.writeString(struct.metadata);
+      }
+      if (struct.isSetExperimentName()) {
+        oprot.writeString(struct.experimentName);
+      }
+      if (struct.isSetCustomExperimentId()) {
+        oprot.writeString(struct.customExperimentId);
+      }
+      if (struct.isSetWorkflowSchedulingSettings()) {
+        struct.workflowSchedulingSettings.write(oprot);
+      }
+      if (struct.isSetWorkflowOutputDataSettings()) {
+        struct.workflowOutputDataSettings.write(oprot);
+      }
+      if (struct.isSetSecuritySettings()) {
+        struct.securitySettings.write(oprot);
+      }
+    }
+
+    @Override
+    public void read(org.apache.thrift.protocol.TProtocol prot, ExperimentAdvanceOptions struct) throws org.apache.thrift.TException {
+      TTupleProtocol iprot = (TTupleProtocol) prot;
+      BitSet incoming = iprot.readBitSet(7);
+      if (incoming.get(0)) {
+        struct.executionUser = iprot.readString();
+        struct.setExecutionUserIsSet(true);
+      }
+      if (incoming.get(1)) {
+        struct.metadata = iprot.readString();
+        struct.setMetadataIsSet(true);
+      }
+      if (incoming.get(2)) {
+        struct.experimentName = iprot.readString();
+        struct.setExperimentNameIsSet(true);
+      }
+      if (incoming.get(3)) {
+        struct.customExperimentId = iprot.readString();
+        struct.setCustomExperimentIdIsSet(true);
+      }
+      if (incoming.get(4)) {
+        struct.workflowSchedulingSettings = new WorkflowSchedulingSettings();
+        struct.workflowSchedulingSettings.read(iprot);
+        struct.setWorkflowSchedulingSettingsIsSet(true);
+      }
+      if (incoming.get(5)) {
+        struct.workflowOutputDataSettings = new WorkflowOutputDataSettings();
+        struct.workflowOutputDataSettings.read(iprot);
+        struct.setWorkflowOutputDataSettingsIsSet(true);
+      }
+      if (incoming.get(6)) {
+        struct.securitySettings = new SecuritySettings();
+        struct.securitySettings.read(iprot);
+        struct.setSecuritySettingsIsSet(true);
+      }
+    }
+  }
+
+}
+

Added: airavata/trunk/modules/thrift/interpreter-service/src/main/java/org/apache/airavata/experiment/execution/HPCSettings.java
URL: http://svn.apache.org/viewvc/airavata/trunk/modules/thrift/interpreter-service/src/main/java/org/apache/airavata/experiment/execution/HPCSettings.java?rev=1541646&view=auto
==============================================================================
--- airavata/trunk/modules/thrift/interpreter-service/src/main/java/org/apache/airavata/experiment/execution/HPCSettings.java (added)
+++ airavata/trunk/modules/thrift/interpreter-service/src/main/java/org/apache/airavata/experiment/execution/HPCSettings.java Wed Nov 13 18:14:50 2013
@@ -0,0 +1,774 @@
+/**
+ * Autogenerated by Thrift Compiler (0.9.1)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ *  @generated
+ */
+package org.apache.airavata.experiment.execution;
+
+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 org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+public class HPCSettings implements org.apache.thrift.TBase<HPCSettings, HPCSettings._Fields>, java.io.Serializable, Cloneable, Comparable<HPCSettings> {
+  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("HPCSettings");
+
+  private static final org.apache.thrift.protocol.TField JOB_MANAGER_FIELD_DESC = new org.apache.thrift.protocol.TField("jobManager", org.apache.thrift.protocol.TType.STRING, (short)1);
+  private static final org.apache.thrift.protocol.TField CPU_COUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("cpuCount", org.apache.thrift.protocol.TType.I32, (short)2);
+  private static final org.apache.thrift.protocol.TField NODE_COUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("nodeCount", org.apache.thrift.protocol.TType.I32, (short)3);
+  private static final org.apache.thrift.protocol.TField QUEUE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("queueName", org.apache.thrift.protocol.TType.STRING, (short)4);
+  private static final org.apache.thrift.protocol.TField MAX_WALLTIME_FIELD_DESC = new org.apache.thrift.protocol.TField("maxWalltime", org.apache.thrift.protocol.TType.I32, (short)5);
+
+  private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+  static {
+    schemes.put(StandardScheme.class, new HPCSettingsStandardSchemeFactory());
+    schemes.put(TupleScheme.class, new HPCSettingsTupleSchemeFactory());
+  }
+
+  public String jobManager; // required
+  public int cpuCount; // required
+  public int nodeCount; // required
+  public String queueName; // required
+  public int maxWalltime; // required
+
+  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
+  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+    JOB_MANAGER((short)1, "jobManager"),
+    CPU_COUNT((short)2, "cpuCount"),
+    NODE_COUNT((short)3, "nodeCount"),
+    QUEUE_NAME((short)4, "queueName"),
+    MAX_WALLTIME((short)5, "maxWalltime");
+
+    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+
+    static {
+      for (_Fields field : EnumSet.allOf(_Fields.class)) {
+        byName.put(field.getFieldName(), field);
+      }
+    }
+
+    /**
+     * Find the _Fields constant that matches fieldId, or null if its not found.
+     */
+    public static _Fields findByThriftId(int fieldId) {
+      switch(fieldId) {
+        case 1: // JOB_MANAGER
+          return JOB_MANAGER;
+        case 2: // CPU_COUNT
+          return CPU_COUNT;
+        case 3: // NODE_COUNT
+          return NODE_COUNT;
+        case 4: // QUEUE_NAME
+          return QUEUE_NAME;
+        case 5: // MAX_WALLTIME
+          return MAX_WALLTIME;
+        default:
+          return null;
+      }
+    }
+
+    /**
+     * Find the _Fields constant that matches fieldId, throwing an exception
+     * if it is not found.
+     */
+    public static _Fields findByThriftIdOrThrow(int fieldId) {
+      _Fields fields = findByThriftId(fieldId);
+      if (fields == null) throw new 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) {
+      return byName.get(name);
+    }
+
+    private final short _thriftId;
+    private final String _fieldName;
+
+    _Fields(short thriftId, String fieldName) {
+      _thriftId = thriftId;
+      _fieldName = fieldName;
+    }
+
+    public short getThriftFieldId() {
+      return _thriftId;
+    }
+
+    public String getFieldName() {
+      return _fieldName;
+    }
+  }
+
+  // isset id assignments
+  private static final int __CPUCOUNT_ISSET_ID = 0;
+  private static final int __NODECOUNT_ISSET_ID = 1;
+  private static final int __MAXWALLTIME_ISSET_ID = 2;
+  private byte __isset_bitfield = 0;
+  public static final 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);
+    tmpMap.put(_Fields.JOB_MANAGER, new org.apache.thrift.meta_data.FieldMetaData("jobManager", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+    tmpMap.put(_Fields.CPU_COUNT, new org.apache.thrift.meta_data.FieldMetaData("cpuCount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
+    tmpMap.put(_Fields.NODE_COUNT, new org.apache.thrift.meta_data.FieldMetaData("nodeCount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
+    tmpMap.put(_Fields.QUEUE_NAME, new org.apache.thrift.meta_data.FieldMetaData("queueName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+    tmpMap.put(_Fields.MAX_WALLTIME, new org.apache.thrift.meta_data.FieldMetaData("maxWalltime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
+    metaDataMap = Collections.unmodifiableMap(tmpMap);
+    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(HPCSettings.class, metaDataMap);
+  }
+
+  public HPCSettings() {
+  }
+
+  public HPCSettings(
+    String jobManager,
+    int cpuCount,
+    int nodeCount,
+    String queueName,
+    int maxWalltime)
+  {
+    this();
+    this.jobManager = jobManager;
+    this.cpuCount = cpuCount;
+    setCpuCountIsSet(true);
+    this.nodeCount = nodeCount;
+    setNodeCountIsSet(true);
+    this.queueName = queueName;
+    this.maxWalltime = maxWalltime;
+    setMaxWalltimeIsSet(true);
+  }
+
+  /**
+   * Performs a deep copy on <i>other</i>.
+   */
+  public HPCSettings(HPCSettings other) {
+    __isset_bitfield = other.__isset_bitfield;
+    if (other.isSetJobManager()) {
+      this.jobManager = other.jobManager;
+    }
+    this.cpuCount = other.cpuCount;
+    this.nodeCount = other.nodeCount;
+    if (other.isSetQueueName()) {
+      this.queueName = other.queueName;
+    }
+    this.maxWalltime = other.maxWalltime;
+  }
+
+  public HPCSettings deepCopy() {
+    return new HPCSettings(this);
+  }
+
+  @Override
+  public void clear() {
+    this.jobManager = null;
+    setCpuCountIsSet(false);
+    this.cpuCount = 0;
+    setNodeCountIsSet(false);
+    this.nodeCount = 0;
+    this.queueName = null;
+    setMaxWalltimeIsSet(false);
+    this.maxWalltime = 0;
+  }
+
+  public String getJobManager() {
+    return this.jobManager;
+  }
+
+  public HPCSettings setJobManager(String jobManager) {
+    this.jobManager = jobManager;
+    return this;
+  }
+
+  public void unsetJobManager() {
+    this.jobManager = null;
+  }
+
+  /** Returns true if field jobManager is set (has been assigned a value) and false otherwise */
+  public boolean isSetJobManager() {
+    return this.jobManager != null;
+  }
+
+  public void setJobManagerIsSet(boolean value) {
+    if (!value) {
+      this.jobManager = null;
+    }
+  }
+
+  public int getCpuCount() {
+    return this.cpuCount;
+  }
+
+  public HPCSettings setCpuCount(int cpuCount) {
+    this.cpuCount = cpuCount;
+    setCpuCountIsSet(true);
+    return this;
+  }
+
+  public void unsetCpuCount() {
+    __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __CPUCOUNT_ISSET_ID);
+  }
+
+  /** Returns true if field cpuCount is set (has been assigned a value) and false otherwise */
+  public boolean isSetCpuCount() {
+    return EncodingUtils.testBit(__isset_bitfield, __CPUCOUNT_ISSET_ID);
+  }
+
+  public void setCpuCountIsSet(boolean value) {
+    __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __CPUCOUNT_ISSET_ID, value);
+  }
+
+  public int getNodeCount() {
+    return this.nodeCount;
+  }
+
+  public HPCSettings setNodeCount(int nodeCount) {
+    this.nodeCount = nodeCount;
+    setNodeCountIsSet(true);
+    return this;
+  }
+
+  public void unsetNodeCount() {
+    __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __NODECOUNT_ISSET_ID);
+  }
+
+  /** Returns true if field nodeCount is set (has been assigned a value) and false otherwise */
+  public boolean isSetNodeCount() {
+    return EncodingUtils.testBit(__isset_bitfield, __NODECOUNT_ISSET_ID);
+  }
+
+  public void setNodeCountIsSet(boolean value) {
+    __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __NODECOUNT_ISSET_ID, value);
+  }
+
+  public String getQueueName() {
+    return this.queueName;
+  }
+
+  public HPCSettings setQueueName(String queueName) {
+    this.queueName = queueName;
+    return this;
+  }
+
+  public void unsetQueueName() {
+    this.queueName = null;
+  }
+
+  /** Returns true if field queueName is set (has been assigned a value) and false otherwise */
+  public boolean isSetQueueName() {
+    return this.queueName != null;
+  }
+
+  public void setQueueNameIsSet(boolean value) {
+    if (!value) {
+      this.queueName = null;
+    }
+  }
+
+  public int getMaxWalltime() {
+    return this.maxWalltime;
+  }
+
+  public HPCSettings setMaxWalltime(int maxWalltime) {
+    this.maxWalltime = maxWalltime;
+    setMaxWalltimeIsSet(true);
+    return this;
+  }
+
+  public void unsetMaxWalltime() {
+    __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MAXWALLTIME_ISSET_ID);
+  }
+
+  /** Returns true if field maxWalltime is set (has been assigned a value) and false otherwise */
+  public boolean isSetMaxWalltime() {
+    return EncodingUtils.testBit(__isset_bitfield, __MAXWALLTIME_ISSET_ID);
+  }
+
+  public void setMaxWalltimeIsSet(boolean value) {
+    __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAXWALLTIME_ISSET_ID, value);
+  }
+
+  public void setFieldValue(_Fields field, Object value) {
+    switch (field) {
+    case JOB_MANAGER:
+      if (value == null) {
+        unsetJobManager();
+      } else {
+        setJobManager((String)value);
+      }
+      break;
+
+    case CPU_COUNT:
+      if (value == null) {
+        unsetCpuCount();
+      } else {
+        setCpuCount((Integer)value);
+      }
+      break;
+
+    case NODE_COUNT:
+      if (value == null) {
+        unsetNodeCount();
+      } else {
+        setNodeCount((Integer)value);
+      }
+      break;
+
+    case QUEUE_NAME:
+      if (value == null) {
+        unsetQueueName();
+      } else {
+        setQueueName((String)value);
+      }
+      break;
+
+    case MAX_WALLTIME:
+      if (value == null) {
+        unsetMaxWalltime();
+      } else {
+        setMaxWalltime((Integer)value);
+      }
+      break;
+
+    }
+  }
+
+  public Object getFieldValue(_Fields field) {
+    switch (field) {
+    case JOB_MANAGER:
+      return getJobManager();
+
+    case CPU_COUNT:
+      return Integer.valueOf(getCpuCount());
+
+    case NODE_COUNT:
+      return Integer.valueOf(getNodeCount());
+
+    case QUEUE_NAME:
+      return getQueueName();
+
+    case MAX_WALLTIME:
+      return Integer.valueOf(getMaxWalltime());
+
+    }
+    throw new 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();
+    }
+
+    switch (field) {
+    case JOB_MANAGER:
+      return isSetJobManager();
+    case CPU_COUNT:
+      return isSetCpuCount();
+    case NODE_COUNT:
+      return isSetNodeCount();
+    case QUEUE_NAME:
+      return isSetQueueName();
+    case MAX_WALLTIME:
+      return isSetMaxWalltime();
+    }
+    throw new IllegalStateException();
+  }
+
+  @Override
+  public boolean equals(Object that) {
+    if (that == null)
+      return false;
+    if (that instanceof HPCSettings)
+      return this.equals((HPCSettings)that);
+    return false;
+  }
+
+  public boolean equals(HPCSettings that) {
+    if (that == null)
+      return false;
+
+    boolean this_present_jobManager = true && this.isSetJobManager();
+    boolean that_present_jobManager = true && that.isSetJobManager();
+    if (this_present_jobManager || that_present_jobManager) {
+      if (!(this_present_jobManager && that_present_jobManager))
+        return false;
+      if (!this.jobManager.equals(that.jobManager))
+        return false;
+    }
+
+    boolean this_present_cpuCount = true;
+    boolean that_present_cpuCount = true;
+    if (this_present_cpuCount || that_present_cpuCount) {
+      if (!(this_present_cpuCount && that_present_cpuCount))
+        return false;
+      if (this.cpuCount != that.cpuCount)
+        return false;
+    }
+
+    boolean this_present_nodeCount = true;
+    boolean that_present_nodeCount = true;
+    if (this_present_nodeCount || that_present_nodeCount) {
+      if (!(this_present_nodeCount && that_present_nodeCount))
+        return false;
+      if (this.nodeCount != that.nodeCount)
+        return false;
+    }
+
+    boolean this_present_queueName = true && this.isSetQueueName();
+    boolean that_present_queueName = true && that.isSetQueueName();
+    if (this_present_queueName || that_present_queueName) {
+      if (!(this_present_queueName && that_present_queueName))
+        return false;
+      if (!this.queueName.equals(that.queueName))
+        return false;
+    }
+
+    boolean this_present_maxWalltime = true;
+    boolean that_present_maxWalltime = true;
+    if (this_present_maxWalltime || that_present_maxWalltime) {
+      if (!(this_present_maxWalltime && that_present_maxWalltime))
+        return false;
+      if (this.maxWalltime != that.maxWalltime)
+        return false;
+    }
+
+    return true;
+  }
+
+  @Override
+  public int hashCode() {
+    return 0;
+  }
+
+  @Override
+  public int compareTo(HPCSettings other) {
+    if (!getClass().equals(other.getClass())) {
+      return getClass().getName().compareTo(other.getClass().getName());
+    }
+
+    int lastComparison = 0;
+
+    lastComparison = Boolean.valueOf(isSetJobManager()).compareTo(other.isSetJobManager());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetJobManager()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.jobManager, other.jobManager);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetCpuCount()).compareTo(other.isSetCpuCount());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetCpuCount()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cpuCount, other.cpuCount);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetNodeCount()).compareTo(other.isSetNodeCount());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetNodeCount()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nodeCount, other.nodeCount);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetQueueName()).compareTo(other.isSetQueueName());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetQueueName()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.queueName, other.queueName);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetMaxWalltime()).compareTo(other.isSetMaxWalltime());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetMaxWalltime()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.maxWalltime, other.maxWalltime);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    return 0;
+  }
+
+  public _Fields fieldForId(int fieldId) {
+    return _Fields.findByThriftId(fieldId);
+  }
+
+  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
+    schemes.get(iprot.getScheme()).getScheme().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);
+  }
+
+  @Override
+  public String toString() {
+    StringBuilder sb = new StringBuilder("HPCSettings(");
+    boolean first = true;
+
+    sb.append("jobManager:");
+    if (this.jobManager == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.jobManager);
+    }
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("cpuCount:");
+    sb.append(this.cpuCount);
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("nodeCount:");
+    sb.append(this.nodeCount);
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("queueName:");
+    if (this.queueName == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.queueName);
+    }
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("maxWalltime:");
+    sb.append(this.maxWalltime);
+    first = false;
+    sb.append(")");
+    return sb.toString();
+  }
+
+  public void validate() throws org.apache.thrift.TException {
+    // check for required fields
+    // check for sub-struct validity
+  }
+
+  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+    try {
+      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
+    } catch (org.apache.thrift.TException te) {
+      throw new java.io.IOException(te);
+    }
+  }
+
+  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, 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;
+      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
+    } catch (org.apache.thrift.TException te) {
+      throw new java.io.IOException(te);
+    }
+  }
+
+  private static class HPCSettingsStandardSchemeFactory implements SchemeFactory {
+    public HPCSettingsStandardScheme getScheme() {
+      return new HPCSettingsStandardScheme();
+    }
+  }
+
+  private static class HPCSettingsStandardScheme extends StandardScheme<HPCSettings> {
+
+    public void read(org.apache.thrift.protocol.TProtocol iprot, HPCSettings struct) throws org.apache.thrift.TException {
+      org.apache.thrift.protocol.TField schemeField;
+      iprot.readStructBegin();
+      while (true)
+      {
+        schemeField = iprot.readFieldBegin();
+        if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
+          break;
+        }
+        switch (schemeField.id) {
+          case 1: // JOB_MANAGER
+            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+              struct.jobManager = iprot.readString();
+              struct.setJobManagerIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 2: // CPU_COUNT
+            if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
+              struct.cpuCount = iprot.readI32();
+              struct.setCpuCountIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 3: // NODE_COUNT
+            if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
+              struct.nodeCount = iprot.readI32();
+              struct.setNodeCountIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 4: // QUEUE_NAME
+            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+              struct.queueName = iprot.readString();
+              struct.setQueueNameIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 5: // MAX_WALLTIME
+            if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
+              struct.maxWalltime = iprot.readI32();
+              struct.setMaxWalltimeIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          default:
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+        }
+        iprot.readFieldEnd();
+      }
+      iprot.readStructEnd();
+
+      // check for required fields of primitive type, which can't be checked in the validate method
+      struct.validate();
+    }
+
+    public void write(org.apache.thrift.protocol.TProtocol oprot, HPCSettings struct) throws org.apache.thrift.TException {
+      struct.validate();
+
+      oprot.writeStructBegin(STRUCT_DESC);
+      if (struct.jobManager != null) {
+        oprot.writeFieldBegin(JOB_MANAGER_FIELD_DESC);
+        oprot.writeString(struct.jobManager);
+        oprot.writeFieldEnd();
+      }
+      oprot.writeFieldBegin(CPU_COUNT_FIELD_DESC);
+      oprot.writeI32(struct.cpuCount);
+      oprot.writeFieldEnd();
+      oprot.writeFieldBegin(NODE_COUNT_FIELD_DESC);
+      oprot.writeI32(struct.nodeCount);
+      oprot.writeFieldEnd();
+      if (struct.queueName != null) {
+        oprot.writeFieldBegin(QUEUE_NAME_FIELD_DESC);
+        oprot.writeString(struct.queueName);
+        oprot.writeFieldEnd();
+      }
+      oprot.writeFieldBegin(MAX_WALLTIME_FIELD_DESC);
+      oprot.writeI32(struct.maxWalltime);
+      oprot.writeFieldEnd();
+      oprot.writeFieldStop();
+      oprot.writeStructEnd();
+    }
+
+  }
+
+  private static class HPCSettingsTupleSchemeFactory implements SchemeFactory {
+    public HPCSettingsTupleScheme getScheme() {
+      return new HPCSettingsTupleScheme();
+    }
+  }
+
+  private static class HPCSettingsTupleScheme extends TupleScheme<HPCSettings> {
+
+    @Override
+    public void write(org.apache.thrift.protocol.TProtocol prot, HPCSettings struct) throws org.apache.thrift.TException {
+      TTupleProtocol oprot = (TTupleProtocol) prot;
+      BitSet optionals = new BitSet();
+      if (struct.isSetJobManager()) {
+        optionals.set(0);
+      }
+      if (struct.isSetCpuCount()) {
+        optionals.set(1);
+      }
+      if (struct.isSetNodeCount()) {
+        optionals.set(2);
+      }
+      if (struct.isSetQueueName()) {
+        optionals.set(3);
+      }
+      if (struct.isSetMaxWalltime()) {
+        optionals.set(4);
+      }
+      oprot.writeBitSet(optionals, 5);
+      if (struct.isSetJobManager()) {
+        oprot.writeString(struct.jobManager);
+      }
+      if (struct.isSetCpuCount()) {
+        oprot.writeI32(struct.cpuCount);
+      }
+      if (struct.isSetNodeCount()) {
+        oprot.writeI32(struct.nodeCount);
+      }
+      if (struct.isSetQueueName()) {
+        oprot.writeString(struct.queueName);
+      }
+      if (struct.isSetMaxWalltime()) {
+        oprot.writeI32(struct.maxWalltime);
+      }
+    }
+
+    @Override
+    public void read(org.apache.thrift.protocol.TProtocol prot, HPCSettings struct) throws org.apache.thrift.TException {
+      TTupleProtocol iprot = (TTupleProtocol) prot;
+      BitSet incoming = iprot.readBitSet(5);
+      if (incoming.get(0)) {
+        struct.jobManager = iprot.readString();
+        struct.setJobManagerIsSet(true);
+      }
+      if (incoming.get(1)) {
+        struct.cpuCount = iprot.readI32();
+        struct.setCpuCountIsSet(true);
+      }
+      if (incoming.get(2)) {
+        struct.nodeCount = iprot.readI32();
+        struct.setNodeCountIsSet(true);
+      }
+      if (incoming.get(3)) {
+        struct.queueName = iprot.readString();
+        struct.setQueueNameIsSet(true);
+      }
+      if (incoming.get(4)) {
+        struct.maxWalltime = iprot.readI32();
+        struct.setMaxWalltimeIsSet(true);
+      }
+    }
+  }
+
+}
+

Added: airavata/trunk/modules/thrift/interpreter-service/src/main/java/org/apache/airavata/experiment/execution/HostSchedulingSettings.java
URL: http://svn.apache.org/viewvc/airavata/trunk/modules/thrift/interpreter-service/src/main/java/org/apache/airavata/experiment/execution/HostSchedulingSettings.java?rev=1541646&view=auto
==============================================================================
--- airavata/trunk/modules/thrift/interpreter-service/src/main/java/org/apache/airavata/experiment/execution/HostSchedulingSettings.java (added)
+++ airavata/trunk/modules/thrift/interpreter-service/src/main/java/org/apache/airavata/experiment/execution/HostSchedulingSettings.java Wed Nov 13 18:14:50 2013
@@ -0,0 +1,586 @@
+/**
+ * Autogenerated by Thrift Compiler (0.9.1)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ *  @generated
+ */
+package org.apache.airavata.experiment.execution;
+
+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 org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+public class HostSchedulingSettings implements org.apache.thrift.TBase<HostSchedulingSettings, HostSchedulingSettings._Fields>, java.io.Serializable, Cloneable, Comparable<HostSchedulingSettings> {
+  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("HostSchedulingSettings");
+
+  private static final org.apache.thrift.protocol.TField HOST_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("hostID", org.apache.thrift.protocol.TType.STRING, (short)1);
+  private static final org.apache.thrift.protocol.TField IS_WSGRAM_PREFERRED_FIELD_DESC = new org.apache.thrift.protocol.TField("isWSGramPreferred", org.apache.thrift.protocol.TType.BOOL, (short)2);
+  private static final org.apache.thrift.protocol.TField GATEKEEPER_EPR_FIELD_DESC = new org.apache.thrift.protocol.TField("gatekeeperEPR", org.apache.thrift.protocol.TType.STRING, (short)3);
+
+  private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+  static {
+    schemes.put(StandardScheme.class, new HostSchedulingSettingsStandardSchemeFactory());
+    schemes.put(TupleScheme.class, new HostSchedulingSettingsTupleSchemeFactory());
+  }
+
+  public String hostID; // required
+  public boolean isWSGramPreferred; // required
+  public String gatekeeperEPR; // required
+
+  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
+  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+    HOST_ID((short)1, "hostID"),
+    IS_WSGRAM_PREFERRED((short)2, "isWSGramPreferred"),
+    GATEKEEPER_EPR((short)3, "gatekeeperEPR");
+
+    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+
+    static {
+      for (_Fields field : EnumSet.allOf(_Fields.class)) {
+        byName.put(field.getFieldName(), field);
+      }
+    }
+
+    /**
+     * Find the _Fields constant that matches fieldId, or null if its not found.
+     */
+    public static _Fields findByThriftId(int fieldId) {
+      switch(fieldId) {
+        case 1: // HOST_ID
+          return HOST_ID;
+        case 2: // IS_WSGRAM_PREFERRED
+          return IS_WSGRAM_PREFERRED;
+        case 3: // GATEKEEPER_EPR
+          return GATEKEEPER_EPR;
+        default:
+          return null;
+      }
+    }
+
+    /**
+     * Find the _Fields constant that matches fieldId, throwing an exception
+     * if it is not found.
+     */
+    public static _Fields findByThriftIdOrThrow(int fieldId) {
+      _Fields fields = findByThriftId(fieldId);
+      if (fields == null) throw new 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) {
+      return byName.get(name);
+    }
+
+    private final short _thriftId;
+    private final String _fieldName;
+
+    _Fields(short thriftId, String fieldName) {
+      _thriftId = thriftId;
+      _fieldName = fieldName;
+    }
+
+    public short getThriftFieldId() {
+      return _thriftId;
+    }
+
+    public String getFieldName() {
+      return _fieldName;
+    }
+  }
+
+  // isset id assignments
+  private static final int __ISWSGRAMPREFERRED_ISSET_ID = 0;
+  private byte __isset_bitfield = 0;
+  public static final 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);
+    tmpMap.put(_Fields.HOST_ID, new org.apache.thrift.meta_data.FieldMetaData("hostID", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+    tmpMap.put(_Fields.IS_WSGRAM_PREFERRED, new org.apache.thrift.meta_data.FieldMetaData("isWSGramPreferred", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
+    tmpMap.put(_Fields.GATEKEEPER_EPR, new org.apache.thrift.meta_data.FieldMetaData("gatekeeperEPR", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+    metaDataMap = Collections.unmodifiableMap(tmpMap);
+    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(HostSchedulingSettings.class, metaDataMap);
+  }
+
+  public HostSchedulingSettings() {
+  }
+
+  public HostSchedulingSettings(
+    String hostID,
+    boolean isWSGramPreferred,
+    String gatekeeperEPR)
+  {
+    this();
+    this.hostID = hostID;
+    this.isWSGramPreferred = isWSGramPreferred;
+    setIsWSGramPreferredIsSet(true);
+    this.gatekeeperEPR = gatekeeperEPR;
+  }
+
+  /**
+   * Performs a deep copy on <i>other</i>.
+   */
+  public HostSchedulingSettings(HostSchedulingSettings other) {
+    __isset_bitfield = other.__isset_bitfield;
+    if (other.isSetHostID()) {
+      this.hostID = other.hostID;
+    }
+    this.isWSGramPreferred = other.isWSGramPreferred;
+    if (other.isSetGatekeeperEPR()) {
+      this.gatekeeperEPR = other.gatekeeperEPR;
+    }
+  }
+
+  public HostSchedulingSettings deepCopy() {
+    return new HostSchedulingSettings(this);
+  }
+
+  @Override
+  public void clear() {
+    this.hostID = null;
+    setIsWSGramPreferredIsSet(false);
+    this.isWSGramPreferred = false;
+    this.gatekeeperEPR = null;
+  }
+
+  public String getHostID() {
+    return this.hostID;
+  }
+
+  public HostSchedulingSettings setHostID(String hostID) {
+    this.hostID = hostID;
+    return this;
+  }
+
+  public void unsetHostID() {
+    this.hostID = null;
+  }
+
+  /** Returns true if field hostID is set (has been assigned a value) and false otherwise */
+  public boolean isSetHostID() {
+    return this.hostID != null;
+  }
+
+  public void setHostIDIsSet(boolean value) {
+    if (!value) {
+      this.hostID = null;
+    }
+  }
+
+  public boolean isIsWSGramPreferred() {
+    return this.isWSGramPreferred;
+  }
+
+  public HostSchedulingSettings setIsWSGramPreferred(boolean isWSGramPreferred) {
+    this.isWSGramPreferred = isWSGramPreferred;
+    setIsWSGramPreferredIsSet(true);
+    return this;
+  }
+
+  public void unsetIsWSGramPreferred() {
+    __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ISWSGRAMPREFERRED_ISSET_ID);
+  }
+
+  /** Returns true if field isWSGramPreferred is set (has been assigned a value) and false otherwise */
+  public boolean isSetIsWSGramPreferred() {
+    return EncodingUtils.testBit(__isset_bitfield, __ISWSGRAMPREFERRED_ISSET_ID);
+  }
+
+  public void setIsWSGramPreferredIsSet(boolean value) {
+    __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ISWSGRAMPREFERRED_ISSET_ID, value);
+  }
+
+  public String getGatekeeperEPR() {
+    return this.gatekeeperEPR;
+  }
+
+  public HostSchedulingSettings setGatekeeperEPR(String gatekeeperEPR) {
+    this.gatekeeperEPR = gatekeeperEPR;
+    return this;
+  }
+
+  public void unsetGatekeeperEPR() {
+    this.gatekeeperEPR = null;
+  }
+
+  /** Returns true if field gatekeeperEPR is set (has been assigned a value) and false otherwise */
+  public boolean isSetGatekeeperEPR() {
+    return this.gatekeeperEPR != null;
+  }
+
+  public void setGatekeeperEPRIsSet(boolean value) {
+    if (!value) {
+      this.gatekeeperEPR = null;
+    }
+  }
+
+  public void setFieldValue(_Fields field, Object value) {
+    switch (field) {
+    case HOST_ID:
+      if (value == null) {
+        unsetHostID();
+      } else {
+        setHostID((String)value);
+      }
+      break;
+
+    case IS_WSGRAM_PREFERRED:
+      if (value == null) {
+        unsetIsWSGramPreferred();
+      } else {
+        setIsWSGramPreferred((Boolean)value);
+      }
+      break;
+
+    case GATEKEEPER_EPR:
+      if (value == null) {
+        unsetGatekeeperEPR();
+      } else {
+        setGatekeeperEPR((String)value);
+      }
+      break;
+
+    }
+  }
+
+  public Object getFieldValue(_Fields field) {
+    switch (field) {
+    case HOST_ID:
+      return getHostID();
+
+    case IS_WSGRAM_PREFERRED:
+      return Boolean.valueOf(isIsWSGramPreferred());
+
+    case GATEKEEPER_EPR:
+      return getGatekeeperEPR();
+
+    }
+    throw new 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();
+    }
+
+    switch (field) {
+    case HOST_ID:
+      return isSetHostID();
+    case IS_WSGRAM_PREFERRED:
+      return isSetIsWSGramPreferred();
+    case GATEKEEPER_EPR:
+      return isSetGatekeeperEPR();
+    }
+    throw new IllegalStateException();
+  }
+
+  @Override
+  public boolean equals(Object that) {
+    if (that == null)
+      return false;
+    if (that instanceof HostSchedulingSettings)
+      return this.equals((HostSchedulingSettings)that);
+    return false;
+  }
+
+  public boolean equals(HostSchedulingSettings that) {
+    if (that == null)
+      return false;
+
+    boolean this_present_hostID = true && this.isSetHostID();
+    boolean that_present_hostID = true && that.isSetHostID();
+    if (this_present_hostID || that_present_hostID) {
+      if (!(this_present_hostID && that_present_hostID))
+        return false;
+      if (!this.hostID.equals(that.hostID))
+        return false;
+    }
+
+    boolean this_present_isWSGramPreferred = true;
+    boolean that_present_isWSGramPreferred = true;
+    if (this_present_isWSGramPreferred || that_present_isWSGramPreferred) {
+      if (!(this_present_isWSGramPreferred && that_present_isWSGramPreferred))
+        return false;
+      if (this.isWSGramPreferred != that.isWSGramPreferred)
+        return false;
+    }
+
+    boolean this_present_gatekeeperEPR = true && this.isSetGatekeeperEPR();
+    boolean that_present_gatekeeperEPR = true && that.isSetGatekeeperEPR();
+    if (this_present_gatekeeperEPR || that_present_gatekeeperEPR) {
+      if (!(this_present_gatekeeperEPR && that_present_gatekeeperEPR))
+        return false;
+      if (!this.gatekeeperEPR.equals(that.gatekeeperEPR))
+        return false;
+    }
+
+    return true;
+  }
+
+  @Override
+  public int hashCode() {
+    return 0;
+  }
+
+  @Override
+  public int compareTo(HostSchedulingSettings other) {
+    if (!getClass().equals(other.getClass())) {
+      return getClass().getName().compareTo(other.getClass().getName());
+    }
+
+    int lastComparison = 0;
+
+    lastComparison = Boolean.valueOf(isSetHostID()).compareTo(other.isSetHostID());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetHostID()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hostID, other.hostID);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetIsWSGramPreferred()).compareTo(other.isSetIsWSGramPreferred());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetIsWSGramPreferred()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isWSGramPreferred, other.isWSGramPreferred);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetGatekeeperEPR()).compareTo(other.isSetGatekeeperEPR());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetGatekeeperEPR()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatekeeperEPR, other.gatekeeperEPR);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    return 0;
+  }
+
+  public _Fields fieldForId(int fieldId) {
+    return _Fields.findByThriftId(fieldId);
+  }
+
+  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
+    schemes.get(iprot.getScheme()).getScheme().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);
+  }
+
+  @Override
+  public String toString() {
+    StringBuilder sb = new StringBuilder("HostSchedulingSettings(");
+    boolean first = true;
+
+    sb.append("hostID:");
+    if (this.hostID == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.hostID);
+    }
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("isWSGramPreferred:");
+    sb.append(this.isWSGramPreferred);
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("gatekeeperEPR:");
+    if (this.gatekeeperEPR == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.gatekeeperEPR);
+    }
+    first = false;
+    sb.append(")");
+    return sb.toString();
+  }
+
+  public void validate() throws org.apache.thrift.TException {
+    // check for required fields
+    // check for sub-struct validity
+  }
+
+  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+    try {
+      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
+    } catch (org.apache.thrift.TException te) {
+      throw new java.io.IOException(te);
+    }
+  }
+
+  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, 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;
+      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
+    } catch (org.apache.thrift.TException te) {
+      throw new java.io.IOException(te);
+    }
+  }
+
+  private static class HostSchedulingSettingsStandardSchemeFactory implements SchemeFactory {
+    public HostSchedulingSettingsStandardScheme getScheme() {
+      return new HostSchedulingSettingsStandardScheme();
+    }
+  }
+
+  private static class HostSchedulingSettingsStandardScheme extends StandardScheme<HostSchedulingSettings> {
+
+    public void read(org.apache.thrift.protocol.TProtocol iprot, HostSchedulingSettings struct) throws org.apache.thrift.TException {
+      org.apache.thrift.protocol.TField schemeField;
+      iprot.readStructBegin();
+      while (true)
+      {
+        schemeField = iprot.readFieldBegin();
+        if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
+          break;
+        }
+        switch (schemeField.id) {
+          case 1: // HOST_ID
+            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+              struct.hostID = iprot.readString();
+              struct.setHostIDIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 2: // IS_WSGRAM_PREFERRED
+            if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
+              struct.isWSGramPreferred = iprot.readBool();
+              struct.setIsWSGramPreferredIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 3: // GATEKEEPER_EPR
+            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+              struct.gatekeeperEPR = iprot.readString();
+              struct.setGatekeeperEPRIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          default:
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+        }
+        iprot.readFieldEnd();
+      }
+      iprot.readStructEnd();
+
+      // check for required fields of primitive type, which can't be checked in the validate method
+      struct.validate();
+    }
+
+    public void write(org.apache.thrift.protocol.TProtocol oprot, HostSchedulingSettings struct) throws org.apache.thrift.TException {
+      struct.validate();
+
+      oprot.writeStructBegin(STRUCT_DESC);
+      if (struct.hostID != null) {
+        oprot.writeFieldBegin(HOST_ID_FIELD_DESC);
+        oprot.writeString(struct.hostID);
+        oprot.writeFieldEnd();
+      }
+      oprot.writeFieldBegin(IS_WSGRAM_PREFERRED_FIELD_DESC);
+      oprot.writeBool(struct.isWSGramPreferred);
+      oprot.writeFieldEnd();
+      if (struct.gatekeeperEPR != null) {
+        oprot.writeFieldBegin(GATEKEEPER_EPR_FIELD_DESC);
+        oprot.writeString(struct.gatekeeperEPR);
+        oprot.writeFieldEnd();
+      }
+      oprot.writeFieldStop();
+      oprot.writeStructEnd();
+    }
+
+  }
+
+  private static class HostSchedulingSettingsTupleSchemeFactory implements SchemeFactory {
+    public HostSchedulingSettingsTupleScheme getScheme() {
+      return new HostSchedulingSettingsTupleScheme();
+    }
+  }
+
+  private static class HostSchedulingSettingsTupleScheme extends TupleScheme<HostSchedulingSettings> {
+
+    @Override
+    public void write(org.apache.thrift.protocol.TProtocol prot, HostSchedulingSettings struct) throws org.apache.thrift.TException {
+      TTupleProtocol oprot = (TTupleProtocol) prot;
+      BitSet optionals = new BitSet();
+      if (struct.isSetHostID()) {
+        optionals.set(0);
+      }
+      if (struct.isSetIsWSGramPreferred()) {
+        optionals.set(1);
+      }
+      if (struct.isSetGatekeeperEPR()) {
+        optionals.set(2);
+      }
+      oprot.writeBitSet(optionals, 3);
+      if (struct.isSetHostID()) {
+        oprot.writeString(struct.hostID);
+      }
+      if (struct.isSetIsWSGramPreferred()) {
+        oprot.writeBool(struct.isWSGramPreferred);
+      }
+      if (struct.isSetGatekeeperEPR()) {
+        oprot.writeString(struct.gatekeeperEPR);
+      }
+    }
+
+    @Override
+    public void read(org.apache.thrift.protocol.TProtocol prot, HostSchedulingSettings struct) throws org.apache.thrift.TException {
+      TTupleProtocol iprot = (TTupleProtocol) prot;
+      BitSet incoming = iprot.readBitSet(3);
+      if (incoming.get(0)) {
+        struct.hostID = iprot.readString();
+        struct.setHostIDIsSet(true);
+      }
+      if (incoming.get(1)) {
+        struct.isWSGramPreferred = iprot.readBool();
+        struct.setIsWSGramPreferredIsSet(true);
+      }
+      if (incoming.get(2)) {
+        struct.gatekeeperEPR = iprot.readString();
+        struct.setGatekeeperEPRIsSet(true);
+      }
+    }
+  }
+
+}
+