You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by sm...@apache.org on 2014/06/29 16:41:50 UTC

[1/8] Generated data models of app catalog

Repository: airavata
Updated Branches:
  refs/heads/master abd7f1981 -> 6843720ac


http://git-wip-us.apache.org/repos/asf/airavata/blob/227c78db/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/interface/InputDataObjectType.java
----------------------------------------------------------------------
diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/interface/InputDataObjectType.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/interface/InputDataObjectType.java
new file mode 100644
index 0000000..2b81de0
--- /dev/null
+++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/interface/InputDataObjectType.java
@@ -0,0 +1,1134 @@
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+/**
+ * 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.model.application.interface;
+
+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;
+
+/**
+ * Application Inputs. The paramters describe how inputs are passed to the application.
+ * 
+ * name:
+ *   Name of the parameter.
+ * 
+ * value:
+ *   Value of the parameter. A default value could be set during registration.
+ * 
+ * type:
+ *   Data type of the parameter
+ * 
+ * applicationArguement:
+ *   The argument flag sent to the application. Such as -p pressure.
+ * 
+ * standardInput:
+ *   When this value is set, the parameter is sent as standard input rather than a parameter.
+ *   Typically this is passed using redirection operator ">".
+ * 
+ * userFriendlyDescription:
+ *   Description to be displayed at the user interface.
+ * 
+ * metaData:
+ *   Any metadat. This is typically ignore by Airavata and is used by gateways for application configuration.
+ * 
+ */
+@SuppressWarnings("all") public class InputDataObjectType implements org.apache.thrift.TBase<InputDataObjectType, InputDataObjectType._Fields>, java.io.Serializable, Cloneable, Comparable<InputDataObjectType> {
+  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("InputDataObjectType");
+
+  private static final org.apache.thrift.protocol.TField IS_EMPTY_FIELD_DESC = new org.apache.thrift.protocol.TField("isEmpty", org.apache.thrift.protocol.TType.BOOL, (short)1);
+  private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)2);
+  private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("value", org.apache.thrift.protocol.TType.STRING, (short)3);
+  private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.I32, (short)4);
+  private static final org.apache.thrift.protocol.TField APPLICATION_ARGUEMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("applicationArguement", org.apache.thrift.protocol.TType.STRING, (short)5);
+  private static final org.apache.thrift.protocol.TField STANDARD_INPUT_FIELD_DESC = new org.apache.thrift.protocol.TField("standardInput", org.apache.thrift.protocol.TType.BOOL, (short)6);
+  private static final org.apache.thrift.protocol.TField USER_FRIENDLY_DESCRIPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("userFriendlyDescription", org.apache.thrift.protocol.TType.STRING, (short)7);
+  private static final org.apache.thrift.protocol.TField META_DATA_FIELD_DESC = new org.apache.thrift.protocol.TField("metaData", org.apache.thrift.protocol.TType.STRING, (short)8);
+
+  private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+  static {
+    schemes.put(StandardScheme.class, new InputDataObjectTypeStandardSchemeFactory());
+    schemes.put(TupleScheme.class, new InputDataObjectTypeTupleSchemeFactory());
+  }
+
+  private boolean isEmpty; // required
+  private String name; // required
+  private String value; // optional
+  private DataType type; // optional
+  private String applicationArguement; // optional
+  private boolean standardInput; // optional
+  private String userFriendlyDescription; // optional
+  private String metaData; // optional
+
+  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
+  @SuppressWarnings("all") public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+    IS_EMPTY((short)1, "isEmpty"),
+    NAME((short)2, "name"),
+    VALUE((short)3, "value"),
+    /**
+     * 
+     * @see DataType
+     */
+    TYPE((short)4, "type"),
+    APPLICATION_ARGUEMENT((short)5, "applicationArguement"),
+    STANDARD_INPUT((short)6, "standardInput"),
+    USER_FRIENDLY_DESCRIPTION((short)7, "userFriendlyDescription"),
+    META_DATA((short)8, "metaData");
+
+    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: // IS_EMPTY
+          return IS_EMPTY;
+        case 2: // NAME
+          return NAME;
+        case 3: // VALUE
+          return VALUE;
+        case 4: // TYPE
+          return TYPE;
+        case 5: // APPLICATION_ARGUEMENT
+          return APPLICATION_ARGUEMENT;
+        case 6: // STANDARD_INPUT
+          return STANDARD_INPUT;
+        case 7: // USER_FRIENDLY_DESCRIPTION
+          return USER_FRIENDLY_DESCRIPTION;
+        case 8: // META_DATA
+          return META_DATA;
+        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 __ISEMPTY_ISSET_ID = 0;
+  private static final int __STANDARDINPUT_ISSET_ID = 1;
+  private byte __isset_bitfield = 0;
+  private _Fields optionals[] = {_Fields.VALUE,_Fields.TYPE,_Fields.APPLICATION_ARGUEMENT,_Fields.STANDARD_INPUT,_Fields.USER_FRIENDLY_DESCRIPTION,_Fields.META_DATA};
+  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.IS_EMPTY, new org.apache.thrift.meta_data.FieldMetaData("isEmpty", org.apache.thrift.TFieldRequirementType.REQUIRED, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
+    tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.REQUIRED, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+    tmpMap.put(_Fields.VALUE, new org.apache.thrift.meta_data.FieldMetaData("value", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+    tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
+        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DataType.class)));
+    tmpMap.put(_Fields.APPLICATION_ARGUEMENT, new org.apache.thrift.meta_data.FieldMetaData("applicationArguement", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+    tmpMap.put(_Fields.STANDARD_INPUT, new org.apache.thrift.meta_data.FieldMetaData("standardInput", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
+    tmpMap.put(_Fields.USER_FRIENDLY_DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("userFriendlyDescription", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+    tmpMap.put(_Fields.META_DATA, new org.apache.thrift.meta_data.FieldMetaData("metaData", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+    metaDataMap = Collections.unmodifiableMap(tmpMap);
+    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(InputDataObjectType.class, metaDataMap);
+  }
+
+  public InputDataObjectType() {
+    this.isEmpty = false;
+
+    this.standardInput = false;
+
+  }
+
+  public InputDataObjectType(
+    boolean isEmpty,
+    String name)
+  {
+    this();
+    this.isEmpty = isEmpty;
+    setIsEmptyIsSet(true);
+    this.name = name;
+  }
+
+  /**
+   * Performs a deep copy on <i>other</i>.
+   */
+  public InputDataObjectType(InputDataObjectType other) {
+    __isset_bitfield = other.__isset_bitfield;
+    this.isEmpty = other.isEmpty;
+    if (other.isSetName()) {
+      this.name = other.name;
+    }
+    if (other.isSetValue()) {
+      this.value = other.value;
+    }
+    if (other.isSetType()) {
+      this.type = other.type;
+    }
+    if (other.isSetApplicationArguement()) {
+      this.applicationArguement = other.applicationArguement;
+    }
+    this.standardInput = other.standardInput;
+    if (other.isSetUserFriendlyDescription()) {
+      this.userFriendlyDescription = other.userFriendlyDescription;
+    }
+    if (other.isSetMetaData()) {
+      this.metaData = other.metaData;
+    }
+  }
+
+  public InputDataObjectType deepCopy() {
+    return new InputDataObjectType(this);
+  }
+
+  @Override
+  public void clear() {
+    this.isEmpty = false;
+
+    this.name = null;
+    this.value = null;
+    this.type = null;
+    this.applicationArguement = null;
+    this.standardInput = false;
+
+    this.userFriendlyDescription = null;
+    this.metaData = null;
+  }
+
+  public boolean isIsEmpty() {
+    return this.isEmpty;
+  }
+
+  public void setIsEmpty(boolean isEmpty) {
+    this.isEmpty = isEmpty;
+    setIsEmptyIsSet(true);
+  }
+
+  public void unsetIsEmpty() {
+    __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ISEMPTY_ISSET_ID);
+  }
+
+  /** Returns true if field isEmpty is set (has been assigned a value) and false otherwise */
+  public boolean isSetIsEmpty() {
+    return EncodingUtils.testBit(__isset_bitfield, __ISEMPTY_ISSET_ID);
+  }
+
+  public void setIsEmptyIsSet(boolean value) {
+    __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ISEMPTY_ISSET_ID, value);
+  }
+
+  public String getName() {
+    return this.name;
+  }
+
+  public void setName(String name) {
+    this.name = name;
+  }
+
+  public void unsetName() {
+    this.name = null;
+  }
+
+  /** Returns true if field name is set (has been assigned a value) and false otherwise */
+  public boolean isSetName() {
+    return this.name != null;
+  }
+
+  public void setNameIsSet(boolean value) {
+    if (!value) {
+      this.name = null;
+    }
+  }
+
+  public String getValue() {
+    return this.value;
+  }
+
+  public void setValue(String value) {
+    this.value = value;
+  }
+
+  public void unsetValue() {
+    this.value = null;
+  }
+
+  /** Returns true if field value is set (has been assigned a value) and false otherwise */
+  public boolean isSetValue() {
+    return this.value != null;
+  }
+
+  public void setValueIsSet(boolean value) {
+    if (!value) {
+      this.value = null;
+    }
+  }
+
+  /**
+   * 
+   * @see DataType
+   */
+  public DataType getType() {
+    return this.type;
+  }
+
+  /**
+   * 
+   * @see DataType
+   */
+  public void setType(DataType type) {
+    this.type = type;
+  }
+
+  public void unsetType() {
+    this.type = null;
+  }
+
+  /** Returns true if field type is set (has been assigned a value) and false otherwise */
+  public boolean isSetType() {
+    return this.type != null;
+  }
+
+  public void setTypeIsSet(boolean value) {
+    if (!value) {
+      this.type = null;
+    }
+  }
+
+  public String getApplicationArguement() {
+    return this.applicationArguement;
+  }
+
+  public void setApplicationArguement(String applicationArguement) {
+    this.applicationArguement = applicationArguement;
+  }
+
+  public void unsetApplicationArguement() {
+    this.applicationArguement = null;
+  }
+
+  /** Returns true if field applicationArguement is set (has been assigned a value) and false otherwise */
+  public boolean isSetApplicationArguement() {
+    return this.applicationArguement != null;
+  }
+
+  public void setApplicationArguementIsSet(boolean value) {
+    if (!value) {
+      this.applicationArguement = null;
+    }
+  }
+
+  public boolean isStandardInput() {
+    return this.standardInput;
+  }
+
+  public void setStandardInput(boolean standardInput) {
+    this.standardInput = standardInput;
+    setStandardInputIsSet(true);
+  }
+
+  public void unsetStandardInput() {
+    __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __STANDARDINPUT_ISSET_ID);
+  }
+
+  /** Returns true if field standardInput is set (has been assigned a value) and false otherwise */
+  public boolean isSetStandardInput() {
+    return EncodingUtils.testBit(__isset_bitfield, __STANDARDINPUT_ISSET_ID);
+  }
+
+  public void setStandardInputIsSet(boolean value) {
+    __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __STANDARDINPUT_ISSET_ID, value);
+  }
+
+  public String getUserFriendlyDescription() {
+    return this.userFriendlyDescription;
+  }
+
+  public void setUserFriendlyDescription(String userFriendlyDescription) {
+    this.userFriendlyDescription = userFriendlyDescription;
+  }
+
+  public void unsetUserFriendlyDescription() {
+    this.userFriendlyDescription = null;
+  }
+
+  /** Returns true if field userFriendlyDescription is set (has been assigned a value) and false otherwise */
+  public boolean isSetUserFriendlyDescription() {
+    return this.userFriendlyDescription != null;
+  }
+
+  public void setUserFriendlyDescriptionIsSet(boolean value) {
+    if (!value) {
+      this.userFriendlyDescription = null;
+    }
+  }
+
+  public String getMetaData() {
+    return this.metaData;
+  }
+
+  public void setMetaData(String metaData) {
+    this.metaData = metaData;
+  }
+
+  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 void setFieldValue(_Fields field, Object value) {
+    switch (field) {
+    case IS_EMPTY:
+      if (value == null) {
+        unsetIsEmpty();
+      } else {
+        setIsEmpty((Boolean)value);
+      }
+      break;
+
+    case NAME:
+      if (value == null) {
+        unsetName();
+      } else {
+        setName((String)value);
+      }
+      break;
+
+    case VALUE:
+      if (value == null) {
+        unsetValue();
+      } else {
+        setValue((String)value);
+      }
+      break;
+
+    case TYPE:
+      if (value == null) {
+        unsetType();
+      } else {
+        setType((DataType)value);
+      }
+      break;
+
+    case APPLICATION_ARGUEMENT:
+      if (value == null) {
+        unsetApplicationArguement();
+      } else {
+        setApplicationArguement((String)value);
+      }
+      break;
+
+    case STANDARD_INPUT:
+      if (value == null) {
+        unsetStandardInput();
+      } else {
+        setStandardInput((Boolean)value);
+      }
+      break;
+
+    case USER_FRIENDLY_DESCRIPTION:
+      if (value == null) {
+        unsetUserFriendlyDescription();
+      } else {
+        setUserFriendlyDescription((String)value);
+      }
+      break;
+
+    case META_DATA:
+      if (value == null) {
+        unsetMetaData();
+      } else {
+        setMetaData((String)value);
+      }
+      break;
+
+    }
+  }
+
+  public Object getFieldValue(_Fields field) {
+    switch (field) {
+    case IS_EMPTY:
+      return Boolean.valueOf(isIsEmpty());
+
+    case NAME:
+      return getName();
+
+    case VALUE:
+      return getValue();
+
+    case TYPE:
+      return getType();
+
+    case APPLICATION_ARGUEMENT:
+      return getApplicationArguement();
+
+    case STANDARD_INPUT:
+      return Boolean.valueOf(isStandardInput());
+
+    case USER_FRIENDLY_DESCRIPTION:
+      return getUserFriendlyDescription();
+
+    case META_DATA:
+      return getMetaData();
+
+    }
+    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 IS_EMPTY:
+      return isSetIsEmpty();
+    case NAME:
+      return isSetName();
+    case VALUE:
+      return isSetValue();
+    case TYPE:
+      return isSetType();
+    case APPLICATION_ARGUEMENT:
+      return isSetApplicationArguement();
+    case STANDARD_INPUT:
+      return isSetStandardInput();
+    case USER_FRIENDLY_DESCRIPTION:
+      return isSetUserFriendlyDescription();
+    case META_DATA:
+      return isSetMetaData();
+    }
+    throw new IllegalStateException();
+  }
+
+  @Override
+  public boolean equals(Object that) {
+    if (that == null)
+      return false;
+    if (that instanceof InputDataObjectType)
+      return this.equals((InputDataObjectType)that);
+    return false;
+  }
+
+  public boolean equals(InputDataObjectType that) {
+    if (that == null)
+      return false;
+
+    boolean this_present_isEmpty = true;
+    boolean that_present_isEmpty = true;
+    if (this_present_isEmpty || that_present_isEmpty) {
+      if (!(this_present_isEmpty && that_present_isEmpty))
+        return false;
+      if (this.isEmpty != that.isEmpty)
+        return false;
+    }
+
+    boolean this_present_name = true && this.isSetName();
+    boolean that_present_name = true && that.isSetName();
+    if (this_present_name || that_present_name) {
+      if (!(this_present_name && that_present_name))
+        return false;
+      if (!this.name.equals(that.name))
+        return false;
+    }
+
+    boolean this_present_value = true && this.isSetValue();
+    boolean that_present_value = true && that.isSetValue();
+    if (this_present_value || that_present_value) {
+      if (!(this_present_value && that_present_value))
+        return false;
+      if (!this.value.equals(that.value))
+        return false;
+    }
+
+    boolean this_present_type = true && this.isSetType();
+    boolean that_present_type = true && that.isSetType();
+    if (this_present_type || that_present_type) {
+      if (!(this_present_type && that_present_type))
+        return false;
+      if (!this.type.equals(that.type))
+        return false;
+    }
+
+    boolean this_present_applicationArguement = true && this.isSetApplicationArguement();
+    boolean that_present_applicationArguement = true && that.isSetApplicationArguement();
+    if (this_present_applicationArguement || that_present_applicationArguement) {
+      if (!(this_present_applicationArguement && that_present_applicationArguement))
+        return false;
+      if (!this.applicationArguement.equals(that.applicationArguement))
+        return false;
+    }
+
+    boolean this_present_standardInput = true && this.isSetStandardInput();
+    boolean that_present_standardInput = true && that.isSetStandardInput();
+    if (this_present_standardInput || that_present_standardInput) {
+      if (!(this_present_standardInput && that_present_standardInput))
+        return false;
+      if (this.standardInput != that.standardInput)
+        return false;
+    }
+
+    boolean this_present_userFriendlyDescription = true && this.isSetUserFriendlyDescription();
+    boolean that_present_userFriendlyDescription = true && that.isSetUserFriendlyDescription();
+    if (this_present_userFriendlyDescription || that_present_userFriendlyDescription) {
+      if (!(this_present_userFriendlyDescription && that_present_userFriendlyDescription))
+        return false;
+      if (!this.userFriendlyDescription.equals(that.userFriendlyDescription))
+        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;
+    }
+
+    return true;
+  }
+
+  @Override
+  public int hashCode() {
+    return 0;
+  }
+
+  @Override
+  public int compareTo(InputDataObjectType other) {
+    if (!getClass().equals(other.getClass())) {
+      return getClass().getName().compareTo(other.getClass().getName());
+    }
+
+    int lastComparison = 0;
+
+    lastComparison = Boolean.valueOf(isSetIsEmpty()).compareTo(other.isSetIsEmpty());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetIsEmpty()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isEmpty, other.isEmpty);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetName()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetValue()).compareTo(other.isSetValue());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetValue()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, other.value);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetType()).compareTo(other.isSetType());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetType()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, other.type);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetApplicationArguement()).compareTo(other.isSetApplicationArguement());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetApplicationArguement()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.applicationArguement, other.applicationArguement);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetStandardInput()).compareTo(other.isSetStandardInput());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetStandardInput()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.standardInput, other.standardInput);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetUserFriendlyDescription()).compareTo(other.isSetUserFriendlyDescription());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetUserFriendlyDescription()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userFriendlyDescription, other.userFriendlyDescription);
+      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;
+      }
+    }
+    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("InputDataObjectType(");
+    boolean first = true;
+
+    sb.append("isEmpty:");
+    sb.append(this.isEmpty);
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("name:");
+    if (this.name == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.name);
+    }
+    first = false;
+    if (isSetValue()) {
+      if (!first) sb.append(", ");
+      sb.append("value:");
+      if (this.value == null) {
+        sb.append("null");
+      } else {
+        sb.append(this.value);
+      }
+      first = false;
+    }
+    if (isSetType()) {
+      if (!first) sb.append(", ");
+      sb.append("type:");
+      if (this.type == null) {
+        sb.append("null");
+      } else {
+        sb.append(this.type);
+      }
+      first = false;
+    }
+    if (isSetApplicationArguement()) {
+      if (!first) sb.append(", ");
+      sb.append("applicationArguement:");
+      if (this.applicationArguement == null) {
+        sb.append("null");
+      } else {
+        sb.append(this.applicationArguement);
+      }
+      first = false;
+    }
+    if (isSetStandardInput()) {
+      if (!first) sb.append(", ");
+      sb.append("standardInput:");
+      sb.append(this.standardInput);
+      first = false;
+    }
+    if (isSetUserFriendlyDescription()) {
+      if (!first) sb.append(", ");
+      sb.append("userFriendlyDescription:");
+      if (this.userFriendlyDescription == null) {
+        sb.append("null");
+      } else {
+        sb.append(this.userFriendlyDescription);
+      }
+      first = false;
+    }
+    if (isSetMetaData()) {
+      if (!first) sb.append(", ");
+      sb.append("metaData:");
+      if (this.metaData == null) {
+        sb.append("null");
+      } else {
+        sb.append(this.metaData);
+      }
+      first = false;
+    }
+    sb.append(")");
+    return sb.toString();
+  }
+
+  public void validate() throws org.apache.thrift.TException {
+    // check for required fields
+    if (!isSetIsEmpty()) {
+      throw new org.apache.thrift.protocol.TProtocolException("Required field 'isEmpty' is unset! Struct:" + toString());
+    }
+
+    if (!isSetName()) {
+      throw new org.apache.thrift.protocol.TProtocolException("Required field 'name' is unset! Struct:" + toString());
+    }
+
+    // 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 InputDataObjectTypeStandardSchemeFactory implements SchemeFactory {
+    public InputDataObjectTypeStandardScheme getScheme() {
+      return new InputDataObjectTypeStandardScheme();
+    }
+  }
+
+  private static class InputDataObjectTypeStandardScheme extends StandardScheme<InputDataObjectType> {
+
+    public void read(org.apache.thrift.protocol.TProtocol iprot, InputDataObjectType 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: // IS_EMPTY
+            if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
+              struct.isEmpty = iprot.readBool();
+              struct.setIsEmptyIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 2: // NAME
+            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+              struct.name = iprot.readString();
+              struct.setNameIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 3: // VALUE
+            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+              struct.value = iprot.readString();
+              struct.setValueIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 4: // TYPE
+            if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
+              struct.type = DataType.findByValue(iprot.readI32());
+              struct.setTypeIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 5: // APPLICATION_ARGUEMENT
+            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+              struct.applicationArguement = iprot.readString();
+              struct.setApplicationArguementIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 6: // STANDARD_INPUT
+            if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
+              struct.standardInput = iprot.readBool();
+              struct.setStandardInputIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 7: // USER_FRIENDLY_DESCRIPTION
+            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+              struct.userFriendlyDescription = iprot.readString();
+              struct.setUserFriendlyDescriptionIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 8: // META_DATA
+            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;
+          default:
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+        }
+        iprot.readFieldEnd();
+      }
+      iprot.readStructEnd();
+      struct.validate();
+    }
+
+    public void write(org.apache.thrift.protocol.TProtocol oprot, InputDataObjectType struct) throws org.apache.thrift.TException {
+      struct.validate();
+
+      oprot.writeStructBegin(STRUCT_DESC);
+      oprot.writeFieldBegin(IS_EMPTY_FIELD_DESC);
+      oprot.writeBool(struct.isEmpty);
+      oprot.writeFieldEnd();
+      if (struct.name != null) {
+        oprot.writeFieldBegin(NAME_FIELD_DESC);
+        oprot.writeString(struct.name);
+        oprot.writeFieldEnd();
+      }
+      if (struct.value != null) {
+        if (struct.isSetValue()) {
+          oprot.writeFieldBegin(VALUE_FIELD_DESC);
+          oprot.writeString(struct.value);
+          oprot.writeFieldEnd();
+        }
+      }
+      if (struct.type != null) {
+        if (struct.isSetType()) {
+          oprot.writeFieldBegin(TYPE_FIELD_DESC);
+          oprot.writeI32(struct.type.getValue());
+          oprot.writeFieldEnd();
+        }
+      }
+      if (struct.applicationArguement != null) {
+        if (struct.isSetApplicationArguement()) {
+          oprot.writeFieldBegin(APPLICATION_ARGUEMENT_FIELD_DESC);
+          oprot.writeString(struct.applicationArguement);
+          oprot.writeFieldEnd();
+        }
+      }
+      if (struct.isSetStandardInput()) {
+        oprot.writeFieldBegin(STANDARD_INPUT_FIELD_DESC);
+        oprot.writeBool(struct.standardInput);
+        oprot.writeFieldEnd();
+      }
+      if (struct.userFriendlyDescription != null) {
+        if (struct.isSetUserFriendlyDescription()) {
+          oprot.writeFieldBegin(USER_FRIENDLY_DESCRIPTION_FIELD_DESC);
+          oprot.writeString(struct.userFriendlyDescription);
+          oprot.writeFieldEnd();
+        }
+      }
+      if (struct.metaData != null) {
+        if (struct.isSetMetaData()) {
+          oprot.writeFieldBegin(META_DATA_FIELD_DESC);
+          oprot.writeString(struct.metaData);
+          oprot.writeFieldEnd();
+        }
+      }
+      oprot.writeFieldStop();
+      oprot.writeStructEnd();
+    }
+
+  }
+
+  private static class InputDataObjectTypeTupleSchemeFactory implements SchemeFactory {
+    public InputDataObjectTypeTupleScheme getScheme() {
+      return new InputDataObjectTypeTupleScheme();
+    }
+  }
+
+  private static class InputDataObjectTypeTupleScheme extends TupleScheme<InputDataObjectType> {
+
+    @Override
+    public void write(org.apache.thrift.protocol.TProtocol prot, InputDataObjectType struct) throws org.apache.thrift.TException {
+      TTupleProtocol oprot = (TTupleProtocol) prot;
+      oprot.writeBool(struct.isEmpty);
+      oprot.writeString(struct.name);
+      BitSet optionals = new BitSet();
+      if (struct.isSetValue()) {
+        optionals.set(0);
+      }
+      if (struct.isSetType()) {
+        optionals.set(1);
+      }
+      if (struct.isSetApplicationArguement()) {
+        optionals.set(2);
+      }
+      if (struct.isSetStandardInput()) {
+        optionals.set(3);
+      }
+      if (struct.isSetUserFriendlyDescription()) {
+        optionals.set(4);
+      }
+      if (struct.isSetMetaData()) {
+        optionals.set(5);
+      }
+      oprot.writeBitSet(optionals, 6);
+      if (struct.isSetValue()) {
+        oprot.writeString(struct.value);
+      }
+      if (struct.isSetType()) {
+        oprot.writeI32(struct.type.getValue());
+      }
+      if (struct.isSetApplicationArguement()) {
+        oprot.writeString(struct.applicationArguement);
+      }
+      if (struct.isSetStandardInput()) {
+        oprot.writeBool(struct.standardInput);
+      }
+      if (struct.isSetUserFriendlyDescription()) {
+        oprot.writeString(struct.userFriendlyDescription);
+      }
+      if (struct.isSetMetaData()) {
+        oprot.writeString(struct.metaData);
+      }
+    }
+
+    @Override
+    public void read(org.apache.thrift.protocol.TProtocol prot, InputDataObjectType struct) throws org.apache.thrift.TException {
+      TTupleProtocol iprot = (TTupleProtocol) prot;
+      struct.isEmpty = iprot.readBool();
+      struct.setIsEmptyIsSet(true);
+      struct.name = iprot.readString();
+      struct.setNameIsSet(true);
+      BitSet incoming = iprot.readBitSet(6);
+      if (incoming.get(0)) {
+        struct.value = iprot.readString();
+        struct.setValueIsSet(true);
+      }
+      if (incoming.get(1)) {
+        struct.type = DataType.findByValue(iprot.readI32());
+        struct.setTypeIsSet(true);
+      }
+      if (incoming.get(2)) {
+        struct.applicationArguement = iprot.readString();
+        struct.setApplicationArguementIsSet(true);
+      }
+      if (incoming.get(3)) {
+        struct.standardInput = iprot.readBool();
+        struct.setStandardInputIsSet(true);
+      }
+      if (incoming.get(4)) {
+        struct.userFriendlyDescription = iprot.readString();
+        struct.setUserFriendlyDescriptionIsSet(true);
+      }
+      if (incoming.get(5)) {
+        struct.metaData = iprot.readString();
+        struct.setMetaDataIsSet(true);
+      }
+    }
+  }
+
+}
+

http://git-wip-us.apache.org/repos/asf/airavata/blob/227c78db/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/interface/OutputDataObjectType.java
----------------------------------------------------------------------
diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/interface/OutputDataObjectType.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/interface/OutputDataObjectType.java
new file mode 100644
index 0000000..d15304d
--- /dev/null
+++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/interface/OutputDataObjectType.java
@@ -0,0 +1,735 @@
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+/**
+ * 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.model.application.interface;
+
+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;
+
+/**
+ * Application Outputs. The paramters describe how outputs generated by the application.
+ * 
+ * name:
+ *   Name of the parameter.
+ * 
+ * value:
+ *   Value of the parameter.
+ * 
+ * type:
+ *   Data type of the parameter
+ * 
+ * applicationArguement:
+ *   The argument flag sent to the application. Such as -p pressure.
+ * 
+ * standardInput:
+ *   When this value is set, the parameter is sent as standard input rather than a parameter.
+ *   Typically this is passed using redirection operator ">".
+ * 
+ * userFriendlyDescription:
+ *   Description to be displayed at the user interface.
+ * 
+ * metaData:
+ *   Any metadat. This is typically ignore by Airavata and is used by gateways for application configuration.
+ * 
+ */
+@SuppressWarnings("all") public class OutputDataObjectType implements org.apache.thrift.TBase<OutputDataObjectType, OutputDataObjectType._Fields>, java.io.Serializable, Cloneable, Comparable<OutputDataObjectType> {
+  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("OutputDataObjectType");
+
+  private static final org.apache.thrift.protocol.TField IS_EMPTY_FIELD_DESC = new org.apache.thrift.protocol.TField("isEmpty", org.apache.thrift.protocol.TType.BOOL, (short)1);
+  private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)2);
+  private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("value", org.apache.thrift.protocol.TType.STRING, (short)3);
+  private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.I32, (short)4);
+
+  private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+  static {
+    schemes.put(StandardScheme.class, new OutputDataObjectTypeStandardSchemeFactory());
+    schemes.put(TupleScheme.class, new OutputDataObjectTypeTupleSchemeFactory());
+  }
+
+  private boolean isEmpty; // required
+  private String name; // required
+  private String value; // optional
+  private DataType type; // optional
+
+  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
+  @SuppressWarnings("all") public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+    IS_EMPTY((short)1, "isEmpty"),
+    NAME((short)2, "name"),
+    VALUE((short)3, "value"),
+    /**
+     * 
+     * @see DataType
+     */
+    TYPE((short)4, "type");
+
+    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: // IS_EMPTY
+          return IS_EMPTY;
+        case 2: // NAME
+          return NAME;
+        case 3: // VALUE
+          return VALUE;
+        case 4: // TYPE
+          return TYPE;
+        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 __ISEMPTY_ISSET_ID = 0;
+  private byte __isset_bitfield = 0;
+  private _Fields optionals[] = {_Fields.VALUE,_Fields.TYPE};
+  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.IS_EMPTY, new org.apache.thrift.meta_data.FieldMetaData("isEmpty", org.apache.thrift.TFieldRequirementType.REQUIRED, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
+    tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.REQUIRED, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+    tmpMap.put(_Fields.VALUE, new org.apache.thrift.meta_data.FieldMetaData("value", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+    tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
+        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DataType.class)));
+    metaDataMap = Collections.unmodifiableMap(tmpMap);
+    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(OutputDataObjectType.class, metaDataMap);
+  }
+
+  public OutputDataObjectType() {
+    this.isEmpty = false;
+
+  }
+
+  public OutputDataObjectType(
+    boolean isEmpty,
+    String name)
+  {
+    this();
+    this.isEmpty = isEmpty;
+    setIsEmptyIsSet(true);
+    this.name = name;
+  }
+
+  /**
+   * Performs a deep copy on <i>other</i>.
+   */
+  public OutputDataObjectType(OutputDataObjectType other) {
+    __isset_bitfield = other.__isset_bitfield;
+    this.isEmpty = other.isEmpty;
+    if (other.isSetName()) {
+      this.name = other.name;
+    }
+    if (other.isSetValue()) {
+      this.value = other.value;
+    }
+    if (other.isSetType()) {
+      this.type = other.type;
+    }
+  }
+
+  public OutputDataObjectType deepCopy() {
+    return new OutputDataObjectType(this);
+  }
+
+  @Override
+  public void clear() {
+    this.isEmpty = false;
+
+    this.name = null;
+    this.value = null;
+    this.type = null;
+  }
+
+  public boolean isIsEmpty() {
+    return this.isEmpty;
+  }
+
+  public void setIsEmpty(boolean isEmpty) {
+    this.isEmpty = isEmpty;
+    setIsEmptyIsSet(true);
+  }
+
+  public void unsetIsEmpty() {
+    __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ISEMPTY_ISSET_ID);
+  }
+
+  /** Returns true if field isEmpty is set (has been assigned a value) and false otherwise */
+  public boolean isSetIsEmpty() {
+    return EncodingUtils.testBit(__isset_bitfield, __ISEMPTY_ISSET_ID);
+  }
+
+  public void setIsEmptyIsSet(boolean value) {
+    __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ISEMPTY_ISSET_ID, value);
+  }
+
+  public String getName() {
+    return this.name;
+  }
+
+  public void setName(String name) {
+    this.name = name;
+  }
+
+  public void unsetName() {
+    this.name = null;
+  }
+
+  /** Returns true if field name is set (has been assigned a value) and false otherwise */
+  public boolean isSetName() {
+    return this.name != null;
+  }
+
+  public void setNameIsSet(boolean value) {
+    if (!value) {
+      this.name = null;
+    }
+  }
+
+  public String getValue() {
+    return this.value;
+  }
+
+  public void setValue(String value) {
+    this.value = value;
+  }
+
+  public void unsetValue() {
+    this.value = null;
+  }
+
+  /** Returns true if field value is set (has been assigned a value) and false otherwise */
+  public boolean isSetValue() {
+    return this.value != null;
+  }
+
+  public void setValueIsSet(boolean value) {
+    if (!value) {
+      this.value = null;
+    }
+  }
+
+  /**
+   * 
+   * @see DataType
+   */
+  public DataType getType() {
+    return this.type;
+  }
+
+  /**
+   * 
+   * @see DataType
+   */
+  public void setType(DataType type) {
+    this.type = type;
+  }
+
+  public void unsetType() {
+    this.type = null;
+  }
+
+  /** Returns true if field type is set (has been assigned a value) and false otherwise */
+  public boolean isSetType() {
+    return this.type != null;
+  }
+
+  public void setTypeIsSet(boolean value) {
+    if (!value) {
+      this.type = null;
+    }
+  }
+
+  public void setFieldValue(_Fields field, Object value) {
+    switch (field) {
+    case IS_EMPTY:
+      if (value == null) {
+        unsetIsEmpty();
+      } else {
+        setIsEmpty((Boolean)value);
+      }
+      break;
+
+    case NAME:
+      if (value == null) {
+        unsetName();
+      } else {
+        setName((String)value);
+      }
+      break;
+
+    case VALUE:
+      if (value == null) {
+        unsetValue();
+      } else {
+        setValue((String)value);
+      }
+      break;
+
+    case TYPE:
+      if (value == null) {
+        unsetType();
+      } else {
+        setType((DataType)value);
+      }
+      break;
+
+    }
+  }
+
+  public Object getFieldValue(_Fields field) {
+    switch (field) {
+    case IS_EMPTY:
+      return Boolean.valueOf(isIsEmpty());
+
+    case NAME:
+      return getName();
+
+    case VALUE:
+      return getValue();
+
+    case TYPE:
+      return getType();
+
+    }
+    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 IS_EMPTY:
+      return isSetIsEmpty();
+    case NAME:
+      return isSetName();
+    case VALUE:
+      return isSetValue();
+    case TYPE:
+      return isSetType();
+    }
+    throw new IllegalStateException();
+  }
+
+  @Override
+  public boolean equals(Object that) {
+    if (that == null)
+      return false;
+    if (that instanceof OutputDataObjectType)
+      return this.equals((OutputDataObjectType)that);
+    return false;
+  }
+
+  public boolean equals(OutputDataObjectType that) {
+    if (that == null)
+      return false;
+
+    boolean this_present_isEmpty = true;
+    boolean that_present_isEmpty = true;
+    if (this_present_isEmpty || that_present_isEmpty) {
+      if (!(this_present_isEmpty && that_present_isEmpty))
+        return false;
+      if (this.isEmpty != that.isEmpty)
+        return false;
+    }
+
+    boolean this_present_name = true && this.isSetName();
+    boolean that_present_name = true && that.isSetName();
+    if (this_present_name || that_present_name) {
+      if (!(this_present_name && that_present_name))
+        return false;
+      if (!this.name.equals(that.name))
+        return false;
+    }
+
+    boolean this_present_value = true && this.isSetValue();
+    boolean that_present_value = true && that.isSetValue();
+    if (this_present_value || that_present_value) {
+      if (!(this_present_value && that_present_value))
+        return false;
+      if (!this.value.equals(that.value))
+        return false;
+    }
+
+    boolean this_present_type = true && this.isSetType();
+    boolean that_present_type = true && that.isSetType();
+    if (this_present_type || that_present_type) {
+      if (!(this_present_type && that_present_type))
+        return false;
+      if (!this.type.equals(that.type))
+        return false;
+    }
+
+    return true;
+  }
+
+  @Override
+  public int hashCode() {
+    return 0;
+  }
+
+  @Override
+  public int compareTo(OutputDataObjectType other) {
+    if (!getClass().equals(other.getClass())) {
+      return getClass().getName().compareTo(other.getClass().getName());
+    }
+
+    int lastComparison = 0;
+
+    lastComparison = Boolean.valueOf(isSetIsEmpty()).compareTo(other.isSetIsEmpty());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetIsEmpty()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isEmpty, other.isEmpty);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetName()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetValue()).compareTo(other.isSetValue());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetValue()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, other.value);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetType()).compareTo(other.isSetType());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetType()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, other.type);
+      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("OutputDataObjectType(");
+    boolean first = true;
+
+    sb.append("isEmpty:");
+    sb.append(this.isEmpty);
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("name:");
+    if (this.name == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.name);
+    }
+    first = false;
+    if (isSetValue()) {
+      if (!first) sb.append(", ");
+      sb.append("value:");
+      if (this.value == null) {
+        sb.append("null");
+      } else {
+        sb.append(this.value);
+      }
+      first = false;
+    }
+    if (isSetType()) {
+      if (!first) sb.append(", ");
+      sb.append("type:");
+      if (this.type == null) {
+        sb.append("null");
+      } else {
+        sb.append(this.type);
+      }
+      first = false;
+    }
+    sb.append(")");
+    return sb.toString();
+  }
+
+  public void validate() throws org.apache.thrift.TException {
+    // check for required fields
+    if (!isSetIsEmpty()) {
+      throw new org.apache.thrift.protocol.TProtocolException("Required field 'isEmpty' is unset! Struct:" + toString());
+    }
+
+    if (!isSetName()) {
+      throw new org.apache.thrift.protocol.TProtocolException("Required field 'name' is unset! Struct:" + toString());
+    }
+
+    // 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 OutputDataObjectTypeStandardSchemeFactory implements SchemeFactory {
+    public OutputDataObjectTypeStandardScheme getScheme() {
+      return new OutputDataObjectTypeStandardScheme();
+    }
+  }
+
+  private static class OutputDataObjectTypeStandardScheme extends StandardScheme<OutputDataObjectType> {
+
+    public void read(org.apache.thrift.protocol.TProtocol iprot, OutputDataObjectType 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: // IS_EMPTY
+            if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
+              struct.isEmpty = iprot.readBool();
+              struct.setIsEmptyIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 2: // NAME
+            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+              struct.name = iprot.readString();
+              struct.setNameIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 3: // VALUE
+            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+              struct.value = iprot.readString();
+              struct.setValueIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 4: // TYPE
+            if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
+              struct.type = DataType.findByValue(iprot.readI32());
+              struct.setTypeIsSet(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();
+      struct.validate();
+    }
+
+    public void write(org.apache.thrift.protocol.TProtocol oprot, OutputDataObjectType struct) throws org.apache.thrift.TException {
+      struct.validate();
+
+      oprot.writeStructBegin(STRUCT_DESC);
+      oprot.writeFieldBegin(IS_EMPTY_FIELD_DESC);
+      oprot.writeBool(struct.isEmpty);
+      oprot.writeFieldEnd();
+      if (struct.name != null) {
+        oprot.writeFieldBegin(NAME_FIELD_DESC);
+        oprot.writeString(struct.name);
+        oprot.writeFieldEnd();
+      }
+      if (struct.value != null) {
+        if (struct.isSetValue()) {
+          oprot.writeFieldBegin(VALUE_FIELD_DESC);
+          oprot.writeString(struct.value);
+          oprot.writeFieldEnd();
+        }
+      }
+      if (struct.type != null) {
+        if (struct.isSetType()) {
+          oprot.writeFieldBegin(TYPE_FIELD_DESC);
+          oprot.writeI32(struct.type.getValue());
+          oprot.writeFieldEnd();
+        }
+      }
+      oprot.writeFieldStop();
+      oprot.writeStructEnd();
+    }
+
+  }
+
+  private static class OutputDataObjectTypeTupleSchemeFactory implements SchemeFactory {
+    public OutputDataObjectTypeTupleScheme getScheme() {
+      return new OutputDataObjectTypeTupleScheme();
+    }
+  }
+
+  private static class OutputDataObjectTypeTupleScheme extends TupleScheme<OutputDataObjectType> {
+
+    @Override
+    public void write(org.apache.thrift.protocol.TProtocol prot, OutputDataObjectType struct) throws org.apache.thrift.TException {
+      TTupleProtocol oprot = (TTupleProtocol) prot;
+      oprot.writeBool(struct.isEmpty);
+      oprot.writeString(struct.name);
+      BitSet optionals = new BitSet();
+      if (struct.isSetValue()) {
+        optionals.set(0);
+      }
+      if (struct.isSetType()) {
+        optionals.set(1);
+      }
+      oprot.writeBitSet(optionals, 2);
+      if (struct.isSetValue()) {
+        oprot.writeString(struct.value);
+      }
+      if (struct.isSetType()) {
+        oprot.writeI32(struct.type.getValue());
+      }
+    }
+
+    @Override
+    public void read(org.apache.thrift.protocol.TProtocol prot, OutputDataObjectType struct) throws org.apache.thrift.TException {
+      TTupleProtocol iprot = (TTupleProtocol) prot;
+      struct.isEmpty = iprot.readBool();
+      struct.setIsEmptyIsSet(true);
+      struct.name = iprot.readString();
+      struct.setNameIsSet(true);
+      BitSet incoming = iprot.readBitSet(2);
+      if (incoming.get(0)) {
+        struct.value = iprot.readString();
+        struct.setValueIsSet(true);
+      }
+      if (incoming.get(1)) {
+        struct.type = DataType.findByValue(iprot.readI32());
+        struct.setTypeIsSet(true);
+      }
+    }
+  }
+
+}
+

http://git-wip-us.apache.org/repos/asf/airavata/blob/227c78db/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/interface/applicationInterfaceModelConstants.java
----------------------------------------------------------------------
diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/interface/applicationInterfaceModelConstants.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/interface/applicationInterfaceModelConstants.java
new file mode 100644
index 0000000..4ba5f12
--- /dev/null
+++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/interface/applicationInterfaceModelConstants.java
@@ -0,0 +1,55 @@
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+/**
+ * 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.model.application.interface;
+
+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;
+
+@SuppressWarnings("all") public class applicationInterfaceModelConstants {
+
+  public static final String DEFAULT_ID = "DO_NOT_SET_AT_CLIENTS";
+
+}


[3/8] git commit: Generated data models of app catalog

Posted by sm...@apache.org.
Generated data models of app catalog


Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/227c78db
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/227c78db
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/227c78db

Branch: refs/heads/master
Commit: 227c78dbe423d266a133b25a27e200ba401cb87f
Parents: abd7f19
Author: Suresh Marru <sm...@apache.org>
Authored: Sun Jun 29 09:55:40 2014 -0400
Committer: Suresh Marru <sm...@apache.org>
Committed: Sun Jun 29 09:55:40 2014 -0400

----------------------------------------------------------------------
 .../ApplicationDeploymentDescription.java       | 1479 ++++++++++++++++++
 .../deployment/ApplicationModule.java           |  811 ++++++++++
 .../application/deployment/SetEnvPaths.java     |  500 ++++++
 .../applicationDeploymentModelConstants.java    |   55 +
 .../ApplicationInterfaceDescription.java        | 1063 +++++++++++++
 .../model/application/interface/DataType.java   |   71 +
 .../interface/InputDataObjectType.java          | 1134 ++++++++++++++
 .../interface/OutputDataObjectType.java         |  735 +++++++++
 .../applicationInterfaceModelConstants.java     |   55 +
 9 files changed, 5903 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/227c78db/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/deployment/ApplicationDeploymentDescription.java
----------------------------------------------------------------------
diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/deployment/ApplicationDeploymentDescription.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/deployment/ApplicationDeploymentDescription.java
new file mode 100644
index 0000000..9d05334
--- /dev/null
+++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/deployment/ApplicationDeploymentDescription.java
@@ -0,0 +1,1479 @@
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+/**
+ * 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.model.application.deployment;
+
+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;
+
+/**
+ * Application Deployment Description
+ * 
+ * appDeploymentId: Airavata Internal Unique Job ID. This is set by the registry.
+ * 
+ * appModuleName:
+ *   Application Module Name. This has to be precise describing the binary.
+ * 
+ * computeHostId:
+ *   This ID maps application deployment to a particular resource previously described within Airavata.
+ *   Example: Stampede is first registered and refered when registering WRF.
+ * 
+ * moduleLoadCmd:
+ *  Command string to load modules. This will be placed in the job submisison
+ *  Ex: module load amber
+ * 
+ * libPrependPaths:
+ *  prepend to a path variable the value
+ * 
+ * libAppendPaths:
+ *  append to a path variable the value
+ * 
+ * setEnvironment:
+ *  assigns to the environment variable "NAME" the value
+ * 
+ */
+@SuppressWarnings("all") public class ApplicationDeploymentDescription implements org.apache.thrift.TBase<ApplicationDeploymentDescription, ApplicationDeploymentDescription._Fields>, java.io.Serializable, Cloneable, Comparable<ApplicationDeploymentDescription> {
+  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ApplicationDeploymentDescription");
+
+  private static final org.apache.thrift.protocol.TField IS_EMPTY_FIELD_DESC = new org.apache.thrift.protocol.TField("isEmpty", org.apache.thrift.protocol.TType.BOOL, (short)1);
+  private static final org.apache.thrift.protocol.TField APP_DEPLOYMENT_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("appDeploymentId", org.apache.thrift.protocol.TType.STRING, (short)2);
+  private static final org.apache.thrift.protocol.TField APP_MODULE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("appModuleId", org.apache.thrift.protocol.TType.STRING, (short)3);
+  private static final org.apache.thrift.protocol.TField COMPUTE_HOST_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("computeHostId", org.apache.thrift.protocol.TType.STRING, (short)4);
+  private static final org.apache.thrift.protocol.TField EXECUTABLE_PATH_FIELD_DESC = new org.apache.thrift.protocol.TField("executablePath", org.apache.thrift.protocol.TType.STRING, (short)5);
+  private static final org.apache.thrift.protocol.TField APP_DEPLOYMENT_DESCRIPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("appDeploymentDescription", org.apache.thrift.protocol.TType.STRING, (short)6);
+  private static final org.apache.thrift.protocol.TField MODULE_LOAD_CMD_FIELD_DESC = new org.apache.thrift.protocol.TField("moduleLoadCmd", org.apache.thrift.protocol.TType.STRING, (short)7);
+  private static final org.apache.thrift.protocol.TField LIB_PREPEND_PATHS_FIELD_DESC = new org.apache.thrift.protocol.TField("libPrependPaths", org.apache.thrift.protocol.TType.LIST, (short)8);
+  private static final org.apache.thrift.protocol.TField LIB_APPEND_PATHS_FIELD_DESC = new org.apache.thrift.protocol.TField("libAppendPaths", org.apache.thrift.protocol.TType.LIST, (short)9);
+  private static final org.apache.thrift.protocol.TField SET_ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("setEnvironment", org.apache.thrift.protocol.TType.LIST, (short)10);
+
+  private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+  static {
+    schemes.put(StandardScheme.class, new ApplicationDeploymentDescriptionStandardSchemeFactory());
+    schemes.put(TupleScheme.class, new ApplicationDeploymentDescriptionTupleSchemeFactory());
+  }
+
+  private boolean isEmpty; // required
+  private String appDeploymentId; // required
+  private String appModuleId; // required
+  private String computeHostId; // required
+  private String executablePath; // required
+  private String appDeploymentDescription; // optional
+  private String moduleLoadCmd; // optional
+  private List<SetEnvPaths> libPrependPaths; // optional
+  private List<SetEnvPaths> libAppendPaths; // optional
+  private List<SetEnvPaths> setEnvironment; // optional
+
+  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
+  @SuppressWarnings("all") public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+    IS_EMPTY((short)1, "isEmpty"),
+    APP_DEPLOYMENT_ID((short)2, "appDeploymentId"),
+    APP_MODULE_ID((short)3, "appModuleId"),
+    COMPUTE_HOST_ID((short)4, "computeHostId"),
+    EXECUTABLE_PATH((short)5, "executablePath"),
+    APP_DEPLOYMENT_DESCRIPTION((short)6, "appDeploymentDescription"),
+    MODULE_LOAD_CMD((short)7, "moduleLoadCmd"),
+    LIB_PREPEND_PATHS((short)8, "libPrependPaths"),
+    LIB_APPEND_PATHS((short)9, "libAppendPaths"),
+    SET_ENVIRONMENT((short)10, "setEnvironment");
+
+    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: // IS_EMPTY
+          return IS_EMPTY;
+        case 2: // APP_DEPLOYMENT_ID
+          return APP_DEPLOYMENT_ID;
+        case 3: // APP_MODULE_ID
+          return APP_MODULE_ID;
+        case 4: // COMPUTE_HOST_ID
+          return COMPUTE_HOST_ID;
+        case 5: // EXECUTABLE_PATH
+          return EXECUTABLE_PATH;
+        case 6: // APP_DEPLOYMENT_DESCRIPTION
+          return APP_DEPLOYMENT_DESCRIPTION;
+        case 7: // MODULE_LOAD_CMD
+          return MODULE_LOAD_CMD;
+        case 8: // LIB_PREPEND_PATHS
+          return LIB_PREPEND_PATHS;
+        case 9: // LIB_APPEND_PATHS
+          return LIB_APPEND_PATHS;
+        case 10: // SET_ENVIRONMENT
+          return SET_ENVIRONMENT;
+        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 __ISEMPTY_ISSET_ID = 0;
+  private byte __isset_bitfield = 0;
+  private _Fields optionals[] = {_Fields.APP_DEPLOYMENT_DESCRIPTION,_Fields.MODULE_LOAD_CMD,_Fields.LIB_PREPEND_PATHS,_Fields.LIB_APPEND_PATHS,_Fields.SET_ENVIRONMENT};
+  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.IS_EMPTY, new org.apache.thrift.meta_data.FieldMetaData("isEmpty", org.apache.thrift.TFieldRequirementType.REQUIRED, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
+    tmpMap.put(_Fields.APP_DEPLOYMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("appDeploymentId", org.apache.thrift.TFieldRequirementType.REQUIRED, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+    tmpMap.put(_Fields.APP_MODULE_ID, new org.apache.thrift.meta_data.FieldMetaData("appModuleId", org.apache.thrift.TFieldRequirementType.REQUIRED, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+    tmpMap.put(_Fields.COMPUTE_HOST_ID, new org.apache.thrift.meta_data.FieldMetaData("computeHostId", org.apache.thrift.TFieldRequirementType.REQUIRED, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+    tmpMap.put(_Fields.EXECUTABLE_PATH, new org.apache.thrift.meta_data.FieldMetaData("executablePath", org.apache.thrift.TFieldRequirementType.REQUIRED, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+    tmpMap.put(_Fields.APP_DEPLOYMENT_DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("appDeploymentDescription", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+    tmpMap.put(_Fields.MODULE_LOAD_CMD, new org.apache.thrift.meta_data.FieldMetaData("moduleLoadCmd", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+    tmpMap.put(_Fields.LIB_PREPEND_PATHS, new org.apache.thrift.meta_data.FieldMetaData("libPrependPaths", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
+        new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
+            new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SetEnvPaths.class))));
+    tmpMap.put(_Fields.LIB_APPEND_PATHS, new org.apache.thrift.meta_data.FieldMetaData("libAppendPaths", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
+        new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
+            new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SetEnvPaths.class))));
+    tmpMap.put(_Fields.SET_ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("setEnvironment", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
+        new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
+            new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SetEnvPaths.class))));
+    metaDataMap = Collections.unmodifiableMap(tmpMap);
+    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(ApplicationDeploymentDescription.class, metaDataMap);
+  }
+
+  public ApplicationDeploymentDescription() {
+    this.isEmpty = false;
+
+    this.appDeploymentId = "DO_NOT_SET_AT_CLIENTS";
+
+  }
+
+  public ApplicationDeploymentDescription(
+    boolean isEmpty,
+    String appDeploymentId,
+    String appModuleId,
+    String computeHostId,
+    String executablePath)
+  {
+    this();
+    this.isEmpty = isEmpty;
+    setIsEmptyIsSet(true);
+    this.appDeploymentId = appDeploymentId;
+    this.appModuleId = appModuleId;
+    this.computeHostId = computeHostId;
+    this.executablePath = executablePath;
+  }
+
+  /**
+   * Performs a deep copy on <i>other</i>.
+   */
+  public ApplicationDeploymentDescription(ApplicationDeploymentDescription other) {
+    __isset_bitfield = other.__isset_bitfield;
+    this.isEmpty = other.isEmpty;
+    if (other.isSetAppDeploymentId()) {
+      this.appDeploymentId = other.appDeploymentId;
+    }
+    if (other.isSetAppModuleId()) {
+      this.appModuleId = other.appModuleId;
+    }
+    if (other.isSetComputeHostId()) {
+      this.computeHostId = other.computeHostId;
+    }
+    if (other.isSetExecutablePath()) {
+      this.executablePath = other.executablePath;
+    }
+    if (other.isSetAppDeploymentDescription()) {
+      this.appDeploymentDescription = other.appDeploymentDescription;
+    }
+    if (other.isSetModuleLoadCmd()) {
+      this.moduleLoadCmd = other.moduleLoadCmd;
+    }
+    if (other.isSetLibPrependPaths()) {
+      List<SetEnvPaths> __this__libPrependPaths = new ArrayList<SetEnvPaths>(other.libPrependPaths.size());
+      for (SetEnvPaths other_element : other.libPrependPaths) {
+        __this__libPrependPaths.add(new SetEnvPaths(other_element));
+      }
+      this.libPrependPaths = __this__libPrependPaths;
+    }
+    if (other.isSetLibAppendPaths()) {
+      List<SetEnvPaths> __this__libAppendPaths = new ArrayList<SetEnvPaths>(other.libAppendPaths.size());
+      for (SetEnvPaths other_element : other.libAppendPaths) {
+        __this__libAppendPaths.add(new SetEnvPaths(other_element));
+      }
+      this.libAppendPaths = __this__libAppendPaths;
+    }
+    if (other.isSetSetEnvironment()) {
+      List<SetEnvPaths> __this__setEnvironment = new ArrayList<SetEnvPaths>(other.setEnvironment.size());
+      for (SetEnvPaths other_element : other.setEnvironment) {
+        __this__setEnvironment.add(new SetEnvPaths(other_element));
+      }
+      this.setEnvironment = __this__setEnvironment;
+    }
+  }
+
+  public ApplicationDeploymentDescription deepCopy() {
+    return new ApplicationDeploymentDescription(this);
+  }
+
+  @Override
+  public void clear() {
+    this.isEmpty = false;
+
+    this.appDeploymentId = "DO_NOT_SET_AT_CLIENTS";
+
+    this.appModuleId = null;
+    this.computeHostId = null;
+    this.executablePath = null;
+    this.appDeploymentDescription = null;
+    this.moduleLoadCmd = null;
+    this.libPrependPaths = null;
+    this.libAppendPaths = null;
+    this.setEnvironment = null;
+  }
+
+  public boolean isIsEmpty() {
+    return this.isEmpty;
+  }
+
+  public void setIsEmpty(boolean isEmpty) {
+    this.isEmpty = isEmpty;
+    setIsEmptyIsSet(true);
+  }
+
+  public void unsetIsEmpty() {
+    __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ISEMPTY_ISSET_ID);
+  }
+
+  /** Returns true if field isEmpty is set (has been assigned a value) and false otherwise */
+  public boolean isSetIsEmpty() {
+    return EncodingUtils.testBit(__isset_bitfield, __ISEMPTY_ISSET_ID);
+  }
+
+  public void setIsEmptyIsSet(boolean value) {
+    __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ISEMPTY_ISSET_ID, value);
+  }
+
+  public String getAppDeploymentId() {
+    return this.appDeploymentId;
+  }
+
+  public void setAppDeploymentId(String appDeploymentId) {
+    this.appDeploymentId = appDeploymentId;
+  }
+
+  public void unsetAppDeploymentId() {
+    this.appDeploymentId = null;
+  }
+
+  /** Returns true if field appDeploymentId is set (has been assigned a value) and false otherwise */
+  public boolean isSetAppDeploymentId() {
+    return this.appDeploymentId != null;
+  }
+
+  public void setAppDeploymentIdIsSet(boolean value) {
+    if (!value) {
+      this.appDeploymentId = null;
+    }
+  }
+
+  public String getAppModuleId() {
+    return this.appModuleId;
+  }
+
+  public void setAppModuleId(String appModuleId) {
+    this.appModuleId = appModuleId;
+  }
+
+  public void unsetAppModuleId() {
+    this.appModuleId = null;
+  }
+
+  /** Returns true if field appModuleId is set (has been assigned a value) and false otherwise */
+  public boolean isSetAppModuleId() {
+    return this.appModuleId != null;
+  }
+
+  public void setAppModuleIdIsSet(boolean value) {
+    if (!value) {
+      this.appModuleId = null;
+    }
+  }
+
+  public String getComputeHostId() {
+    return this.computeHostId;
+  }
+
+  public void setComputeHostId(String computeHostId) {
+    this.computeHostId = computeHostId;
+  }
+
+  public void unsetComputeHostId() {
+    this.computeHostId = null;
+  }
+
+  /** Returns true if field computeHostId is set (has been assigned a value) and false otherwise */
+  public boolean isSetComputeHostId() {
+    return this.computeHostId != null;
+  }
+
+  public void setComputeHostIdIsSet(boolean value) {
+    if (!value) {
+      this.computeHostId = null;
+    }
+  }
+
+  public String getExecutablePath() {
+    return this.executablePath;
+  }
+
+  public void setExecutablePath(String executablePath) {
+    this.executablePath = executablePath;
+  }
+
+  public void unsetExecutablePath() {
+    this.executablePath = null;
+  }
+
+  /** Returns true if field executablePath is set (has been assigned a value) and false otherwise */
+  public boolean isSetExecutablePath() {
+    return this.executablePath != null;
+  }
+
+  public void setExecutablePathIsSet(boolean value) {
+    if (!value) {
+      this.executablePath = null;
+    }
+  }
+
+  public String getAppDeploymentDescription() {
+    return this.appDeploymentDescription;
+  }
+
+  public void setAppDeploymentDescription(String appDeploymentDescription) {
+    this.appDeploymentDescription = appDeploymentDescription;
+  }
+
+  public void unsetAppDeploymentDescription() {
+    this.appDeploymentDescription = null;
+  }
+
+  /** Returns true if field appDeploymentDescription is set (has been assigned a value) and false otherwise */
+  public boolean isSetAppDeploymentDescription() {
+    return this.appDeploymentDescription != null;
+  }
+
+  public void setAppDeploymentDescriptionIsSet(boolean value) {
+    if (!value) {
+      this.appDeploymentDescription = null;
+    }
+  }
+
+  public String getModuleLoadCmd() {
+    return this.moduleLoadCmd;
+  }
+
+  public void setModuleLoadCmd(String moduleLoadCmd) {
+    this.moduleLoadCmd = moduleLoadCmd;
+  }
+
+  public void unsetModuleLoadCmd() {
+    this.moduleLoadCmd = null;
+  }
+
+  /** Returns true if field moduleLoadCmd is set (has been assigned a value) and false otherwise */
+  public boolean isSetModuleLoadCmd() {
+    return this.moduleLoadCmd != null;
+  }
+
+  public void setModuleLoadCmdIsSet(boolean value) {
+    if (!value) {
+      this.moduleLoadCmd = null;
+    }
+  }
+
+  public int getLibPrependPathsSize() {
+    return (this.libPrependPaths == null) ? 0 : this.libPrependPaths.size();
+  }
+
+  public java.util.Iterator<SetEnvPaths> getLibPrependPathsIterator() {
+    return (this.libPrependPaths == null) ? null : this.libPrependPaths.iterator();
+  }
+
+  public void addToLibPrependPaths(SetEnvPaths elem) {
+    if (this.libPrependPaths == null) {
+      this.libPrependPaths = new ArrayList<SetEnvPaths>();
+    }
+    this.libPrependPaths.add(elem);
+  }
+
+  public List<SetEnvPaths> getLibPrependPaths() {
+    return this.libPrependPaths;
+  }
+
+  public void setLibPrependPaths(List<SetEnvPaths> libPrependPaths) {
+    this.libPrependPaths = libPrependPaths;
+  }
+
+  public void unsetLibPrependPaths() {
+    this.libPrependPaths = null;
+  }
+
+  /** Returns true if field libPrependPaths is set (has been assigned a value) and false otherwise */
+  public boolean isSetLibPrependPaths() {
+    return this.libPrependPaths != null;
+  }
+
+  public void setLibPrependPathsIsSet(boolean value) {
+    if (!value) {
+      this.libPrependPaths = null;
+    }
+  }
+
+  public int getLibAppendPathsSize() {
+    return (this.libAppendPaths == null) ? 0 : this.libAppendPaths.size();
+  }
+
+  public java.util.Iterator<SetEnvPaths> getLibAppendPathsIterator() {
+    return (this.libAppendPaths == null) ? null : this.libAppendPaths.iterator();
+  }
+
+  public void addToLibAppendPaths(SetEnvPaths elem) {
+    if (this.libAppendPaths == null) {
+      this.libAppendPaths = new ArrayList<SetEnvPaths>();
+    }
+    this.libAppendPaths.add(elem);
+  }
+
+  public List<SetEnvPaths> getLibAppendPaths() {
+    return this.libAppendPaths;
+  }
+
+  public void setLibAppendPaths(List<SetEnvPaths> libAppendPaths) {
+    this.libAppendPaths = libAppendPaths;
+  }
+
+  public void unsetLibAppendPaths() {
+    this.libAppendPaths = null;
+  }
+
+  /** Returns true if field libAppendPaths is set (has been assigned a value) and false otherwise */
+  public boolean isSetLibAppendPaths() {
+    return this.libAppendPaths != null;
+  }
+
+  public void setLibAppendPathsIsSet(boolean value) {
+    if (!value) {
+      this.libAppendPaths = null;
+    }
+  }
+
+  public int getSetEnvironmentSize() {
+    return (this.setEnvironment == null) ? 0 : this.setEnvironment.size();
+  }
+
+  public java.util.Iterator<SetEnvPaths> getSetEnvironmentIterator() {
+    return (this.setEnvironment == null) ? null : this.setEnvironment.iterator();
+  }
+
+  public void addToSetEnvironment(SetEnvPaths elem) {
+    if (this.setEnvironment == null) {
+      this.setEnvironment = new ArrayList<SetEnvPaths>();
+    }
+    this.setEnvironment.add(elem);
+  }
+
+  public List<SetEnvPaths> getSetEnvironment() {
+    return this.setEnvironment;
+  }
+
+  public void setSetEnvironment(List<SetEnvPaths> setEnvironment) {
+    this.setEnvironment = setEnvironment;
+  }
+
+  public void unsetSetEnvironment() {
+    this.setEnvironment = null;
+  }
+
+  /** Returns true if field setEnvironment is set (has been assigned a value) and false otherwise */
+  public boolean isSetSetEnvironment() {
+    return this.setEnvironment != null;
+  }
+
+  public void setSetEnvironmentIsSet(boolean value) {
+    if (!value) {
+      this.setEnvironment = null;
+    }
+  }
+
+  public void setFieldValue(_Fields field, Object value) {
+    switch (field) {
+    case IS_EMPTY:
+      if (value == null) {
+        unsetIsEmpty();
+      } else {
+        setIsEmpty((Boolean)value);
+      }
+      break;
+
+    case APP_DEPLOYMENT_ID:
+      if (value == null) {
+        unsetAppDeploymentId();
+      } else {
+        setAppDeploymentId((String)value);
+      }
+      break;
+
+    case APP_MODULE_ID:
+      if (value == null) {
+        unsetAppModuleId();
+      } else {
+        setAppModuleId((String)value);
+      }
+      break;
+
+    case COMPUTE_HOST_ID:
+      if (value == null) {
+        unsetComputeHostId();
+      } else {
+        setComputeHostId((String)value);
+      }
+      break;
+
+    case EXECUTABLE_PATH:
+      if (value == null) {
+        unsetExecutablePath();
+      } else {
+        setExecutablePath((String)value);
+      }
+      break;
+
+    case APP_DEPLOYMENT_DESCRIPTION:
+      if (value == null) {
+        unsetAppDeploymentDescription();
+      } else {
+        setAppDeploymentDescription((String)value);
+      }
+      break;
+
+    case MODULE_LOAD_CMD:
+      if (value == null) {
+        unsetModuleLoadCmd();
+      } else {
+        setModuleLoadCmd((String)value);
+      }
+      break;
+
+    case LIB_PREPEND_PATHS:
+      if (value == null) {
+        unsetLibPrependPaths();
+      } else {
+        setLibPrependPaths((List<SetEnvPaths>)value);
+      }
+      break;
+
+    case LIB_APPEND_PATHS:
+      if (value == null) {
+        unsetLibAppendPaths();
+      } else {
+        setLibAppendPaths((List<SetEnvPaths>)value);
+      }
+      break;
+
+    case SET_ENVIRONMENT:
+      if (value == null) {
+        unsetSetEnvironment();
+      } else {
+        setSetEnvironment((List<SetEnvPaths>)value);
+      }
+      break;
+
+    }
+  }
+
+  public Object getFieldValue(_Fields field) {
+    switch (field) {
+    case IS_EMPTY:
+      return Boolean.valueOf(isIsEmpty());
+
+    case APP_DEPLOYMENT_ID:
+      return getAppDeploymentId();
+
+    case APP_MODULE_ID:
+      return getAppModuleId();
+
+    case COMPUTE_HOST_ID:
+      return getComputeHostId();
+
+    case EXECUTABLE_PATH:
+      return getExecutablePath();
+
+    case APP_DEPLOYMENT_DESCRIPTION:
+      return getAppDeploymentDescription();
+
+    case MODULE_LOAD_CMD:
+      return getModuleLoadCmd();
+
+    case LIB_PREPEND_PATHS:
+      return getLibPrependPaths();
+
+    case LIB_APPEND_PATHS:
+      return getLibAppendPaths();
+
+    case SET_ENVIRONMENT:
+      return getSetEnvironment();
+
+    }
+    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 IS_EMPTY:
+      return isSetIsEmpty();
+    case APP_DEPLOYMENT_ID:
+      return isSetAppDeploymentId();
+    case APP_MODULE_ID:
+      return isSetAppModuleId();
+    case COMPUTE_HOST_ID:
+      return isSetComputeHostId();
+    case EXECUTABLE_PATH:
+      return isSetExecutablePath();
+    case APP_DEPLOYMENT_DESCRIPTION:
+      return isSetAppDeploymentDescription();
+    case MODULE_LOAD_CMD:
+      return isSetModuleLoadCmd();
+    case LIB_PREPEND_PATHS:
+      return isSetLibPrependPaths();
+    case LIB_APPEND_PATHS:
+      return isSetLibAppendPaths();
+    case SET_ENVIRONMENT:
+      return isSetSetEnvironment();
+    }
+    throw new IllegalStateException();
+  }
+
+  @Override
+  public boolean equals(Object that) {
+    if (that == null)
+      return false;
+    if (that instanceof ApplicationDeploymentDescription)
+      return this.equals((ApplicationDeploymentDescription)that);
+    return false;
+  }
+
+  public boolean equals(ApplicationDeploymentDescription that) {
+    if (that == null)
+      return false;
+
+    boolean this_present_isEmpty = true;
+    boolean that_present_isEmpty = true;
+    if (this_present_isEmpty || that_present_isEmpty) {
+      if (!(this_present_isEmpty && that_present_isEmpty))
+        return false;
+      if (this.isEmpty != that.isEmpty)
+        return false;
+    }
+
+    boolean this_present_appDeploymentId = true && this.isSetAppDeploymentId();
+    boolean that_present_appDeploymentId = true && that.isSetAppDeploymentId();
+    if (this_present_appDeploymentId || that_present_appDeploymentId) {
+      if (!(this_present_appDeploymentId && that_present_appDeploymentId))
+        return false;
+      if (!this.appDeploymentId.equals(that.appDeploymentId))
+        return false;
+    }
+
+    boolean this_present_appModuleId = true && this.isSetAppModuleId();
+    boolean that_present_appModuleId = true && that.isSetAppModuleId();
+    if (this_present_appModuleId || that_present_appModuleId) {
+      if (!(this_present_appModuleId && that_present_appModuleId))
+        return false;
+      if (!this.appModuleId.equals(that.appModuleId))
+        return false;
+    }
+
+    boolean this_present_computeHostId = true && this.isSetComputeHostId();
+    boolean that_present_computeHostId = true && that.isSetComputeHostId();
+    if (this_present_computeHostId || that_present_computeHostId) {
+      if (!(this_present_computeHostId && that_present_computeHostId))
+        return false;
+      if (!this.computeHostId.equals(that.computeHostId))
+        return false;
+    }
+
+    boolean this_present_executablePath = true && this.isSetExecutablePath();
+    boolean that_present_executablePath = true && that.isSetExecutablePath();
+    if (this_present_executablePath || that_present_executablePath) {
+      if (!(this_present_executablePath && that_present_executablePath))
+        return false;
+      if (!this.executablePath.equals(that.executablePath))
+        return false;
+    }
+
+    boolean this_present_appDeploymentDescription = true && this.isSetAppDeploymentDescription();
+    boolean that_present_appDeploymentDescription = true && that.isSetAppDeploymentDescription();
+    if (this_present_appDeploymentDescription || that_present_appDeploymentDescription) {
+      if (!(this_present_appDeploymentDescription && that_present_appDeploymentDescription))
+        return false;
+      if (!this.appDeploymentDescription.equals(that.appDeploymentDescription))
+        return false;
+    }
+
+    boolean this_present_moduleLoadCmd = true && this.isSetModuleLoadCmd();
+    boolean that_present_moduleLoadCmd = true && that.isSetModuleLoadCmd();
+    if (this_present_moduleLoadCmd || that_present_moduleLoadCmd) {
+      if (!(this_present_moduleLoadCmd && that_present_moduleLoadCmd))
+        return false;
+      if (!this.moduleLoadCmd.equals(that.moduleLoadCmd))
+        return false;
+    }
+
+    boolean this_present_libPrependPaths = true && this.isSetLibPrependPaths();
+    boolean that_present_libPrependPaths = true && that.isSetLibPrependPaths();
+    if (this_present_libPrependPaths || that_present_libPrependPaths) {
+      if (!(this_present_libPrependPaths && that_present_libPrependPaths))
+        return false;
+      if (!this.libPrependPaths.equals(that.libPrependPaths))
+        return false;
+    }
+
+    boolean this_present_libAppendPaths = true && this.isSetLibAppendPaths();
+    boolean that_present_libAppendPaths = true && that.isSetLibAppendPaths();
+    if (this_present_libAppendPaths || that_present_libAppendPaths) {
+      if (!(this_present_libAppendPaths && that_present_libAppendPaths))
+        return false;
+      if (!this.libAppendPaths.equals(that.libAppendPaths))
+        return false;
+    }
+
+    boolean this_present_setEnvironment = true && this.isSetSetEnvironment();
+    boolean that_present_setEnvironment = true && that.isSetSetEnvironment();
+    if (this_present_setEnvironment || that_present_setEnvironment) {
+      if (!(this_present_setEnvironment && that_present_setEnvironment))
+        return false;
+      if (!this.setEnvironment.equals(that.setEnvironment))
+        return false;
+    }
+
+    return true;
+  }
+
+  @Override
+  public int hashCode() {
+    return 0;
+  }
+
+  @Override
+  public int compareTo(ApplicationDeploymentDescription other) {
+    if (!getClass().equals(other.getClass())) {
+      return getClass().getName().compareTo(other.getClass().getName());
+    }
+
+    int lastComparison = 0;
+
+    lastComparison = Boolean.valueOf(isSetIsEmpty()).compareTo(other.isSetIsEmpty());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetIsEmpty()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isEmpty, other.isEmpty);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetAppDeploymentId()).compareTo(other.isSetAppDeploymentId());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetAppDeploymentId()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.appDeploymentId, other.appDeploymentId);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetAppModuleId()).compareTo(other.isSetAppModuleId());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetAppModuleId()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.appModuleId, other.appModuleId);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetComputeHostId()).compareTo(other.isSetComputeHostId());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetComputeHostId()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.computeHostId, other.computeHostId);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetExecutablePath()).compareTo(other.isSetExecutablePath());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetExecutablePath()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.executablePath, other.executablePath);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetAppDeploymentDescription()).compareTo(other.isSetAppDeploymentDescription());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetAppDeploymentDescription()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.appDeploymentDescription, other.appDeploymentDescription);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetModuleLoadCmd()).compareTo(other.isSetModuleLoadCmd());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetModuleLoadCmd()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.moduleLoadCmd, other.moduleLoadCmd);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetLibPrependPaths()).compareTo(other.isSetLibPrependPaths());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetLibPrependPaths()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.libPrependPaths, other.libPrependPaths);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetLibAppendPaths()).compareTo(other.isSetLibAppendPaths());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetLibAppendPaths()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.libAppendPaths, other.libAppendPaths);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetSetEnvironment()).compareTo(other.isSetSetEnvironment());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetSetEnvironment()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.setEnvironment, other.setEnvironment);
+      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("ApplicationDeploymentDescription(");
+    boolean first = true;
+
+    sb.append("isEmpty:");
+    sb.append(this.isEmpty);
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("appDeploymentId:");
+    if (this.appDeploymentId == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.appDeploymentId);
+    }
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("appModuleId:");
+    if (this.appModuleId == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.appModuleId);
+    }
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("computeHostId:");
+    if (this.computeHostId == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.computeHostId);
+    }
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("executablePath:");
+    if (this.executablePath == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.executablePath);
+    }
+    first = false;
+    if (isSetAppDeploymentDescription()) {
+      if (!first) sb.append(", ");
+      sb.append("appDeploymentDescription:");
+      if (this.appDeploymentDescription == null) {
+        sb.append("null");
+      } else {
+        sb.append(this.appDeploymentDescription);
+      }
+      first = false;
+    }
+    if (isSetModuleLoadCmd()) {
+      if (!first) sb.append(", ");
+      sb.append("moduleLoadCmd:");
+      if (this.moduleLoadCmd == null) {
+        sb.append("null");
+      } else {
+        sb.append(this.moduleLoadCmd);
+      }
+      first = false;
+    }
+    if (isSetLibPrependPaths()) {
+      if (!first) sb.append(", ");
+      sb.append("libPrependPaths:");
+      if (this.libPrependPaths == null) {
+        sb.append("null");
+      } else {
+        sb.append(this.libPrependPaths);
+      }
+      first = false;
+    }
+    if (isSetLibAppendPaths()) {
+      if (!first) sb.append(", ");
+      sb.append("libAppendPaths:");
+      if (this.libAppendPaths == null) {
+        sb.append("null");
+      } else {
+        sb.append(this.libAppendPaths);
+      }
+      first = false;
+    }
+    if (isSetSetEnvironment()) {
+      if (!first) sb.append(", ");
+      sb.append("setEnvironment:");
+      if (this.setEnvironment == null) {
+        sb.append("null");
+      } else {
+        sb.append(this.setEnvironment);
+      }
+      first = false;
+    }
+    sb.append(")");
+    return sb.toString();
+  }
+
+  public void validate() throws org.apache.thrift.TException {
+    // check for required fields
+    if (!isSetIsEmpty()) {
+      throw new org.apache.thrift.protocol.TProtocolException("Required field 'isEmpty' is unset! Struct:" + toString());
+    }
+
+    if (!isSetAppDeploymentId()) {
+      throw new org.apache.thrift.protocol.TProtocolException("Required field 'appDeploymentId' is unset! Struct:" + toString());
+    }
+
+    if (!isSetAppModuleId()) {
+      throw new org.apache.thrift.protocol.TProtocolException("Required field 'appModuleId' is unset! Struct:" + toString());
+    }
+
+    if (!isSetComputeHostId()) {
+      throw new org.apache.thrift.protocol.TProtocolException("Required field 'computeHostId' is unset! Struct:" + toString());
+    }
+
+    if (!isSetExecutablePath()) {
+      throw new org.apache.thrift.protocol.TProtocolException("Required field 'executablePath' is unset! Struct:" + toString());
+    }
+
+    // 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 ApplicationDeploymentDescriptionStandardSchemeFactory implements SchemeFactory {
+    public ApplicationDeploymentDescriptionStandardScheme getScheme() {
+      return new ApplicationDeploymentDescriptionStandardScheme();
+    }
+  }
+
+  private static class ApplicationDeploymentDescriptionStandardScheme extends StandardScheme<ApplicationDeploymentDescription> {
+
+    public void read(org.apache.thrift.protocol.TProtocol iprot, ApplicationDeploymentDescription 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: // IS_EMPTY
+            if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
+              struct.isEmpty = iprot.readBool();
+              struct.setIsEmptyIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 2: // APP_DEPLOYMENT_ID
+            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+              struct.appDeploymentId = iprot.readString();
+              struct.setAppDeploymentIdIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 3: // APP_MODULE_ID
+            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+              struct.appModuleId = iprot.readString();
+              struct.setAppModuleIdIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 4: // COMPUTE_HOST_ID
+            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+              struct.computeHostId = iprot.readString();
+              struct.setComputeHostIdIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 5: // EXECUTABLE_PATH
+            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+              struct.executablePath = iprot.readString();
+              struct.setExecutablePathIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 6: // APP_DEPLOYMENT_DESCRIPTION
+            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+              struct.appDeploymentDescription = iprot.readString();
+              struct.setAppDeploymentDescriptionIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 7: // MODULE_LOAD_CMD
+            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+              struct.moduleLoadCmd = iprot.readString();
+              struct.setModuleLoadCmdIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 8: // LIB_PREPEND_PATHS
+            if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
+              {
+                org.apache.thrift.protocol.TList _list0 = iprot.readListBegin();
+                struct.libPrependPaths = new ArrayList<SetEnvPaths>(_list0.size);
+                for (int _i1 = 0; _i1 < _list0.size; ++_i1)
+                {
+                  SetEnvPaths _elem2;
+                  _elem2 = new SetEnvPaths();
+                  _elem2.read(iprot);
+                  struct.libPrependPaths.add(_elem2);
+                }
+                iprot.readListEnd();
+              }
+              struct.setLibPrependPathsIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 9: // LIB_APPEND_PATHS
+            if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
+              {
+                org.apache.thrift.protocol.TList _list3 = iprot.readListBegin();
+                struct.libAppendPaths = new ArrayList<SetEnvPaths>(_list3.size);
+                for (int _i4 = 0; _i4 < _list3.size; ++_i4)
+                {
+                  SetEnvPaths _elem5;
+                  _elem5 = new SetEnvPaths();
+                  _elem5.read(iprot);
+                  struct.libAppendPaths.add(_elem5);
+                }
+                iprot.readListEnd();
+              }
+              struct.setLibAppendPathsIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 10: // SET_ENVIRONMENT
+            if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
+              {
+                org.apache.thrift.protocol.TList _list6 = iprot.readListBegin();
+                struct.setEnvironment = new ArrayList<SetEnvPaths>(_list6.size);
+                for (int _i7 = 0; _i7 < _list6.size; ++_i7)
+                {
+                  SetEnvPaths _elem8;
+                  _elem8 = new SetEnvPaths();
+                  _elem8.read(iprot);
+                  struct.setEnvironment.add(_elem8);
+                }
+                iprot.readListEnd();
+              }
+              struct.setSetEnvironmentIsSet(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();
+      struct.validate();
+    }
+
+    public void write(org.apache.thrift.protocol.TProtocol oprot, ApplicationDeploymentDescription struct) throws org.apache.thrift.TException {
+      struct.validate();
+
+      oprot.writeStructBegin(STRUCT_DESC);
+      oprot.writeFieldBegin(IS_EMPTY_FIELD_DESC);
+      oprot.writeBool(struct.isEmpty);
+      oprot.writeFieldEnd();
+      if (struct.appDeploymentId != null) {
+        oprot.writeFieldBegin(APP_DEPLOYMENT_ID_FIELD_DESC);
+        oprot.writeString(struct.appDeploymentId);
+        oprot.writeFieldEnd();
+      }
+      if (struct.appModuleId != null) {
+        oprot.writeFieldBegin(APP_MODULE_ID_FIELD_DESC);
+        oprot.writeString(struct.appModuleId);
+        oprot.writeFieldEnd();
+      }
+      if (struct.computeHostId != null) {
+        oprot.writeFieldBegin(COMPUTE_HOST_ID_FIELD_DESC);
+        oprot.writeString(struct.computeHostId);
+        oprot.writeFieldEnd();
+      }
+      if (struct.executablePath != null) {
+        oprot.writeFieldBegin(EXECUTABLE_PATH_FIELD_DESC);
+        oprot.writeString(struct.executablePath);
+        oprot.writeFieldEnd();
+      }
+      if (struct.appDeploymentDescription != null) {
+        if (struct.isSetAppDeploymentDescription()) {
+          oprot.writeFieldBegin(APP_DEPLOYMENT_DESCRIPTION_FIELD_DESC);
+          oprot.writeString(struct.appDeploymentDescription);
+          oprot.writeFieldEnd();
+        }
+      }
+      if (struct.moduleLoadCmd != null) {
+        if (struct.isSetModuleLoadCmd()) {
+          oprot.writeFieldBegin(MODULE_LOAD_CMD_FIELD_DESC);
+          oprot.writeString(struct.moduleLoadCmd);
+          oprot.writeFieldEnd();
+        }
+      }
+      if (struct.libPrependPaths != null) {
+        if (struct.isSetLibPrependPaths()) {
+          oprot.writeFieldBegin(LIB_PREPEND_PATHS_FIELD_DESC);
+          {
+            oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.libPrependPaths.size()));
+            for (SetEnvPaths _iter9 : struct.libPrependPaths)
+            {
+              _iter9.write(oprot);
+            }
+            oprot.writeListEnd();
+          }
+          oprot.writeFieldEnd();
+        }
+      }
+      if (struct.libAppendPaths != null) {
+        if (struct.isSetLibAppendPaths()) {
+          oprot.writeFieldBegin(LIB_APPEND_PATHS_FIELD_DESC);
+          {
+            oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.libAppendPaths.size()));
+            for (SetEnvPaths _iter10 : struct.libAppendPaths)
+            {
+              _iter10.write(oprot);
+            }
+            oprot.writeListEnd();
+          }
+          oprot.writeFieldEnd();
+        }
+      }
+      if (struct.setEnvironment != null) {
+        if (struct.isSetSetEnvironment()) {
+          oprot.writeFieldBegin(SET_ENVIRONMENT_FIELD_DESC);
+          {
+            oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.setEnvironment.size()));
+            for (SetEnvPaths _iter11 : struct.setEnvironment)
+            {
+              _iter11.write(oprot);
+            }
+            oprot.writeListEnd();
+          }
+          oprot.writeFieldEnd();
+        }
+      }
+      oprot.writeFieldStop();
+      oprot.writeStructEnd();
+    }
+
+  }
+
+  private static class ApplicationDeploymentDescriptionTupleSchemeFactory implements SchemeFactory {
+    public ApplicationDeploymentDescriptionTupleScheme getScheme() {
+      return new ApplicationDeploymentDescriptionTupleScheme();
+    }
+  }
+
+  private static class ApplicationDeploymentDescriptionTupleScheme extends TupleScheme<ApplicationDeploymentDescription> {
+
+    @Override
+    public void write(org.apache.thrift.protocol.TProtocol prot, ApplicationDeploymentDescription struct) throws org.apache.thrift.TException {
+      TTupleProtocol oprot = (TTupleProtocol) prot;
+      oprot.writeBool(struct.isEmpty);
+      oprot.writeString(struct.appDeploymentId);
+      oprot.writeString(struct.appModuleId);
+      oprot.writeString(struct.computeHostId);
+      oprot.writeString(struct.executablePath);
+      BitSet optionals = new BitSet();
+      if (struct.isSetAppDeploymentDescription()) {
+        optionals.set(0);
+      }
+      if (struct.isSetModuleLoadCmd()) {
+        optionals.set(1);
+      }
+      if (struct.isSetLibPrependPaths()) {
+        optionals.set(2);
+      }
+      if (struct.isSetLibAppendPaths()) {
+        optionals.set(3);
+      }
+      if (struct.isSetSetEnvironment()) {
+        optionals.set(4);
+      }
+      oprot.writeBitSet(optionals, 5);
+      if (struct.isSetAppDeploymentDescription()) {
+        oprot.writeString(struct.appDeploymentDescription);
+      }
+      if (struct.isSetModuleLoadCmd()) {
+        oprot.writeString(struct.moduleLoadCmd);
+      }
+      if (struct.isSetLibPrependPaths()) {
+        {
+          oprot.writeI32(struct.libPrependPaths.size());
+          for (SetEnvPaths _iter12 : struct.libPrependPaths)
+          {
+            _iter12.write(oprot);
+          }
+        }
+      }
+      if (struct.isSetLibAppendPaths()) {
+        {
+          oprot.writeI32(struct.libAppendPaths.size());
+          for (SetEnvPaths _iter13 : struct.libAppendPaths)
+          {
+            _iter13.write(oprot);
+          }
+        }
+      }
+      if (struct.isSetSetEnvironment()) {
+        {
+          oprot.writeI32(struct.setEnvironment.size());
+          for (SetEnvPaths _iter14 : struct.setEnvironment)
+          {
+            _iter14.write(oprot);
+          }
+        }
+      }
+    }
+
+    @Override
+    public void read(org.apache.thrift.protocol.TProtocol prot, ApplicationDeploymentDescription struct) throws org.apache.thrift.TException {
+      TTupleProtocol iprot = (TTupleProtocol) prot;
+      struct.isEmpty = iprot.readBool();
+      struct.setIsEmptyIsSet(true);
+      struct.appDeploymentId = iprot.readString();
+      struct.setAppDeploymentIdIsSet(true);
+      struct.appModuleId = iprot.readString();
+      struct.setAppModuleIdIsSet(true);
+      struct.computeHostId = iprot.readString();
+      struct.setComputeHostIdIsSet(true);
+      struct.executablePath = iprot.readString();
+      struct.setExecutablePathIsSet(true);
+      BitSet incoming = iprot.readBitSet(5);
+      if (incoming.get(0)) {
+        struct.appDeploymentDescription = iprot.readString();
+        struct.setAppDeploymentDescriptionIsSet(true);
+      }
+      if (incoming.get(1)) {
+        struct.moduleLoadCmd = iprot.readString();
+        struct.setModuleLoadCmdIsSet(true);
+      }
+      if (incoming.get(2)) {
+        {
+          org.apache.thrift.protocol.TList _list15 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+          struct.libPrependPaths = new ArrayList<SetEnvPaths>(_list15.size);
+          for (int _i16 = 0; _i16 < _list15.size; ++_i16)
+          {
+            SetEnvPaths _elem17;
+            _elem17 = new SetEnvPaths();
+            _elem17.read(iprot);
+            struct.libPrependPaths.add(_elem17);
+          }
+        }
+        struct.setLibPrependPathsIsSet(true);
+      }
+      if (incoming.get(3)) {
+        {
+          org.apache.thrift.protocol.TList _list18 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+          struct.libAppendPaths = new ArrayList<SetEnvPaths>(_list18.size);
+          for (int _i19 = 0; _i19 < _list18.size; ++_i19)
+          {
+            SetEnvPaths _elem20;
+            _elem20 = new SetEnvPaths();
+            _elem20.read(iprot);
+            struct.libAppendPaths.add(_elem20);
+          }
+        }
+        struct.setLibAppendPathsIsSet(true);
+      }
+      if (incoming.get(4)) {
+        {
+          org.apache.thrift.protocol.TList _list21 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+          struct.setEnvironment = new ArrayList<SetEnvPaths>(_list21.size);
+          for (int _i22 = 0; _i22 < _list21.size; ++_i22)
+          {
+            SetEnvPaths _elem23;
+            _elem23 = new SetEnvPaths();
+            _elem23.read(iprot);
+            struct.setEnvironment.add(_elem23);
+          }
+        }
+        struct.setSetEnvironmentIsSet(true);
+      }
+    }
+  }
+
+}
+

http://git-wip-us.apache.org/repos/asf/airavata/blob/227c78db/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/deployment/ApplicationModule.java
----------------------------------------------------------------------
diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/deployment/ApplicationModule.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/deployment/ApplicationModule.java
new file mode 100644
index 0000000..dfb067d
--- /dev/null
+++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/deployment/ApplicationModule.java
@@ -0,0 +1,811 @@
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+/**
+ * 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.model.application.deployment;
+
+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;
+
+/**
+ * Application Module Information. A module has to be registered before registering a deployment.
+ * 
+ * appModuleId: Airavata Internal Unique Job ID. This is set by the registry.
+ * 
+ * appModuleName:
+ *   Name of the application module.
+ * 
+ * appModuleVersion:
+ *   Version of the application.
+ * 
+ * appModuleDescription:
+ *    Descriprion of the Module
+ * 
+ */
+@SuppressWarnings("all") public class ApplicationModule implements org.apache.thrift.TBase<ApplicationModule, ApplicationModule._Fields>, java.io.Serializable, Cloneable, Comparable<ApplicationModule> {
+  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ApplicationModule");
+
+  private static final org.apache.thrift.protocol.TField IS_EMPTY_FIELD_DESC = new org.apache.thrift.protocol.TField("isEmpty", org.apache.thrift.protocol.TType.BOOL, (short)1);
+  private static final org.apache.thrift.protocol.TField APP_MODULE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("appModuleId", org.apache.thrift.protocol.TType.STRING, (short)2);
+  private static final org.apache.thrift.protocol.TField APP_MODULE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("appModuleName", org.apache.thrift.protocol.TType.STRING, (short)3);
+  private static final org.apache.thrift.protocol.TField APP_MODULE_VERSION_FIELD_DESC = new org.apache.thrift.protocol.TField("appModuleVersion", org.apache.thrift.protocol.TType.STRING, (short)4);
+  private static final org.apache.thrift.protocol.TField APP_MODULE_DESCRIPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("appModuleDescription", org.apache.thrift.protocol.TType.STRING, (short)5);
+
+  private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+  static {
+    schemes.put(StandardScheme.class, new ApplicationModuleStandardSchemeFactory());
+    schemes.put(TupleScheme.class, new ApplicationModuleTupleSchemeFactory());
+  }
+
+  private boolean isEmpty; // required
+  private String appModuleId; // required
+  private String appModuleName; // required
+  private String appModuleVersion; // optional
+  private String appModuleDescription; // optional
+
+  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
+  @SuppressWarnings("all") public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+    IS_EMPTY((short)1, "isEmpty"),
+    APP_MODULE_ID((short)2, "appModuleId"),
+    APP_MODULE_NAME((short)3, "appModuleName"),
+    APP_MODULE_VERSION((short)4, "appModuleVersion"),
+    APP_MODULE_DESCRIPTION((short)5, "appModuleDescription");
+
+    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: // IS_EMPTY
+          return IS_EMPTY;
+        case 2: // APP_MODULE_ID
+          return APP_MODULE_ID;
+        case 3: // APP_MODULE_NAME
+          return APP_MODULE_NAME;
+        case 4: // APP_MODULE_VERSION
+          return APP_MODULE_VERSION;
+        case 5: // APP_MODULE_DESCRIPTION
+          return APP_MODULE_DESCRIPTION;
+        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 __ISEMPTY_ISSET_ID = 0;
+  private byte __isset_bitfield = 0;
+  private _Fields optionals[] = {_Fields.APP_MODULE_VERSION,_Fields.APP_MODULE_DESCRIPTION};
+  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.IS_EMPTY, new org.apache.thrift.meta_data.FieldMetaData("isEmpty", org.apache.thrift.TFieldRequirementType.REQUIRED, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
+    tmpMap.put(_Fields.APP_MODULE_ID, new org.apache.thrift.meta_data.FieldMetaData("appModuleId", org.apache.thrift.TFieldRequirementType.REQUIRED, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+    tmpMap.put(_Fields.APP_MODULE_NAME, new org.apache.thrift.meta_data.FieldMetaData("appModuleName", org.apache.thrift.TFieldRequirementType.REQUIRED, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+    tmpMap.put(_Fields.APP_MODULE_VERSION, new org.apache.thrift.meta_data.FieldMetaData("appModuleVersion", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+    tmpMap.put(_Fields.APP_MODULE_DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("appModuleDescription", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+    metaDataMap = Collections.unmodifiableMap(tmpMap);
+    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(ApplicationModule.class, metaDataMap);
+  }
+
+  public ApplicationModule() {
+    this.isEmpty = false;
+
+    this.appModuleId = "DO_NOT_SET_AT_CLIENTS";
+
+  }
+
+  public ApplicationModule(
+    boolean isEmpty,
+    String appModuleId,
+    String appModuleName)
+  {
+    this();
+    this.isEmpty = isEmpty;
+    setIsEmptyIsSet(true);
+    this.appModuleId = appModuleId;
+    this.appModuleName = appModuleName;
+  }
+
+  /**
+   * Performs a deep copy on <i>other</i>.
+   */
+  public ApplicationModule(ApplicationModule other) {
+    __isset_bitfield = other.__isset_bitfield;
+    this.isEmpty = other.isEmpty;
+    if (other.isSetAppModuleId()) {
+      this.appModuleId = other.appModuleId;
+    }
+    if (other.isSetAppModuleName()) {
+      this.appModuleName = other.appModuleName;
+    }
+    if (other.isSetAppModuleVersion()) {
+      this.appModuleVersion = other.appModuleVersion;
+    }
+    if (other.isSetAppModuleDescription()) {
+      this.appModuleDescription = other.appModuleDescription;
+    }
+  }
+
+  public ApplicationModule deepCopy() {
+    return new ApplicationModule(this);
+  }
+
+  @Override
+  public void clear() {
+    this.isEmpty = false;
+
+    this.appModuleId = "DO_NOT_SET_AT_CLIENTS";
+
+    this.appModuleName = null;
+    this.appModuleVersion = null;
+    this.appModuleDescription = null;
+  }
+
+  public boolean isIsEmpty() {
+    return this.isEmpty;
+  }
+
+  public void setIsEmpty(boolean isEmpty) {
+    this.isEmpty = isEmpty;
+    setIsEmptyIsSet(true);
+  }
+
+  public void unsetIsEmpty() {
+    __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ISEMPTY_ISSET_ID);
+  }
+
+  /** Returns true if field isEmpty is set (has been assigned a value) and false otherwise */
+  public boolean isSetIsEmpty() {
+    return EncodingUtils.testBit(__isset_bitfield, __ISEMPTY_ISSET_ID);
+  }
+
+  public void setIsEmptyIsSet(boolean value) {
+    __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ISEMPTY_ISSET_ID, value);
+  }
+
+  public String getAppModuleId() {
+    return this.appModuleId;
+  }
+
+  public void setAppModuleId(String appModuleId) {
+    this.appModuleId = appModuleId;
+  }
+
+  public void unsetAppModuleId() {
+    this.appModuleId = null;
+  }
+
+  /** Returns true if field appModuleId is set (has been assigned a value) and false otherwise */
+  public boolean isSetAppModuleId() {
+    return this.appModuleId != null;
+  }
+
+  public void setAppModuleIdIsSet(boolean value) {
+    if (!value) {
+      this.appModuleId = null;
+    }
+  }
+
+  public String getAppModuleName() {
+    return this.appModuleName;
+  }
+
+  public void setAppModuleName(String appModuleName) {
+    this.appModuleName = appModuleName;
+  }
+
+  public void unsetAppModuleName() {
+    this.appModuleName = null;
+  }
+
+  /** Returns true if field appModuleName is set (has been assigned a value) and false otherwise */
+  public boolean isSetAppModuleName() {
+    return this.appModuleName != null;
+  }
+
+  public void setAppModuleNameIsSet(boolean value) {
+    if (!value) {
+      this.appModuleName = null;
+    }
+  }
+
+  public String getAppModuleVersion() {
+    return this.appModuleVersion;
+  }
+
+  public void setAppModuleVersion(String appModuleVersion) {
+    this.appModuleVersion = appModuleVersion;
+  }
+
+  public void unsetAppModuleVersion() {
+    this.appModuleVersion = null;
+  }
+
+  /** Returns true if field appModuleVersion is set (has been assigned a value) and false otherwise */
+  public boolean isSetAppModuleVersion() {
+    return this.appModuleVersion != null;
+  }
+
+  public void setAppModuleVersionIsSet(boolean value) {
+    if (!value) {
+      this.appModuleVersion = null;
+    }
+  }
+
+  public String getAppModuleDescription() {
+    return this.appModuleDescription;
+  }
+
+  public void setAppModuleDescription(String appModuleDescription) {
+    this.appModuleDescription = appModuleDescription;
+  }
+
+  public void unsetAppModuleDescription() {
+    this.appModuleDescription = null;
+  }
+
+  /** Returns true if field appModuleDescription is set (has been assigned a value) and false otherwise */
+  public boolean isSetAppModuleDescription() {
+    return this.appModuleDescription != null;
+  }
+
+  public void setAppModuleDescriptionIsSet(boolean value) {
+    if (!value) {
+      this.appModuleDescription = null;
+    }
+  }
+
+  public void setFieldValue(_Fields field, Object value) {
+    switch (field) {
+    case IS_EMPTY:
+      if (value == null) {
+        unsetIsEmpty();
+      } else {
+        setIsEmpty((Boolean)value);
+      }
+      break;
+
+    case APP_MODULE_ID:
+      if (value == null) {
+        unsetAppModuleId();
+      } else {
+        setAppModuleId((String)value);
+      }
+      break;
+
+    case APP_MODULE_NAME:
+      if (value == null) {
+        unsetAppModuleName();
+      } else {
+        setAppModuleName((String)value);
+      }
+      break;
+
+    case APP_MODULE_VERSION:
+      if (value == null) {
+        unsetAppModuleVersion();
+      } else {
+        setAppModuleVersion((String)value);
+      }
+      break;
+
+    case APP_MODULE_DESCRIPTION:
+      if (value == null) {
+        unsetAppModuleDescription();
+      } else {
+        setAppModuleDescription((String)value);
+      }
+      break;
+
+    }
+  }
+
+  public Object getFieldValue(_Fields field) {
+    switch (field) {
+    case IS_EMPTY:
+      return Boolean.valueOf(isIsEmpty());
+
+    case APP_MODULE_ID:
+      return getAppModuleId();
+
+    case APP_MODULE_NAME:
+      return getAppModuleName();
+
+    case APP_MODULE_VERSION:
+      return getAppModuleVersion();
+
+    case APP_MODULE_DESCRIPTION:
+      return getAppModuleDescription();
+
+    }
+    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 IS_EMPTY:
+      return isSetIsEmpty();
+    case APP_MODULE_ID:
+      return isSetAppModuleId();
+    case APP_MODULE_NAME:
+      return isSetAppModuleName();
+    case APP_MODULE_VERSION:
+      return isSetAppModuleVersion();
+    case APP_MODULE_DESCRIPTION:
+      return isSetAppModuleDescription();
+    }
+    throw new IllegalStateException();
+  }
+
+  @Override
+  public boolean equals(Object that) {
+    if (that == null)
+      return false;
+    if (that instanceof ApplicationModule)
+      return this.equals((ApplicationModule)that);
+    return false;
+  }
+
+  public boolean equals(ApplicationModule that) {
+    if (that == null)
+      return false;
+
+    boolean this_present_isEmpty = true;
+    boolean that_present_isEmpty = true;
+    if (this_present_isEmpty || that_present_isEmpty) {
+      if (!(this_present_isEmpty && that_present_isEmpty))
+        return false;
+      if (this.isEmpty != that.isEmpty)
+        return false;
+    }
+
+    boolean this_present_appModuleId = true && this.isSetAppModuleId();
+    boolean that_present_appModuleId = true && that.isSetAppModuleId();
+    if (this_present_appModuleId || that_present_appModuleId) {
+      if (!(this_present_appModuleId && that_present_appModuleId))
+        return false;
+      if (!this.appModuleId.equals(that.appModuleId))
+        return false;
+    }
+
+    boolean this_present_appModuleName = true && this.isSetAppModuleName();
+    boolean that_present_appModuleName = true && that.isSetAppModuleName();
+    if (this_present_appModuleName || that_present_appModuleName) {
+      if (!(this_present_appModuleName && that_present_appModuleName))
+        return false;
+      if (!this.appModuleName.equals(that.appModuleName))
+        return false;
+    }
+
+    boolean this_present_appModuleVersion = true && this.isSetAppModuleVersion();
+    boolean that_present_appModuleVersion = true && that.isSetAppModuleVersion();
+    if (this_present_appModuleVersion || that_present_appModuleVersion) {
+      if (!(this_present_appModuleVersion && that_present_appModuleVersion))
+        return false;
+      if (!this.appModuleVersion.equals(that.appModuleVersion))
+        return false;
+    }
+
+    boolean this_present_appModuleDescription = true && this.isSetAppModuleDescription();
+    boolean that_present_appModuleDescription = true && that.isSetAppModuleDescription();
+    if (this_present_appModuleDescription || that_present_appModuleDescription) {
+      if (!(this_present_appModuleDescription && that_present_appModuleDescription))
+        return false;
+      if (!this.appModuleDescription.equals(that.appModuleDescription))
+        return false;
+    }
+
+    return true;
+  }
+
+  @Override
+  public int hashCode() {
+    return 0;
+  }
+
+  @Override
+  public int compareTo(ApplicationModule other) {
+    if (!getClass().equals(other.getClass())) {
+      return getClass().getName().compareTo(other.getClass().getName());
+    }
+
+    int lastComparison = 0;
+
+    lastComparison = Boolean.valueOf(isSetIsEmpty()).compareTo(other.isSetIsEmpty());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetIsEmpty()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isEmpty, other.isEmpty);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetAppModuleId()).compareTo(other.isSetAppModuleId());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetAppModuleId()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.appModuleId, other.appModuleId);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetAppModuleName()).compareTo(other.isSetAppModuleName());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetAppModuleName()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.appModuleName, other.appModuleName);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetAppModuleVersion()).compareTo(other.isSetAppModuleVersion());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetAppModuleVersion()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.appModuleVersion, other.appModuleVersion);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetAppModuleDescription()).compareTo(other.isSetAppModuleDescription());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetAppModuleDescription()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.appModuleDescription, other.appModuleDescription);
+      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("ApplicationModule(");
+    boolean first = true;
+
+    sb.append("isEmpty:");
+    sb.append(this.isEmpty);
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("appModuleId:");
+    if (this.appModuleId == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.appModuleId);
+    }
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("appModuleName:");
+    if (this.appModuleName == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.appModuleName);
+    }
+    first = false;
+    if (isSetAppModuleVersion()) {
+      if (!first) sb.append(", ");
+      sb.append("appModuleVersion:");
+      if (this.appModuleVersion == null) {
+        sb.append("null");
+      } else {
+        sb.append(this.appModuleVersion);
+      }
+      first = false;
+    }
+    if (isSetAppModuleDescription()) {
+      if (!first) sb.append(", ");
+      sb.append("appModuleDescription:");
+      if (this.appModuleDescription == null) {
+        sb.append("null");
+      } else {
+        sb.append(this.appModuleDescription);
+      }
+      first = false;
+    }
+    sb.append(")");
+    return sb.toString();
+  }
+
+  public void validate() throws org.apache.thrift.TException {
+    // check for required fields
+    if (!isSetIsEmpty()) {
+      throw new org.apache.thrift.protocol.TProtocolException("Required field 'isEmpty' is unset! Struct:" + toString());
+    }
+
+    if (!isSetAppModuleId()) {
+      throw new org.apache.thrift.protocol.TProtocolException("Required field 'appModuleId' is unset! Struct:" + toString());
+    }
+
+    if (!isSetAppModuleName()) {
+      throw new org.apache.thrift.protocol.TProtocolException("Required field 'appModuleName' is unset! Struct:" + toString());
+    }
+
+    // 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 ApplicationModuleStandardSchemeFactory implements SchemeFactory {
+    public ApplicationModuleStandardScheme getScheme() {
+      return new ApplicationModuleStandardScheme();
+    }
+  }
+
+  private static class ApplicationModuleStandardScheme extends StandardScheme<ApplicationModule> {
+
+    public void read(org.apache.thrift.protocol.TProtocol iprot, ApplicationModule 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: // IS_EMPTY
+            if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
+              struct.isEmpty = iprot.readBool();
+              struct.setIsEmptyIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 2: // APP_MODULE_ID
+            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+              struct.appModuleId = iprot.readString();
+              struct.setAppModuleIdIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 3: // APP_MODULE_NAME
+            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+              struct.appModuleName = iprot.readString();
+              struct.setAppModuleNameIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 4: // APP_MODULE_VERSION
+            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+              struct.appModuleVersion = iprot.readString();
+              struct.setAppModuleVersionIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 5: // APP_MODULE_DESCRIPTION
+            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+              struct.appModuleDescription = iprot.readString();
+              struct.setAppModuleDescriptionIsSet(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();
+      struct.validate();
+    }
+
+    public void write(org.apache.thrift.protocol.TProtocol oprot, ApplicationModule struct) throws org.apache.thrift.TException {
+      struct.validate();
+
+      oprot.writeStructBegin(STRUCT_DESC);
+      oprot.writeFieldBegin(IS_EMPTY_FIELD_DESC);
+      oprot.writeBool(struct.isEmpty);
+      oprot.writeFieldEnd();
+      if (struct.appModuleId != null) {
+        oprot.writeFieldBegin(APP_MODULE_ID_FIELD_DESC);
+        oprot.writeString(struct.appModuleId);
+        oprot.writeFieldEnd();
+      }
+      if (struct.appModuleName != null) {
+        oprot.writeFieldBegin(APP_MODULE_NAME_FIELD_DESC);
+        oprot.writeString(struct.appModuleName);
+        oprot.writeFieldEnd();
+      }
+      if (struct.appModuleVersion != null) {
+        if (struct.isSetAppModuleVersion()) {
+          oprot.writeFieldBegin(APP_MODULE_VERSION_FIELD_DESC);
+          oprot.writeString(struct.appModuleVersion);
+          oprot.writeFieldEnd();
+        }
+      }
+      if (struct.appModuleDescription != null) {
+        if (struct.isSetAppModuleDescription()) {
+          oprot.writeFieldBegin(APP_MODULE_DESCRIPTION_FIELD_DESC);
+          oprot.writeString(struct.appModuleDescription);
+          oprot.writeFieldEnd();
+        }
+      }
+      oprot.writeFieldStop();
+      oprot.writeStructEnd();
+    }
+
+  }
+
+  private static class ApplicationModuleTupleSchemeFactory implements SchemeFactory {
+    public ApplicationModuleTupleScheme getScheme() {
+      return new ApplicationModuleTupleScheme();
+    }
+  }
+
+  private static class ApplicationModuleTupleScheme extends TupleScheme<ApplicationModule> {
+
+    @Override
+    public void write(org.apache.thrift.protocol.TProtocol prot, ApplicationModule struct) throws org.apache.thrift.TException {
+      TTupleProtocol oprot = (TTupleProtocol) prot;
+      oprot.writeBool(struct.isEmpty);
+      oprot.writeString(struct.appModuleId);
+      oprot.writeString(struct.appModuleName);
+      BitSet optionals = new BitSet();
+      if (struct.isSetAppModuleVersion()) {
+        optionals.set(0);
+      }
+      if (struct.isSetAppModuleDescription()) {
+        optionals.set(1);
+      }
+      oprot.writeBitSet(optionals, 2);
+      if (struct.isSetAppModuleVersion()) {
+        oprot.writeString(struct.appModuleVersion);
+      }
+      if (struct.isSetAppModuleDescription()) {
+        oprot.writeString(struct.appModuleDescription);
+      }
+    }
+
+    @Override
+    public void read(org.apache.thrift.protocol.TProtocol prot, ApplicationModule struct) throws org.apache.thrift.TException {
+      TTupleProtocol iprot = (TTupleProtocol) prot;
+      struct.isEmpty = iprot.readBool();
+      struct.setIsEmptyIsSet(true);
+      struct.appModuleId = iprot.readString();
+      struct.setAppModuleIdIsSet(true);
+      struct.appModuleName = iprot.readString();
+      struct.setAppModuleNameIsSet(true);
+      BitSet incoming = iprot.readBitSet(2);
+      if (incoming.get(0)) {
+        struct.appModuleVersion = iprot.readString();
+        struct.setAppModuleVersionIsSet(true);
+      }
+      if (incoming.get(1)) {
+        struct.appModuleDescription = iprot.readString();
+        struct.setAppModuleDescriptionIsSet(true);
+      }
+    }
+  }
+
+}
+


[7/8] updating app catalog data model namespaces

Posted by sm...@apache.org.
http://git-wip-us.apache.org/repos/asf/airavata/blob/6843720a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/deployment/ApplicationModule.java
----------------------------------------------------------------------
diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/deployment/ApplicationModule.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/deployment/ApplicationModule.java
deleted file mode 100644
index dfb067d..0000000
--- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/deployment/ApplicationModule.java
+++ /dev/null
@@ -1,811 +0,0 @@
-    /*
-     * Licensed to the Apache Software Foundation (ASF) under one or more
-     * contributor license agreements.  See the NOTICE file distributed with
-     * this work for additional information regarding copyright ownership.
-     * The ASF licenses this file to You under the Apache License, Version 2.0
-     * (the "License"); you may not use this file except in compliance with
-     * the License.  You may obtain a copy of the License at
-     *
-     *     http://www.apache.org/licenses/LICENSE-2.0
-     *
-     * Unless required by applicable law or agreed to in writing, software
-     * distributed under the License is distributed on an "AS IS" BASIS,
-     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-     * See the License for the specific language governing permissions and
-     * limitations under the License.
-     */
-/**
- * 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.model.application.deployment;
-
-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;
-
-/**
- * Application Module Information. A module has to be registered before registering a deployment.
- * 
- * appModuleId: Airavata Internal Unique Job ID. This is set by the registry.
- * 
- * appModuleName:
- *   Name of the application module.
- * 
- * appModuleVersion:
- *   Version of the application.
- * 
- * appModuleDescription:
- *    Descriprion of the Module
- * 
- */
-@SuppressWarnings("all") public class ApplicationModule implements org.apache.thrift.TBase<ApplicationModule, ApplicationModule._Fields>, java.io.Serializable, Cloneable, Comparable<ApplicationModule> {
-  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ApplicationModule");
-
-  private static final org.apache.thrift.protocol.TField IS_EMPTY_FIELD_DESC = new org.apache.thrift.protocol.TField("isEmpty", org.apache.thrift.protocol.TType.BOOL, (short)1);
-  private static final org.apache.thrift.protocol.TField APP_MODULE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("appModuleId", org.apache.thrift.protocol.TType.STRING, (short)2);
-  private static final org.apache.thrift.protocol.TField APP_MODULE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("appModuleName", org.apache.thrift.protocol.TType.STRING, (short)3);
-  private static final org.apache.thrift.protocol.TField APP_MODULE_VERSION_FIELD_DESC = new org.apache.thrift.protocol.TField("appModuleVersion", org.apache.thrift.protocol.TType.STRING, (short)4);
-  private static final org.apache.thrift.protocol.TField APP_MODULE_DESCRIPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("appModuleDescription", org.apache.thrift.protocol.TType.STRING, (short)5);
-
-  private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
-  static {
-    schemes.put(StandardScheme.class, new ApplicationModuleStandardSchemeFactory());
-    schemes.put(TupleScheme.class, new ApplicationModuleTupleSchemeFactory());
-  }
-
-  private boolean isEmpty; // required
-  private String appModuleId; // required
-  private String appModuleName; // required
-  private String appModuleVersion; // optional
-  private String appModuleDescription; // optional
-
-  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-  @SuppressWarnings("all") public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-    IS_EMPTY((short)1, "isEmpty"),
-    APP_MODULE_ID((short)2, "appModuleId"),
-    APP_MODULE_NAME((short)3, "appModuleName"),
-    APP_MODULE_VERSION((short)4, "appModuleVersion"),
-    APP_MODULE_DESCRIPTION((short)5, "appModuleDescription");
-
-    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: // IS_EMPTY
-          return IS_EMPTY;
-        case 2: // APP_MODULE_ID
-          return APP_MODULE_ID;
-        case 3: // APP_MODULE_NAME
-          return APP_MODULE_NAME;
-        case 4: // APP_MODULE_VERSION
-          return APP_MODULE_VERSION;
-        case 5: // APP_MODULE_DESCRIPTION
-          return APP_MODULE_DESCRIPTION;
-        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 __ISEMPTY_ISSET_ID = 0;
-  private byte __isset_bitfield = 0;
-  private _Fields optionals[] = {_Fields.APP_MODULE_VERSION,_Fields.APP_MODULE_DESCRIPTION};
-  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.IS_EMPTY, new org.apache.thrift.meta_data.FieldMetaData("isEmpty", org.apache.thrift.TFieldRequirementType.REQUIRED, 
-        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-    tmpMap.put(_Fields.APP_MODULE_ID, new org.apache.thrift.meta_data.FieldMetaData("appModuleId", org.apache.thrift.TFieldRequirementType.REQUIRED, 
-        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-    tmpMap.put(_Fields.APP_MODULE_NAME, new org.apache.thrift.meta_data.FieldMetaData("appModuleName", org.apache.thrift.TFieldRequirementType.REQUIRED, 
-        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-    tmpMap.put(_Fields.APP_MODULE_VERSION, new org.apache.thrift.meta_data.FieldMetaData("appModuleVersion", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
-        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-    tmpMap.put(_Fields.APP_MODULE_DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("appModuleDescription", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
-        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-    metaDataMap = Collections.unmodifiableMap(tmpMap);
-    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(ApplicationModule.class, metaDataMap);
-  }
-
-  public ApplicationModule() {
-    this.isEmpty = false;
-
-    this.appModuleId = "DO_NOT_SET_AT_CLIENTS";
-
-  }
-
-  public ApplicationModule(
-    boolean isEmpty,
-    String appModuleId,
-    String appModuleName)
-  {
-    this();
-    this.isEmpty = isEmpty;
-    setIsEmptyIsSet(true);
-    this.appModuleId = appModuleId;
-    this.appModuleName = appModuleName;
-  }
-
-  /**
-   * Performs a deep copy on <i>other</i>.
-   */
-  public ApplicationModule(ApplicationModule other) {
-    __isset_bitfield = other.__isset_bitfield;
-    this.isEmpty = other.isEmpty;
-    if (other.isSetAppModuleId()) {
-      this.appModuleId = other.appModuleId;
-    }
-    if (other.isSetAppModuleName()) {
-      this.appModuleName = other.appModuleName;
-    }
-    if (other.isSetAppModuleVersion()) {
-      this.appModuleVersion = other.appModuleVersion;
-    }
-    if (other.isSetAppModuleDescription()) {
-      this.appModuleDescription = other.appModuleDescription;
-    }
-  }
-
-  public ApplicationModule deepCopy() {
-    return new ApplicationModule(this);
-  }
-
-  @Override
-  public void clear() {
-    this.isEmpty = false;
-
-    this.appModuleId = "DO_NOT_SET_AT_CLIENTS";
-
-    this.appModuleName = null;
-    this.appModuleVersion = null;
-    this.appModuleDescription = null;
-  }
-
-  public boolean isIsEmpty() {
-    return this.isEmpty;
-  }
-
-  public void setIsEmpty(boolean isEmpty) {
-    this.isEmpty = isEmpty;
-    setIsEmptyIsSet(true);
-  }
-
-  public void unsetIsEmpty() {
-    __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ISEMPTY_ISSET_ID);
-  }
-
-  /** Returns true if field isEmpty is set (has been assigned a value) and false otherwise */
-  public boolean isSetIsEmpty() {
-    return EncodingUtils.testBit(__isset_bitfield, __ISEMPTY_ISSET_ID);
-  }
-
-  public void setIsEmptyIsSet(boolean value) {
-    __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ISEMPTY_ISSET_ID, value);
-  }
-
-  public String getAppModuleId() {
-    return this.appModuleId;
-  }
-
-  public void setAppModuleId(String appModuleId) {
-    this.appModuleId = appModuleId;
-  }
-
-  public void unsetAppModuleId() {
-    this.appModuleId = null;
-  }
-
-  /** Returns true if field appModuleId is set (has been assigned a value) and false otherwise */
-  public boolean isSetAppModuleId() {
-    return this.appModuleId != null;
-  }
-
-  public void setAppModuleIdIsSet(boolean value) {
-    if (!value) {
-      this.appModuleId = null;
-    }
-  }
-
-  public String getAppModuleName() {
-    return this.appModuleName;
-  }
-
-  public void setAppModuleName(String appModuleName) {
-    this.appModuleName = appModuleName;
-  }
-
-  public void unsetAppModuleName() {
-    this.appModuleName = null;
-  }
-
-  /** Returns true if field appModuleName is set (has been assigned a value) and false otherwise */
-  public boolean isSetAppModuleName() {
-    return this.appModuleName != null;
-  }
-
-  public void setAppModuleNameIsSet(boolean value) {
-    if (!value) {
-      this.appModuleName = null;
-    }
-  }
-
-  public String getAppModuleVersion() {
-    return this.appModuleVersion;
-  }
-
-  public void setAppModuleVersion(String appModuleVersion) {
-    this.appModuleVersion = appModuleVersion;
-  }
-
-  public void unsetAppModuleVersion() {
-    this.appModuleVersion = null;
-  }
-
-  /** Returns true if field appModuleVersion is set (has been assigned a value) and false otherwise */
-  public boolean isSetAppModuleVersion() {
-    return this.appModuleVersion != null;
-  }
-
-  public void setAppModuleVersionIsSet(boolean value) {
-    if (!value) {
-      this.appModuleVersion = null;
-    }
-  }
-
-  public String getAppModuleDescription() {
-    return this.appModuleDescription;
-  }
-
-  public void setAppModuleDescription(String appModuleDescription) {
-    this.appModuleDescription = appModuleDescription;
-  }
-
-  public void unsetAppModuleDescription() {
-    this.appModuleDescription = null;
-  }
-
-  /** Returns true if field appModuleDescription is set (has been assigned a value) and false otherwise */
-  public boolean isSetAppModuleDescription() {
-    return this.appModuleDescription != null;
-  }
-
-  public void setAppModuleDescriptionIsSet(boolean value) {
-    if (!value) {
-      this.appModuleDescription = null;
-    }
-  }
-
-  public void setFieldValue(_Fields field, Object value) {
-    switch (field) {
-    case IS_EMPTY:
-      if (value == null) {
-        unsetIsEmpty();
-      } else {
-        setIsEmpty((Boolean)value);
-      }
-      break;
-
-    case APP_MODULE_ID:
-      if (value == null) {
-        unsetAppModuleId();
-      } else {
-        setAppModuleId((String)value);
-      }
-      break;
-
-    case APP_MODULE_NAME:
-      if (value == null) {
-        unsetAppModuleName();
-      } else {
-        setAppModuleName((String)value);
-      }
-      break;
-
-    case APP_MODULE_VERSION:
-      if (value == null) {
-        unsetAppModuleVersion();
-      } else {
-        setAppModuleVersion((String)value);
-      }
-      break;
-
-    case APP_MODULE_DESCRIPTION:
-      if (value == null) {
-        unsetAppModuleDescription();
-      } else {
-        setAppModuleDescription((String)value);
-      }
-      break;
-
-    }
-  }
-
-  public Object getFieldValue(_Fields field) {
-    switch (field) {
-    case IS_EMPTY:
-      return Boolean.valueOf(isIsEmpty());
-
-    case APP_MODULE_ID:
-      return getAppModuleId();
-
-    case APP_MODULE_NAME:
-      return getAppModuleName();
-
-    case APP_MODULE_VERSION:
-      return getAppModuleVersion();
-
-    case APP_MODULE_DESCRIPTION:
-      return getAppModuleDescription();
-
-    }
-    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 IS_EMPTY:
-      return isSetIsEmpty();
-    case APP_MODULE_ID:
-      return isSetAppModuleId();
-    case APP_MODULE_NAME:
-      return isSetAppModuleName();
-    case APP_MODULE_VERSION:
-      return isSetAppModuleVersion();
-    case APP_MODULE_DESCRIPTION:
-      return isSetAppModuleDescription();
-    }
-    throw new IllegalStateException();
-  }
-
-  @Override
-  public boolean equals(Object that) {
-    if (that == null)
-      return false;
-    if (that instanceof ApplicationModule)
-      return this.equals((ApplicationModule)that);
-    return false;
-  }
-
-  public boolean equals(ApplicationModule that) {
-    if (that == null)
-      return false;
-
-    boolean this_present_isEmpty = true;
-    boolean that_present_isEmpty = true;
-    if (this_present_isEmpty || that_present_isEmpty) {
-      if (!(this_present_isEmpty && that_present_isEmpty))
-        return false;
-      if (this.isEmpty != that.isEmpty)
-        return false;
-    }
-
-    boolean this_present_appModuleId = true && this.isSetAppModuleId();
-    boolean that_present_appModuleId = true && that.isSetAppModuleId();
-    if (this_present_appModuleId || that_present_appModuleId) {
-      if (!(this_present_appModuleId && that_present_appModuleId))
-        return false;
-      if (!this.appModuleId.equals(that.appModuleId))
-        return false;
-    }
-
-    boolean this_present_appModuleName = true && this.isSetAppModuleName();
-    boolean that_present_appModuleName = true && that.isSetAppModuleName();
-    if (this_present_appModuleName || that_present_appModuleName) {
-      if (!(this_present_appModuleName && that_present_appModuleName))
-        return false;
-      if (!this.appModuleName.equals(that.appModuleName))
-        return false;
-    }
-
-    boolean this_present_appModuleVersion = true && this.isSetAppModuleVersion();
-    boolean that_present_appModuleVersion = true && that.isSetAppModuleVersion();
-    if (this_present_appModuleVersion || that_present_appModuleVersion) {
-      if (!(this_present_appModuleVersion && that_present_appModuleVersion))
-        return false;
-      if (!this.appModuleVersion.equals(that.appModuleVersion))
-        return false;
-    }
-
-    boolean this_present_appModuleDescription = true && this.isSetAppModuleDescription();
-    boolean that_present_appModuleDescription = true && that.isSetAppModuleDescription();
-    if (this_present_appModuleDescription || that_present_appModuleDescription) {
-      if (!(this_present_appModuleDescription && that_present_appModuleDescription))
-        return false;
-      if (!this.appModuleDescription.equals(that.appModuleDescription))
-        return false;
-    }
-
-    return true;
-  }
-
-  @Override
-  public int hashCode() {
-    return 0;
-  }
-
-  @Override
-  public int compareTo(ApplicationModule other) {
-    if (!getClass().equals(other.getClass())) {
-      return getClass().getName().compareTo(other.getClass().getName());
-    }
-
-    int lastComparison = 0;
-
-    lastComparison = Boolean.valueOf(isSetIsEmpty()).compareTo(other.isSetIsEmpty());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetIsEmpty()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isEmpty, other.isEmpty);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    lastComparison = Boolean.valueOf(isSetAppModuleId()).compareTo(other.isSetAppModuleId());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetAppModuleId()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.appModuleId, other.appModuleId);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    lastComparison = Boolean.valueOf(isSetAppModuleName()).compareTo(other.isSetAppModuleName());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetAppModuleName()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.appModuleName, other.appModuleName);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    lastComparison = Boolean.valueOf(isSetAppModuleVersion()).compareTo(other.isSetAppModuleVersion());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetAppModuleVersion()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.appModuleVersion, other.appModuleVersion);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    lastComparison = Boolean.valueOf(isSetAppModuleDescription()).compareTo(other.isSetAppModuleDescription());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetAppModuleDescription()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.appModuleDescription, other.appModuleDescription);
-      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("ApplicationModule(");
-    boolean first = true;
-
-    sb.append("isEmpty:");
-    sb.append(this.isEmpty);
-    first = false;
-    if (!first) sb.append(", ");
-    sb.append("appModuleId:");
-    if (this.appModuleId == null) {
-      sb.append("null");
-    } else {
-      sb.append(this.appModuleId);
-    }
-    first = false;
-    if (!first) sb.append(", ");
-    sb.append("appModuleName:");
-    if (this.appModuleName == null) {
-      sb.append("null");
-    } else {
-      sb.append(this.appModuleName);
-    }
-    first = false;
-    if (isSetAppModuleVersion()) {
-      if (!first) sb.append(", ");
-      sb.append("appModuleVersion:");
-      if (this.appModuleVersion == null) {
-        sb.append("null");
-      } else {
-        sb.append(this.appModuleVersion);
-      }
-      first = false;
-    }
-    if (isSetAppModuleDescription()) {
-      if (!first) sb.append(", ");
-      sb.append("appModuleDescription:");
-      if (this.appModuleDescription == null) {
-        sb.append("null");
-      } else {
-        sb.append(this.appModuleDescription);
-      }
-      first = false;
-    }
-    sb.append(")");
-    return sb.toString();
-  }
-
-  public void validate() throws org.apache.thrift.TException {
-    // check for required fields
-    if (!isSetIsEmpty()) {
-      throw new org.apache.thrift.protocol.TProtocolException("Required field 'isEmpty' is unset! Struct:" + toString());
-    }
-
-    if (!isSetAppModuleId()) {
-      throw new org.apache.thrift.protocol.TProtocolException("Required field 'appModuleId' is unset! Struct:" + toString());
-    }
-
-    if (!isSetAppModuleName()) {
-      throw new org.apache.thrift.protocol.TProtocolException("Required field 'appModuleName' is unset! Struct:" + toString());
-    }
-
-    // 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 ApplicationModuleStandardSchemeFactory implements SchemeFactory {
-    public ApplicationModuleStandardScheme getScheme() {
-      return new ApplicationModuleStandardScheme();
-    }
-  }
-
-  private static class ApplicationModuleStandardScheme extends StandardScheme<ApplicationModule> {
-
-    public void read(org.apache.thrift.protocol.TProtocol iprot, ApplicationModule 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: // IS_EMPTY
-            if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
-              struct.isEmpty = iprot.readBool();
-              struct.setIsEmptyIsSet(true);
-            } else { 
-              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-            }
-            break;
-          case 2: // APP_MODULE_ID
-            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
-              struct.appModuleId = iprot.readString();
-              struct.setAppModuleIdIsSet(true);
-            } else { 
-              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-            }
-            break;
-          case 3: // APP_MODULE_NAME
-            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
-              struct.appModuleName = iprot.readString();
-              struct.setAppModuleNameIsSet(true);
-            } else { 
-              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-            }
-            break;
-          case 4: // APP_MODULE_VERSION
-            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
-              struct.appModuleVersion = iprot.readString();
-              struct.setAppModuleVersionIsSet(true);
-            } else { 
-              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-            }
-            break;
-          case 5: // APP_MODULE_DESCRIPTION
-            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
-              struct.appModuleDescription = iprot.readString();
-              struct.setAppModuleDescriptionIsSet(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();
-      struct.validate();
-    }
-
-    public void write(org.apache.thrift.protocol.TProtocol oprot, ApplicationModule struct) throws org.apache.thrift.TException {
-      struct.validate();
-
-      oprot.writeStructBegin(STRUCT_DESC);
-      oprot.writeFieldBegin(IS_EMPTY_FIELD_DESC);
-      oprot.writeBool(struct.isEmpty);
-      oprot.writeFieldEnd();
-      if (struct.appModuleId != null) {
-        oprot.writeFieldBegin(APP_MODULE_ID_FIELD_DESC);
-        oprot.writeString(struct.appModuleId);
-        oprot.writeFieldEnd();
-      }
-      if (struct.appModuleName != null) {
-        oprot.writeFieldBegin(APP_MODULE_NAME_FIELD_DESC);
-        oprot.writeString(struct.appModuleName);
-        oprot.writeFieldEnd();
-      }
-      if (struct.appModuleVersion != null) {
-        if (struct.isSetAppModuleVersion()) {
-          oprot.writeFieldBegin(APP_MODULE_VERSION_FIELD_DESC);
-          oprot.writeString(struct.appModuleVersion);
-          oprot.writeFieldEnd();
-        }
-      }
-      if (struct.appModuleDescription != null) {
-        if (struct.isSetAppModuleDescription()) {
-          oprot.writeFieldBegin(APP_MODULE_DESCRIPTION_FIELD_DESC);
-          oprot.writeString(struct.appModuleDescription);
-          oprot.writeFieldEnd();
-        }
-      }
-      oprot.writeFieldStop();
-      oprot.writeStructEnd();
-    }
-
-  }
-
-  private static class ApplicationModuleTupleSchemeFactory implements SchemeFactory {
-    public ApplicationModuleTupleScheme getScheme() {
-      return new ApplicationModuleTupleScheme();
-    }
-  }
-
-  private static class ApplicationModuleTupleScheme extends TupleScheme<ApplicationModule> {
-
-    @Override
-    public void write(org.apache.thrift.protocol.TProtocol prot, ApplicationModule struct) throws org.apache.thrift.TException {
-      TTupleProtocol oprot = (TTupleProtocol) prot;
-      oprot.writeBool(struct.isEmpty);
-      oprot.writeString(struct.appModuleId);
-      oprot.writeString(struct.appModuleName);
-      BitSet optionals = new BitSet();
-      if (struct.isSetAppModuleVersion()) {
-        optionals.set(0);
-      }
-      if (struct.isSetAppModuleDescription()) {
-        optionals.set(1);
-      }
-      oprot.writeBitSet(optionals, 2);
-      if (struct.isSetAppModuleVersion()) {
-        oprot.writeString(struct.appModuleVersion);
-      }
-      if (struct.isSetAppModuleDescription()) {
-        oprot.writeString(struct.appModuleDescription);
-      }
-    }
-
-    @Override
-    public void read(org.apache.thrift.protocol.TProtocol prot, ApplicationModule struct) throws org.apache.thrift.TException {
-      TTupleProtocol iprot = (TTupleProtocol) prot;
-      struct.isEmpty = iprot.readBool();
-      struct.setIsEmptyIsSet(true);
-      struct.appModuleId = iprot.readString();
-      struct.setAppModuleIdIsSet(true);
-      struct.appModuleName = iprot.readString();
-      struct.setAppModuleNameIsSet(true);
-      BitSet incoming = iprot.readBitSet(2);
-      if (incoming.get(0)) {
-        struct.appModuleVersion = iprot.readString();
-        struct.setAppModuleVersionIsSet(true);
-      }
-      if (incoming.get(1)) {
-        struct.appModuleDescription = iprot.readString();
-        struct.setAppModuleDescriptionIsSet(true);
-      }
-    }
-  }
-
-}
-

http://git-wip-us.apache.org/repos/asf/airavata/blob/6843720a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/deployment/SetEnvPaths.java
----------------------------------------------------------------------
diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/deployment/SetEnvPaths.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/deployment/SetEnvPaths.java
deleted file mode 100644
index 125a29f..0000000
--- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/deployment/SetEnvPaths.java
+++ /dev/null
@@ -1,500 +0,0 @@
-    /*
-     * Licensed to the Apache Software Foundation (ASF) under one or more
-     * contributor license agreements.  See the NOTICE file distributed with
-     * this work for additional information regarding copyright ownership.
-     * The ASF licenses this file to You under the Apache License, Version 2.0
-     * (the "License"); you may not use this file except in compliance with
-     * the License.  You may obtain a copy of the License at
-     *
-     *     http://www.apache.org/licenses/LICENSE-2.0
-     *
-     * Unless required by applicable law or agreed to in writing, software
-     * distributed under the License is distributed on an "AS IS" BASIS,
-     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-     * See the License for the specific language governing permissions and
-     * limitations under the License.
-     */
-/**
- * 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.model.application.deployment;
-
-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;
-
-/**
- * Key Value pairs to be used to set environments
- * 
- * name:
- *   Name of the environment variable such as PATH, LD_LIBRARY_PATH, NETCDF_HOME.
- * 
- * value:
- *   Value of the environment variable to set
- */
-@SuppressWarnings("all") public class SetEnvPaths implements org.apache.thrift.TBase<SetEnvPaths, SetEnvPaths._Fields>, java.io.Serializable, Cloneable, Comparable<SetEnvPaths> {
-  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("SetEnvPaths");
-
-  private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1);
-  private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("value", org.apache.thrift.protocol.TType.STRING, (short)2);
-
-  private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
-  static {
-    schemes.put(StandardScheme.class, new SetEnvPathsStandardSchemeFactory());
-    schemes.put(TupleScheme.class, new SetEnvPathsTupleSchemeFactory());
-  }
-
-  private String name; // required
-  private String value; // required
-
-  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-  @SuppressWarnings("all") public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-    NAME((short)1, "name"),
-    VALUE((short)2, "value");
-
-    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: // NAME
-          return NAME;
-        case 2: // VALUE
-          return VALUE;
-        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.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.REQUIRED, 
-        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-    tmpMap.put(_Fields.VALUE, new org.apache.thrift.meta_data.FieldMetaData("value", org.apache.thrift.TFieldRequirementType.REQUIRED, 
-        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-    metaDataMap = Collections.unmodifiableMap(tmpMap);
-    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(SetEnvPaths.class, metaDataMap);
-  }
-
-  public SetEnvPaths() {
-  }
-
-  public SetEnvPaths(
-    String name,
-    String value)
-  {
-    this();
-    this.name = name;
-    this.value = value;
-  }
-
-  /**
-   * Performs a deep copy on <i>other</i>.
-   */
-  public SetEnvPaths(SetEnvPaths other) {
-    if (other.isSetName()) {
-      this.name = other.name;
-    }
-    if (other.isSetValue()) {
-      this.value = other.value;
-    }
-  }
-
-  public SetEnvPaths deepCopy() {
-    return new SetEnvPaths(this);
-  }
-
-  @Override
-  public void clear() {
-    this.name = null;
-    this.value = null;
-  }
-
-  public String getName() {
-    return this.name;
-  }
-
-  public void setName(String name) {
-    this.name = name;
-  }
-
-  public void unsetName() {
-    this.name = null;
-  }
-
-  /** Returns true if field name is set (has been assigned a value) and false otherwise */
-  public boolean isSetName() {
-    return this.name != null;
-  }
-
-  public void setNameIsSet(boolean value) {
-    if (!value) {
-      this.name = null;
-    }
-  }
-
-  public String getValue() {
-    return this.value;
-  }
-
-  public void setValue(String value) {
-    this.value = value;
-  }
-
-  public void unsetValue() {
-    this.value = null;
-  }
-
-  /** Returns true if field value is set (has been assigned a value) and false otherwise */
-  public boolean isSetValue() {
-    return this.value != null;
-  }
-
-  public void setValueIsSet(boolean value) {
-    if (!value) {
-      this.value = null;
-    }
-  }
-
-  public void setFieldValue(_Fields field, Object value) {
-    switch (field) {
-    case NAME:
-      if (value == null) {
-        unsetName();
-      } else {
-        setName((String)value);
-      }
-      break;
-
-    case VALUE:
-      if (value == null) {
-        unsetValue();
-      } else {
-        setValue((String)value);
-      }
-      break;
-
-    }
-  }
-
-  public Object getFieldValue(_Fields field) {
-    switch (field) {
-    case NAME:
-      return getName();
-
-    case VALUE:
-      return getValue();
-
-    }
-    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 NAME:
-      return isSetName();
-    case VALUE:
-      return isSetValue();
-    }
-    throw new IllegalStateException();
-  }
-
-  @Override
-  public boolean equals(Object that) {
-    if (that == null)
-      return false;
-    if (that instanceof SetEnvPaths)
-      return this.equals((SetEnvPaths)that);
-    return false;
-  }
-
-  public boolean equals(SetEnvPaths that) {
-    if (that == null)
-      return false;
-
-    boolean this_present_name = true && this.isSetName();
-    boolean that_present_name = true && that.isSetName();
-    if (this_present_name || that_present_name) {
-      if (!(this_present_name && that_present_name))
-        return false;
-      if (!this.name.equals(that.name))
-        return false;
-    }
-
-    boolean this_present_value = true && this.isSetValue();
-    boolean that_present_value = true && that.isSetValue();
-    if (this_present_value || that_present_value) {
-      if (!(this_present_value && that_present_value))
-        return false;
-      if (!this.value.equals(that.value))
-        return false;
-    }
-
-    return true;
-  }
-
-  @Override
-  public int hashCode() {
-    return 0;
-  }
-
-  @Override
-  public int compareTo(SetEnvPaths other) {
-    if (!getClass().equals(other.getClass())) {
-      return getClass().getName().compareTo(other.getClass().getName());
-    }
-
-    int lastComparison = 0;
-
-    lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetName()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    lastComparison = Boolean.valueOf(isSetValue()).compareTo(other.isSetValue());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetValue()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, other.value);
-      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("SetEnvPaths(");
-    boolean first = true;
-
-    sb.append("name:");
-    if (this.name == null) {
-      sb.append("null");
-    } else {
-      sb.append(this.name);
-    }
-    first = false;
-    if (!first) sb.append(", ");
-    sb.append("value:");
-    if (this.value == null) {
-      sb.append("null");
-    } else {
-      sb.append(this.value);
-    }
-    first = false;
-    sb.append(")");
-    return sb.toString();
-  }
-
-  public void validate() throws org.apache.thrift.TException {
-    // check for required fields
-    if (!isSetName()) {
-      throw new org.apache.thrift.protocol.TProtocolException("Required field 'name' is unset! Struct:" + toString());
-    }
-
-    if (!isSetValue()) {
-      throw new org.apache.thrift.protocol.TProtocolException("Required field 'value' is unset! Struct:" + toString());
-    }
-
-    // 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 {
-      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 SetEnvPathsStandardSchemeFactory implements SchemeFactory {
-    public SetEnvPathsStandardScheme getScheme() {
-      return new SetEnvPathsStandardScheme();
-    }
-  }
-
-  private static class SetEnvPathsStandardScheme extends StandardScheme<SetEnvPaths> {
-
-    public void read(org.apache.thrift.protocol.TProtocol iprot, SetEnvPaths 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: // NAME
-            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
-              struct.name = iprot.readString();
-              struct.setNameIsSet(true);
-            } else { 
-              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-            }
-            break;
-          case 2: // VALUE
-            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
-              struct.value = iprot.readString();
-              struct.setValueIsSet(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();
-      struct.validate();
-    }
-
-    public void write(org.apache.thrift.protocol.TProtocol oprot, SetEnvPaths struct) throws org.apache.thrift.TException {
-      struct.validate();
-
-      oprot.writeStructBegin(STRUCT_DESC);
-      if (struct.name != null) {
-        oprot.writeFieldBegin(NAME_FIELD_DESC);
-        oprot.writeString(struct.name);
-        oprot.writeFieldEnd();
-      }
-      if (struct.value != null) {
-        oprot.writeFieldBegin(VALUE_FIELD_DESC);
-        oprot.writeString(struct.value);
-        oprot.writeFieldEnd();
-      }
-      oprot.writeFieldStop();
-      oprot.writeStructEnd();
-    }
-
-  }
-
-  private static class SetEnvPathsTupleSchemeFactory implements SchemeFactory {
-    public SetEnvPathsTupleScheme getScheme() {
-      return new SetEnvPathsTupleScheme();
-    }
-  }
-
-  private static class SetEnvPathsTupleScheme extends TupleScheme<SetEnvPaths> {
-
-    @Override
-    public void write(org.apache.thrift.protocol.TProtocol prot, SetEnvPaths struct) throws org.apache.thrift.TException {
-      TTupleProtocol oprot = (TTupleProtocol) prot;
-      oprot.writeString(struct.name);
-      oprot.writeString(struct.value);
-    }
-
-    @Override
-    public void read(org.apache.thrift.protocol.TProtocol prot, SetEnvPaths struct) throws org.apache.thrift.TException {
-      TTupleProtocol iprot = (TTupleProtocol) prot;
-      struct.name = iprot.readString();
-      struct.setNameIsSet(true);
-      struct.value = iprot.readString();
-      struct.setValueIsSet(true);
-    }
-  }
-
-}
-

http://git-wip-us.apache.org/repos/asf/airavata/blob/6843720a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/deployment/applicationDeploymentModelConstants.java
----------------------------------------------------------------------
diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/deployment/applicationDeploymentModelConstants.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/deployment/applicationDeploymentModelConstants.java
deleted file mode 100644
index 14f1193..0000000
--- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/deployment/applicationDeploymentModelConstants.java
+++ /dev/null
@@ -1,55 +0,0 @@
-    /*
-     * Licensed to the Apache Software Foundation (ASF) under one or more
-     * contributor license agreements.  See the NOTICE file distributed with
-     * this work for additional information regarding copyright ownership.
-     * The ASF licenses this file to You under the Apache License, Version 2.0
-     * (the "License"); you may not use this file except in compliance with
-     * the License.  You may obtain a copy of the License at
-     *
-     *     http://www.apache.org/licenses/LICENSE-2.0
-     *
-     * Unless required by applicable law or agreed to in writing, software
-     * distributed under the License is distributed on an "AS IS" BASIS,
-     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-     * See the License for the specific language governing permissions and
-     * limitations under the License.
-     */
-/**
- * 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.model.application.deployment;
-
-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;
-
-@SuppressWarnings("all") public class applicationDeploymentModelConstants {
-
-  public static final String DEFAULT_ID = "DO_NOT_SET_AT_CLIENTS";
-
-}

http://git-wip-us.apache.org/repos/asf/airavata/blob/6843720a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/interface/ApplicationInterfaceDescription.java
----------------------------------------------------------------------
diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/interface/ApplicationInterfaceDescription.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/interface/ApplicationInterfaceDescription.java
deleted file mode 100644
index 4ebba2b..0000000
--- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/interface/ApplicationInterfaceDescription.java
+++ /dev/null
@@ -1,1063 +0,0 @@
-    /*
-     * Licensed to the Apache Software Foundation (ASF) under one or more
-     * contributor license agreements.  See the NOTICE file distributed with
-     * this work for additional information regarding copyright ownership.
-     * The ASF licenses this file to You under the Apache License, Version 2.0
-     * (the "License"); you may not use this file except in compliance with
-     * the License.  You may obtain a copy of the License at
-     *
-     *     http://www.apache.org/licenses/LICENSE-2.0
-     *
-     * Unless required by applicable law or agreed to in writing, software
-     * distributed under the License is distributed on an "AS IS" BASIS,
-     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-     * See the License for the specific language governing permissions and
-     * limitations under the License.
-     */
-/**
- * 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.model.application.interface;
-
-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;
-
-/**
- * Application Interface Description
- * 
- * 
- * appDeploymentId:
- *   Corelated the interface to a particular application deployment
- * 
- * 
- */
-@SuppressWarnings("all") public class ApplicationInterfaceDescription implements org.apache.thrift.TBase<ApplicationInterfaceDescription, ApplicationInterfaceDescription._Fields>, java.io.Serializable, Cloneable, Comparable<ApplicationInterfaceDescription> {
-  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ApplicationInterfaceDescription");
-
-  private static final org.apache.thrift.protocol.TField IS_EMPTY_FIELD_DESC = new org.apache.thrift.protocol.TField("isEmpty", org.apache.thrift.protocol.TType.BOOL, (short)1);
-  private static final org.apache.thrift.protocol.TField APPLICATION_INTERFACE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("applicationInterfaceId", org.apache.thrift.protocol.TType.STRING, (short)2);
-  private static final org.apache.thrift.protocol.TField APPLICATION_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("applicationName", org.apache.thrift.protocol.TType.STRING, (short)3);
-  private static final org.apache.thrift.protocol.TField APPLICATION_MODULES_FIELD_DESC = new org.apache.thrift.protocol.TField("applicationModules", org.apache.thrift.protocol.TType.LIST, (short)4);
-  private static final org.apache.thrift.protocol.TField APPLICATION_INPUTS_FIELD_DESC = new org.apache.thrift.protocol.TField("applicationInputs", org.apache.thrift.protocol.TType.LIST, (short)5);
-  private static final org.apache.thrift.protocol.TField APPLICATION_OUTPUTS_FIELD_DESC = new org.apache.thrift.protocol.TField("applicationOutputs", org.apache.thrift.protocol.TType.LIST, (short)6);
-
-  private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
-  static {
-    schemes.put(StandardScheme.class, new ApplicationInterfaceDescriptionStandardSchemeFactory());
-    schemes.put(TupleScheme.class, new ApplicationInterfaceDescriptionTupleSchemeFactory());
-  }
-
-  private boolean isEmpty; // required
-  private String applicationInterfaceId; // required
-  private String applicationName; // required
-  private List<String> applicationModules; // optional
-  private List<InputDataObjectType> applicationInputs; // optional
-  private List<OutputDataObjectType> applicationOutputs; // optional
-
-  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-  @SuppressWarnings("all") public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-    IS_EMPTY((short)1, "isEmpty"),
-    APPLICATION_INTERFACE_ID((short)2, "applicationInterfaceId"),
-    APPLICATION_NAME((short)3, "applicationName"),
-    APPLICATION_MODULES((short)4, "applicationModules"),
-    APPLICATION_INPUTS((short)5, "applicationInputs"),
-    APPLICATION_OUTPUTS((short)6, "applicationOutputs");
-
-    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: // IS_EMPTY
-          return IS_EMPTY;
-        case 2: // APPLICATION_INTERFACE_ID
-          return APPLICATION_INTERFACE_ID;
-        case 3: // APPLICATION_NAME
-          return APPLICATION_NAME;
-        case 4: // APPLICATION_MODULES
-          return APPLICATION_MODULES;
-        case 5: // APPLICATION_INPUTS
-          return APPLICATION_INPUTS;
-        case 6: // APPLICATION_OUTPUTS
-          return APPLICATION_OUTPUTS;
-        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 __ISEMPTY_ISSET_ID = 0;
-  private byte __isset_bitfield = 0;
-  private _Fields optionals[] = {_Fields.APPLICATION_MODULES,_Fields.APPLICATION_INPUTS,_Fields.APPLICATION_OUTPUTS};
-  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.IS_EMPTY, new org.apache.thrift.meta_data.FieldMetaData("isEmpty", org.apache.thrift.TFieldRequirementType.REQUIRED, 
-        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-    tmpMap.put(_Fields.APPLICATION_INTERFACE_ID, new org.apache.thrift.meta_data.FieldMetaData("applicationInterfaceId", org.apache.thrift.TFieldRequirementType.REQUIRED, 
-        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-    tmpMap.put(_Fields.APPLICATION_NAME, new org.apache.thrift.meta_data.FieldMetaData("applicationName", org.apache.thrift.TFieldRequirementType.REQUIRED, 
-        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-    tmpMap.put(_Fields.APPLICATION_MODULES, new org.apache.thrift.meta_data.FieldMetaData("applicationModules", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
-        new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
-    tmpMap.put(_Fields.APPLICATION_INPUTS, new org.apache.thrift.meta_data.FieldMetaData("applicationInputs", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
-        new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-            new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InputDataObjectType.class))));
-    tmpMap.put(_Fields.APPLICATION_OUTPUTS, new org.apache.thrift.meta_data.FieldMetaData("applicationOutputs", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
-        new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-            new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, OutputDataObjectType.class))));
-    metaDataMap = Collections.unmodifiableMap(tmpMap);
-    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(ApplicationInterfaceDescription.class, metaDataMap);
-  }
-
-  public ApplicationInterfaceDescription() {
-    this.isEmpty = false;
-
-    this.applicationInterfaceId = "DO_NOT_SET_AT_CLIENTS";
-
-  }
-
-  public ApplicationInterfaceDescription(
-    boolean isEmpty,
-    String applicationInterfaceId,
-    String applicationName)
-  {
-    this();
-    this.isEmpty = isEmpty;
-    setIsEmptyIsSet(true);
-    this.applicationInterfaceId = applicationInterfaceId;
-    this.applicationName = applicationName;
-  }
-
-  /**
-   * Performs a deep copy on <i>other</i>.
-   */
-  public ApplicationInterfaceDescription(ApplicationInterfaceDescription other) {
-    __isset_bitfield = other.__isset_bitfield;
-    this.isEmpty = other.isEmpty;
-    if (other.isSetApplicationInterfaceId()) {
-      this.applicationInterfaceId = other.applicationInterfaceId;
-    }
-    if (other.isSetApplicationName()) {
-      this.applicationName = other.applicationName;
-    }
-    if (other.isSetApplicationModules()) {
-      List<String> __this__applicationModules = new ArrayList<String>(other.applicationModules);
-      this.applicationModules = __this__applicationModules;
-    }
-    if (other.isSetApplicationInputs()) {
-      List<InputDataObjectType> __this__applicationInputs = new ArrayList<InputDataObjectType>(other.applicationInputs.size());
-      for (InputDataObjectType other_element : other.applicationInputs) {
-        __this__applicationInputs.add(new InputDataObjectType(other_element));
-      }
-      this.applicationInputs = __this__applicationInputs;
-    }
-    if (other.isSetApplicationOutputs()) {
-      List<OutputDataObjectType> __this__applicationOutputs = new ArrayList<OutputDataObjectType>(other.applicationOutputs.size());
-      for (OutputDataObjectType other_element : other.applicationOutputs) {
-        __this__applicationOutputs.add(new OutputDataObjectType(other_element));
-      }
-      this.applicationOutputs = __this__applicationOutputs;
-    }
-  }
-
-  public ApplicationInterfaceDescription deepCopy() {
-    return new ApplicationInterfaceDescription(this);
-  }
-
-  @Override
-  public void clear() {
-    this.isEmpty = false;
-
-    this.applicationInterfaceId = "DO_NOT_SET_AT_CLIENTS";
-
-    this.applicationName = null;
-    this.applicationModules = null;
-    this.applicationInputs = null;
-    this.applicationOutputs = null;
-  }
-
-  public boolean isIsEmpty() {
-    return this.isEmpty;
-  }
-
-  public void setIsEmpty(boolean isEmpty) {
-    this.isEmpty = isEmpty;
-    setIsEmptyIsSet(true);
-  }
-
-  public void unsetIsEmpty() {
-    __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ISEMPTY_ISSET_ID);
-  }
-
-  /** Returns true if field isEmpty is set (has been assigned a value) and false otherwise */
-  public boolean isSetIsEmpty() {
-    return EncodingUtils.testBit(__isset_bitfield, __ISEMPTY_ISSET_ID);
-  }
-
-  public void setIsEmptyIsSet(boolean value) {
-    __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ISEMPTY_ISSET_ID, value);
-  }
-
-  public String getApplicationInterfaceId() {
-    return this.applicationInterfaceId;
-  }
-
-  public void setApplicationInterfaceId(String applicationInterfaceId) {
-    this.applicationInterfaceId = applicationInterfaceId;
-  }
-
-  public void unsetApplicationInterfaceId() {
-    this.applicationInterfaceId = null;
-  }
-
-  /** Returns true if field applicationInterfaceId is set (has been assigned a value) and false otherwise */
-  public boolean isSetApplicationInterfaceId() {
-    return this.applicationInterfaceId != null;
-  }
-
-  public void setApplicationInterfaceIdIsSet(boolean value) {
-    if (!value) {
-      this.applicationInterfaceId = null;
-    }
-  }
-
-  public String getApplicationName() {
-    return this.applicationName;
-  }
-
-  public void setApplicationName(String applicationName) {
-    this.applicationName = applicationName;
-  }
-
-  public void unsetApplicationName() {
-    this.applicationName = null;
-  }
-
-  /** Returns true if field applicationName is set (has been assigned a value) and false otherwise */
-  public boolean isSetApplicationName() {
-    return this.applicationName != null;
-  }
-
-  public void setApplicationNameIsSet(boolean value) {
-    if (!value) {
-      this.applicationName = null;
-    }
-  }
-
-  public int getApplicationModulesSize() {
-    return (this.applicationModules == null) ? 0 : this.applicationModules.size();
-  }
-
-  public java.util.Iterator<String> getApplicationModulesIterator() {
-    return (this.applicationModules == null) ? null : this.applicationModules.iterator();
-  }
-
-  public void addToApplicationModules(String elem) {
-    if (this.applicationModules == null) {
-      this.applicationModules = new ArrayList<String>();
-    }
-    this.applicationModules.add(elem);
-  }
-
-  public List<String> getApplicationModules() {
-    return this.applicationModules;
-  }
-
-  public void setApplicationModules(List<String> applicationModules) {
-    this.applicationModules = applicationModules;
-  }
-
-  public void unsetApplicationModules() {
-    this.applicationModules = null;
-  }
-
-  /** Returns true if field applicationModules is set (has been assigned a value) and false otherwise */
-  public boolean isSetApplicationModules() {
-    return this.applicationModules != null;
-  }
-
-  public void setApplicationModulesIsSet(boolean value) {
-    if (!value) {
-      this.applicationModules = null;
-    }
-  }
-
-  public int getApplicationInputsSize() {
-    return (this.applicationInputs == null) ? 0 : this.applicationInputs.size();
-  }
-
-  public java.util.Iterator<InputDataObjectType> getApplicationInputsIterator() {
-    return (this.applicationInputs == null) ? null : this.applicationInputs.iterator();
-  }
-
-  public void addToApplicationInputs(InputDataObjectType elem) {
-    if (this.applicationInputs == null) {
-      this.applicationInputs = new ArrayList<InputDataObjectType>();
-    }
-    this.applicationInputs.add(elem);
-  }
-
-  public List<InputDataObjectType> getApplicationInputs() {
-    return this.applicationInputs;
-  }
-
-  public void setApplicationInputs(List<InputDataObjectType> applicationInputs) {
-    this.applicationInputs = applicationInputs;
-  }
-
-  public void unsetApplicationInputs() {
-    this.applicationInputs = null;
-  }
-
-  /** Returns true if field applicationInputs is set (has been assigned a value) and false otherwise */
-  public boolean isSetApplicationInputs() {
-    return this.applicationInputs != null;
-  }
-
-  public void setApplicationInputsIsSet(boolean value) {
-    if (!value) {
-      this.applicationInputs = null;
-    }
-  }
-
-  public int getApplicationOutputsSize() {
-    return (this.applicationOutputs == null) ? 0 : this.applicationOutputs.size();
-  }
-
-  public java.util.Iterator<OutputDataObjectType> getApplicationOutputsIterator() {
-    return (this.applicationOutputs == null) ? null : this.applicationOutputs.iterator();
-  }
-
-  public void addToApplicationOutputs(OutputDataObjectType elem) {
-    if (this.applicationOutputs == null) {
-      this.applicationOutputs = new ArrayList<OutputDataObjectType>();
-    }
-    this.applicationOutputs.add(elem);
-  }
-
-  public List<OutputDataObjectType> getApplicationOutputs() {
-    return this.applicationOutputs;
-  }
-
-  public void setApplicationOutputs(List<OutputDataObjectType> applicationOutputs) {
-    this.applicationOutputs = applicationOutputs;
-  }
-
-  public void unsetApplicationOutputs() {
-    this.applicationOutputs = null;
-  }
-
-  /** Returns true if field applicationOutputs is set (has been assigned a value) and false otherwise */
-  public boolean isSetApplicationOutputs() {
-    return this.applicationOutputs != null;
-  }
-
-  public void setApplicationOutputsIsSet(boolean value) {
-    if (!value) {
-      this.applicationOutputs = null;
-    }
-  }
-
-  public void setFieldValue(_Fields field, Object value) {
-    switch (field) {
-    case IS_EMPTY:
-      if (value == null) {
-        unsetIsEmpty();
-      } else {
-        setIsEmpty((Boolean)value);
-      }
-      break;
-
-    case APPLICATION_INTERFACE_ID:
-      if (value == null) {
-        unsetApplicationInterfaceId();
-      } else {
-        setApplicationInterfaceId((String)value);
-      }
-      break;
-
-    case APPLICATION_NAME:
-      if (value == null) {
-        unsetApplicationName();
-      } else {
-        setApplicationName((String)value);
-      }
-      break;
-
-    case APPLICATION_MODULES:
-      if (value == null) {
-        unsetApplicationModules();
-      } else {
-        setApplicationModules((List<String>)value);
-      }
-      break;
-
-    case APPLICATION_INPUTS:
-      if (value == null) {
-        unsetApplicationInputs();
-      } else {
-        setApplicationInputs((List<InputDataObjectType>)value);
-      }
-      break;
-
-    case APPLICATION_OUTPUTS:
-      if (value == null) {
-        unsetApplicationOutputs();
-      } else {
-        setApplicationOutputs((List<OutputDataObjectType>)value);
-      }
-      break;
-
-    }
-  }
-
-  public Object getFieldValue(_Fields field) {
-    switch (field) {
-    case IS_EMPTY:
-      return Boolean.valueOf(isIsEmpty());
-
-    case APPLICATION_INTERFACE_ID:
-      return getApplicationInterfaceId();
-
-    case APPLICATION_NAME:
-      return getApplicationName();
-
-    case APPLICATION_MODULES:
-      return getApplicationModules();
-
-    case APPLICATION_INPUTS:
-      return getApplicationInputs();
-
-    case APPLICATION_OUTPUTS:
-      return getApplicationOutputs();
-
-    }
-    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 IS_EMPTY:
-      return isSetIsEmpty();
-    case APPLICATION_INTERFACE_ID:
-      return isSetApplicationInterfaceId();
-    case APPLICATION_NAME:
-      return isSetApplicationName();
-    case APPLICATION_MODULES:
-      return isSetApplicationModules();
-    case APPLICATION_INPUTS:
-      return isSetApplicationInputs();
-    case APPLICATION_OUTPUTS:
-      return isSetApplicationOutputs();
-    }
-    throw new IllegalStateException();
-  }
-
-  @Override
-  public boolean equals(Object that) {
-    if (that == null)
-      return false;
-    if (that instanceof ApplicationInterfaceDescription)
-      return this.equals((ApplicationInterfaceDescription)that);
-    return false;
-  }
-
-  public boolean equals(ApplicationInterfaceDescription that) {
-    if (that == null)
-      return false;
-
-    boolean this_present_isEmpty = true;
-    boolean that_present_isEmpty = true;
-    if (this_present_isEmpty || that_present_isEmpty) {
-      if (!(this_present_isEmpty && that_present_isEmpty))
-        return false;
-      if (this.isEmpty != that.isEmpty)
-        return false;
-    }
-
-    boolean this_present_applicationInterfaceId = true && this.isSetApplicationInterfaceId();
-    boolean that_present_applicationInterfaceId = true && that.isSetApplicationInterfaceId();
-    if (this_present_applicationInterfaceId || that_present_applicationInterfaceId) {
-      if (!(this_present_applicationInterfaceId && that_present_applicationInterfaceId))
-        return false;
-      if (!this.applicationInterfaceId.equals(that.applicationInterfaceId))
-        return false;
-    }
-
-    boolean this_present_applicationName = true && this.isSetApplicationName();
-    boolean that_present_applicationName = true && that.isSetApplicationName();
-    if (this_present_applicationName || that_present_applicationName) {
-      if (!(this_present_applicationName && that_present_applicationName))
-        return false;
-      if (!this.applicationName.equals(that.applicationName))
-        return false;
-    }
-
-    boolean this_present_applicationModules = true && this.isSetApplicationModules();
-    boolean that_present_applicationModules = true && that.isSetApplicationModules();
-    if (this_present_applicationModules || that_present_applicationModules) {
-      if (!(this_present_applicationModules && that_present_applicationModules))
-        return false;
-      if (!this.applicationModules.equals(that.applicationModules))
-        return false;
-    }
-
-    boolean this_present_applicationInputs = true && this.isSetApplicationInputs();
-    boolean that_present_applicationInputs = true && that.isSetApplicationInputs();
-    if (this_present_applicationInputs || that_present_applicationInputs) {
-      if (!(this_present_applicationInputs && that_present_applicationInputs))
-        return false;
-      if (!this.applicationInputs.equals(that.applicationInputs))
-        return false;
-    }
-
-    boolean this_present_applicationOutputs = true && this.isSetApplicationOutputs();
-    boolean that_present_applicationOutputs = true && that.isSetApplicationOutputs();
-    if (this_present_applicationOutputs || that_present_applicationOutputs) {
-      if (!(this_present_applicationOutputs && that_present_applicationOutputs))
-        return false;
-      if (!this.applicationOutputs.equals(that.applicationOutputs))
-        return false;
-    }
-
-    return true;
-  }
-
-  @Override
-  public int hashCode() {
-    return 0;
-  }
-
-  @Override
-  public int compareTo(ApplicationInterfaceDescription other) {
-    if (!getClass().equals(other.getClass())) {
-      return getClass().getName().compareTo(other.getClass().getName());
-    }
-
-    int lastComparison = 0;
-
-    lastComparison = Boolean.valueOf(isSetIsEmpty()).compareTo(other.isSetIsEmpty());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetIsEmpty()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isEmpty, other.isEmpty);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    lastComparison = Boolean.valueOf(isSetApplicationInterfaceId()).compareTo(other.isSetApplicationInterfaceId());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetApplicationInterfaceId()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.applicationInterfaceId, other.applicationInterfaceId);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    lastComparison = Boolean.valueOf(isSetApplicationName()).compareTo(other.isSetApplicationName());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetApplicationName()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.applicationName, other.applicationName);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    lastComparison = Boolean.valueOf(isSetApplicationModules()).compareTo(other.isSetApplicationModules());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetApplicationModules()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.applicationModules, other.applicationModules);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    lastComparison = Boolean.valueOf(isSetApplicationInputs()).compareTo(other.isSetApplicationInputs());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetApplicationInputs()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.applicationInputs, other.applicationInputs);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    lastComparison = Boolean.valueOf(isSetApplicationOutputs()).compareTo(other.isSetApplicationOutputs());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetApplicationOutputs()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.applicationOutputs, other.applicationOutputs);
-      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("ApplicationInterfaceDescription(");
-    boolean first = true;
-
-    sb.append("isEmpty:");
-    sb.append(this.isEmpty);
-    first = false;
-    if (!first) sb.append(", ");
-    sb.append("applicationInterfaceId:");
-    if (this.applicationInterfaceId == null) {
-      sb.append("null");
-    } else {
-      sb.append(this.applicationInterfaceId);
-    }
-    first = false;
-    if (!first) sb.append(", ");
-    sb.append("applicationName:");
-    if (this.applicationName == null) {
-      sb.append("null");
-    } else {
-      sb.append(this.applicationName);
-    }
-    first = false;
-    if (isSetApplicationModules()) {
-      if (!first) sb.append(", ");
-      sb.append("applicationModules:");
-      if (this.applicationModules == null) {
-        sb.append("null");
-      } else {
-        sb.append(this.applicationModules);
-      }
-      first = false;
-    }
-    if (isSetApplicationInputs()) {
-      if (!first) sb.append(", ");
-      sb.append("applicationInputs:");
-      if (this.applicationInputs == null) {
-        sb.append("null");
-      } else {
-        sb.append(this.applicationInputs);
-      }
-      first = false;
-    }
-    if (isSetApplicationOutputs()) {
-      if (!first) sb.append(", ");
-      sb.append("applicationOutputs:");
-      if (this.applicationOutputs == null) {
-        sb.append("null");
-      } else {
-        sb.append(this.applicationOutputs);
-      }
-      first = false;
-    }
-    sb.append(")");
-    return sb.toString();
-  }
-
-  public void validate() throws org.apache.thrift.TException {
-    // check for required fields
-    if (!isSetIsEmpty()) {
-      throw new org.apache.thrift.protocol.TProtocolException("Required field 'isEmpty' is unset! Struct:" + toString());
-    }
-
-    if (!isSetApplicationInterfaceId()) {
-      throw new org.apache.thrift.protocol.TProtocolException("Required field 'applicationInterfaceId' is unset! Struct:" + toString());
-    }
-
-    if (!isSetApplicationName()) {
-      throw new org.apache.thrift.protocol.TProtocolException("Required field 'applicationName' is unset! Struct:" + toString());
-    }
-
-    // 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 ApplicationInterfaceDescriptionStandardSchemeFactory implements SchemeFactory {
-    public ApplicationInterfaceDescriptionStandardScheme getScheme() {
-      return new ApplicationInterfaceDescriptionStandardScheme();
-    }
-  }
-
-  private static class ApplicationInterfaceDescriptionStandardScheme extends StandardScheme<ApplicationInterfaceDescription> {
-
-    public void read(org.apache.thrift.protocol.TProtocol iprot, ApplicationInterfaceDescription 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: // IS_EMPTY
-            if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
-              struct.isEmpty = iprot.readBool();
-              struct.setIsEmptyIsSet(true);
-            } else { 
-              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-            }
-            break;
-          case 2: // APPLICATION_INTERFACE_ID
-            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
-              struct.applicationInterfaceId = iprot.readString();
-              struct.setApplicationInterfaceIdIsSet(true);
-            } else { 
-              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-            }
-            break;
-          case 3: // APPLICATION_NAME
-            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
-              struct.applicationName = iprot.readString();
-              struct.setApplicationNameIsSet(true);
-            } else { 
-              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-            }
-            break;
-          case 4: // APPLICATION_MODULES
-            if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
-              {
-                org.apache.thrift.protocol.TList _list0 = iprot.readListBegin();
-                struct.applicationModules = new ArrayList<String>(_list0.size);
-                for (int _i1 = 0; _i1 < _list0.size; ++_i1)
-                {
-                  String _elem2;
-                  _elem2 = iprot.readString();
-                  struct.applicationModules.add(_elem2);
-                }
-                iprot.readListEnd();
-              }
-              struct.setApplicationModulesIsSet(true);
-            } else { 
-              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-            }
-            break;
-          case 5: // APPLICATION_INPUTS
-            if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
-              {
-                org.apache.thrift.protocol.TList _list3 = iprot.readListBegin();
-                struct.applicationInputs = new ArrayList<InputDataObjectType>(_list3.size);
-                for (int _i4 = 0; _i4 < _list3.size; ++_i4)
-                {
-                  InputDataObjectType _elem5;
-                  _elem5 = new InputDataObjectType();
-                  _elem5.read(iprot);
-                  struct.applicationInputs.add(_elem5);
-                }
-                iprot.readListEnd();
-              }
-              struct.setApplicationInputsIsSet(true);
-            } else { 
-              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-            }
-            break;
-          case 6: // APPLICATION_OUTPUTS
-            if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
-              {
-                org.apache.thrift.protocol.TList _list6 = iprot.readListBegin();
-                struct.applicationOutputs = new ArrayList<OutputDataObjectType>(_list6.size);
-                for (int _i7 = 0; _i7 < _list6.size; ++_i7)
-                {
-                  OutputDataObjectType _elem8;
-                  _elem8 = new OutputDataObjectType();
-                  _elem8.read(iprot);
-                  struct.applicationOutputs.add(_elem8);
-                }
-                iprot.readListEnd();
-              }
-              struct.setApplicationOutputsIsSet(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();
-      struct.validate();
-    }
-
-    public void write(org.apache.thrift.protocol.TProtocol oprot, ApplicationInterfaceDescription struct) throws org.apache.thrift.TException {
-      struct.validate();
-
-      oprot.writeStructBegin(STRUCT_DESC);
-      oprot.writeFieldBegin(IS_EMPTY_FIELD_DESC);
-      oprot.writeBool(struct.isEmpty);
-      oprot.writeFieldEnd();
-      if (struct.applicationInterfaceId != null) {
-        oprot.writeFieldBegin(APPLICATION_INTERFACE_ID_FIELD_DESC);
-        oprot.writeString(struct.applicationInterfaceId);
-        oprot.writeFieldEnd();
-      }
-      if (struct.applicationName != null) {
-        oprot.writeFieldBegin(APPLICATION_NAME_FIELD_DESC);
-        oprot.writeString(struct.applicationName);
-        oprot.writeFieldEnd();
-      }
-      if (struct.applicationModules != null) {
-        if (struct.isSetApplicationModules()) {
-          oprot.writeFieldBegin(APPLICATION_MODULES_FIELD_DESC);
-          {
-            oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.applicationModules.size()));
-            for (String _iter9 : struct.applicationModules)
-            {
-              oprot.writeString(_iter9);
-            }
-            oprot.writeListEnd();
-          }
-          oprot.writeFieldEnd();
-        }
-      }
-      if (struct.applicationInputs != null) {
-        if (struct.isSetApplicationInputs()) {
-          oprot.writeFieldBegin(APPLICATION_INPUTS_FIELD_DESC);
-          {
-            oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.applicationInputs.size()));
-            for (InputDataObjectType _iter10 : struct.applicationInputs)
-            {
-              _iter10.write(oprot);
-            }
-            oprot.writeListEnd();
-          }
-          oprot.writeFieldEnd();
-        }
-      }
-      if (struct.applicationOutputs != null) {
-        if (struct.isSetApplicationOutputs()) {
-          oprot.writeFieldBegin(APPLICATION_OUTPUTS_FIELD_DESC);
-          {
-            oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.applicationOutputs.size()));
-            for (OutputDataObjectType _iter11 : struct.applicationOutputs)
-            {
-              _iter11.write(oprot);
-            }
-            oprot.writeListEnd();
-          }
-          oprot.writeFieldEnd();
-        }
-      }
-      oprot.writeFieldStop();
-      oprot.writeStructEnd();
-    }
-
-  }
-
-  private static class ApplicationInterfaceDescriptionTupleSchemeFactory implements SchemeFactory {
-    public ApplicationInterfaceDescriptionTupleScheme getScheme() {
-      return new ApplicationInterfaceDescriptionTupleScheme();
-    }
-  }
-
-  private static class ApplicationInterfaceDescriptionTupleScheme extends TupleScheme<ApplicationInterfaceDescription> {
-
-    @Override
-    public void write(org.apache.thrift.protocol.TProtocol prot, ApplicationInterfaceDescription struct) throws org.apache.thrift.TException {
-      TTupleProtocol oprot = (TTupleProtocol) prot;
-      oprot.writeBool(struct.isEmpty);
-      oprot.writeString(struct.applicationInterfaceId);
-      oprot.writeString(struct.applicationName);
-      BitSet optionals = new BitSet();
-      if (struct.isSetApplicationModules()) {
-        optionals.set(0);
-      }
-      if (struct.isSetApplicationInputs()) {
-        optionals.set(1);
-      }
-      if (struct.isSetApplicationOutputs()) {
-        optionals.set(2);
-      }
-      oprot.writeBitSet(optionals, 3);
-      if (struct.isSetApplicationModules()) {
-        {
-          oprot.writeI32(struct.applicationModules.size());
-          for (String _iter12 : struct.applicationModules)
-          {
-            oprot.writeString(_iter12);
-          }
-        }
-      }
-      if (struct.isSetApplicationInputs()) {
-        {
-          oprot.writeI32(struct.applicationInputs.size());
-          for (InputDataObjectType _iter13 : struct.applicationInputs)
-          {
-            _iter13.write(oprot);
-          }
-        }
-      }
-      if (struct.isSetApplicationOutputs()) {
-        {
-          oprot.writeI32(struct.applicationOutputs.size());
-          for (OutputDataObjectType _iter14 : struct.applicationOutputs)
-          {
-            _iter14.write(oprot);
-          }
-        }
-      }
-    }
-
-    @Override
-    public void read(org.apache.thrift.protocol.TProtocol prot, ApplicationInterfaceDescription struct) throws org.apache.thrift.TException {
-      TTupleProtocol iprot = (TTupleProtocol) prot;
-      struct.isEmpty = iprot.readBool();
-      struct.setIsEmptyIsSet(true);
-      struct.applicationInterfaceId = iprot.readString();
-      struct.setApplicationInterfaceIdIsSet(true);
-      struct.applicationName = iprot.readString();
-      struct.setApplicationNameIsSet(true);
-      BitSet incoming = iprot.readBitSet(3);
-      if (incoming.get(0)) {
-        {
-          org.apache.thrift.protocol.TList _list15 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
-          struct.applicationModules = new ArrayList<String>(_list15.size);
-          for (int _i16 = 0; _i16 < _list15.size; ++_i16)
-          {
-            String _elem17;
-            _elem17 = iprot.readString();
-            struct.applicationModules.add(_elem17);
-          }
-        }
-        struct.setApplicationModulesIsSet(true);
-      }
-      if (incoming.get(1)) {
-        {
-          org.apache.thrift.protocol.TList _list18 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
-          struct.applicationInputs = new ArrayList<InputDataObjectType>(_list18.size);
-          for (int _i19 = 0; _i19 < _list18.size; ++_i19)
-          {
-            InputDataObjectType _elem20;
-            _elem20 = new InputDataObjectType();
-            _elem20.read(iprot);
-            struct.applicationInputs.add(_elem20);
-          }
-        }
-        struct.setApplicationInputsIsSet(true);
-      }
-      if (incoming.get(2)) {
-        {
-          org.apache.thrift.protocol.TList _list21 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
-          struct.applicationOutputs = new ArrayList<OutputDataObjectType>(_list21.size);
-          for (int _i22 = 0; _i22 < _list21.size; ++_i22)
-          {
-            OutputDataObjectType _elem23;
-            _elem23 = new OutputDataObjectType();
-            _elem23.read(iprot);
-            struct.applicationOutputs.add(_elem23);
-          }
-        }
-        struct.setApplicationOutputsIsSet(true);
-      }
-    }
-  }
-
-}
-


[8/8] git commit: updating app catalog data model namespaces

Posted by sm...@apache.org.
updating app catalog data model namespaces


Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/6843720a
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/6843720a
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/6843720a

Branch: refs/heads/master
Commit: 6843720ac523bf7befa6da3a1769c1e292832484
Parents: e0f21e4
Author: Suresh Marru <sm...@apache.org>
Authored: Sun Jun 29 10:36:20 2014 -0400
Committer: Suresh Marru <sm...@apache.org>
Committed: Sun Jun 29 10:36:20 2014 -0400

----------------------------------------------------------------------
 .../API/AppCatalog/ApplicationCatalogAPI.php    |   52 +-
 .../ApplicationDeploymentDescription.java       | 1479 ------------------
 .../deployment/ApplicationModule.java           |  811 ----------
 .../application/deployment/SetEnvPaths.java     |  500 ------
 .../applicationDeploymentModelConstants.java    |   55 -
 .../ApplicationInterfaceDescription.java        | 1063 -------------
 .../model/application/interface/DataType.java   |   71 -
 .../interface/InputDataObjectType.java          | 1134 --------------
 .../interface/OutputDataObjectType.java         |  735 ---------
 .../applicationInterfaceModelConstants.java     |   55 -
 .../applicationDeploymentModel.thrift           |    4 +-
 .../applicationInterfaceModel.thrift            |    4 +-
 .../gatewayProfileModel.thrift                  |    4 +-
 13 files changed, 32 insertions(+), 5935 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/6843720a/airavata-api/airavata-client-sdks/airavata-php-sdk/src/main/resources/lib/Airavata/API/AppCatalog/ApplicationCatalogAPI.php
----------------------------------------------------------------------
diff --git a/airavata-api/airavata-client-sdks/airavata-php-sdk/src/main/resources/lib/Airavata/API/AppCatalog/ApplicationCatalogAPI.php b/airavata-api/airavata-client-sdks/airavata-php-sdk/src/main/resources/lib/Airavata/API/AppCatalog/ApplicationCatalogAPI.php
index 4b01af2..0bf8503 100644
--- a/airavata-api/airavata-client-sdks/airavata-php-sdk/src/main/resources/lib/Airavata/API/AppCatalog/ApplicationCatalogAPI.php
+++ b/airavata-api/airavata-client-sdks/airavata-php-sdk/src/main/resources/lib/Airavata/API/AppCatalog/ApplicationCatalogAPI.php
@@ -33,14 +33,14 @@ interface ApplicationCatalogAPIIf {
   public function getGridFTPDataMovementProtocol($gridFTPDataMovementResourceId);
   public function isComputeResourceDescriptionRegistered($hostName);
   public function getComputeResourceDescriptionFromHostName($hostName);
-  public function addApplicationInterface(\Airavata\Model\Application\Interface\ApplicationInterfaceDescription $applicationInterface);
+  public function addApplicationInterface(\Airavata\Model\AppCatalog\AppInterface\ApplicationInterfaceDescription $applicationInterface);
   public function listApplicationInterfaceIds();
   public function getApplicationInterface($applicationInterfaceId);
-  public function registerAppicationModule(\Airavata\Model\Application\Deployment\ApplicationModule $applicationModule, $publish);
+  public function registerAppicationModule(\Airavata\Model\AppCatalog\AppDeployment\ApplicationModule $applicationModule, $publish);
   public function getAppicationModule($appModuleId);
-  public function updateAppicationModule($appModuleId, \Airavata\Model\Application\Deployment\ApplicationModule $applicationModule);
+  public function updateAppicationModule($appModuleId, \Airavata\Model\AppCatalog\AppDeployment\ApplicationModule $applicationModule);
   public function deleteAppicationModule($appModuleId);
-  public function addApplicationDeployment($applicationInterfaceId, \Airavata\Model\Application\Deployment\ApplicationDeploymentDescription $applicationDeployment);
+  public function addApplicationDeployment($applicationInterfaceId, \Airavata\Model\AppCatalog\AppDeployment\ApplicationDeploymentDescription $applicationDeployment);
   public function listApplicationDeploymentIds($applicationInterfaceId);
   public function getApplicationDeployment($applicationInterfaceId, $applicationDeploymentId);
 }
@@ -1010,13 +1010,13 @@ class ApplicationCatalogAPIClient implements \Airavata\API\AppCatalog\Applicatio
     throw new \Exception("getComputeResourceDescriptionFromHostName failed: unknown result");
   }
 
-  public function addApplicationInterface(\Airavata\Model\Application\Interface\ApplicationInterfaceDescription $applicationInterface)
+  public function addApplicationInterface(\Airavata\Model\AppCatalog\AppInterface\ApplicationInterfaceDescription $applicationInterface)
   {
     $this->send_addApplicationInterface($applicationInterface);
     return $this->recv_addApplicationInterface();
   }
 
-  public function send_addApplicationInterface(\Airavata\Model\Application\Interface\ApplicationInterfaceDescription $applicationInterface)
+  public function send_addApplicationInterface(\Airavata\Model\AppCatalog\AppInterface\ApplicationInterfaceDescription $applicationInterface)
   {
     $args = new \Airavata\API\AppCatalog\ApplicationCatalogAPI_addApplicationInterface_args();
     $args->applicationInterface = $applicationInterface;
@@ -1189,13 +1189,13 @@ class ApplicationCatalogAPIClient implements \Airavata\API\AppCatalog\Applicatio
     throw new \Exception("getApplicationInterface failed: unknown result");
   }
 
-  public function registerAppicationModule(\Airavata\Model\Application\Deployment\ApplicationModule $applicationModule, $publish)
+  public function registerAppicationModule(\Airavata\Model\AppCatalog\AppDeployment\ApplicationModule $applicationModule, $publish)
   {
     $this->send_registerAppicationModule($applicationModule, $publish);
     return $this->recv_registerAppicationModule();
   }
 
-  public function send_registerAppicationModule(\Airavata\Model\Application\Deployment\ApplicationModule $applicationModule, $publish)
+  public function send_registerAppicationModule(\Airavata\Model\AppCatalog\AppDeployment\ApplicationModule $applicationModule, $publish)
   {
     $args = new \Airavata\API\AppCatalog\ApplicationCatalogAPI_registerAppicationModule_args();
     $args->applicationModule = $applicationModule;
@@ -1310,13 +1310,13 @@ class ApplicationCatalogAPIClient implements \Airavata\API\AppCatalog\Applicatio
     throw new \Exception("getAppicationModule failed: unknown result");
   }
 
-  public function updateAppicationModule($appModuleId, \Airavata\Model\Application\Deployment\ApplicationModule $applicationModule)
+  public function updateAppicationModule($appModuleId, \Airavata\Model\AppCatalog\AppDeployment\ApplicationModule $applicationModule)
   {
     $this->send_updateAppicationModule($appModuleId, $applicationModule);
     return $this->recv_updateAppicationModule();
   }
 
-  public function send_updateAppicationModule($appModuleId, \Airavata\Model\Application\Deployment\ApplicationModule $applicationModule)
+  public function send_updateAppicationModule($appModuleId, \Airavata\Model\AppCatalog\AppDeployment\ApplicationModule $applicationModule)
   {
     $args = new \Airavata\API\AppCatalog\ApplicationCatalogAPI_updateAppicationModule_args();
     $args->appModuleId = $appModuleId;
@@ -1431,13 +1431,13 @@ class ApplicationCatalogAPIClient implements \Airavata\API\AppCatalog\Applicatio
     throw new \Exception("deleteAppicationModule failed: unknown result");
   }
 
-  public function addApplicationDeployment($applicationInterfaceId, \Airavata\Model\Application\Deployment\ApplicationDeploymentDescription $applicationDeployment)
+  public function addApplicationDeployment($applicationInterfaceId, \Airavata\Model\AppCatalog\AppDeployment\ApplicationDeploymentDescription $applicationDeployment)
   {
     $this->send_addApplicationDeployment($applicationInterfaceId, $applicationDeployment);
     return $this->recv_addApplicationDeployment();
   }
 
-  public function send_addApplicationDeployment($applicationInterfaceId, \Airavata\Model\Application\Deployment\ApplicationDeploymentDescription $applicationDeployment)
+  public function send_addApplicationDeployment($applicationInterfaceId, \Airavata\Model\AppCatalog\AppDeployment\ApplicationDeploymentDescription $applicationDeployment)
   {
     $args = new \Airavata\API\AppCatalog\ApplicationCatalogAPI_addApplicationDeployment_args();
     $args->applicationInterfaceId = $applicationInterfaceId;
@@ -5069,7 +5069,7 @@ class ApplicationCatalogAPI_addApplicationInterface_args {
         1 => array(
           'var' => 'applicationInterface',
           'type' => TType::STRUCT,
-          'class' => '\Airavata\Model\Application\Interface\ApplicationInterfaceDescription',
+          'class' => '\Airavata\Model\AppCatalog\AppInterface\ApplicationInterfaceDescription',
           ),
         );
     }
@@ -5101,7 +5101,7 @@ class ApplicationCatalogAPI_addApplicationInterface_args {
       {
         case 1:
           if ($ftype == TType::STRUCT) {
-            $this->applicationInterface = new \Airavata\Model\Application\Interface\ApplicationInterfaceDescription();
+            $this->applicationInterface = new \Airavata\Model\AppCatalog\AppInterface\ApplicationInterfaceDescription();
             $xfer += $this->applicationInterface->read($input);
           } else {
             $xfer += $input->skip($ftype);
@@ -5573,7 +5573,7 @@ class ApplicationCatalogAPI_getApplicationInterface_result {
         0 => array(
           'var' => 'success',
           'type' => TType::STRUCT,
-          'class' => '\Airavata\Model\Application\Interface\ApplicationInterfaceDescription',
+          'class' => '\Airavata\Model\AppCatalog\AppInterface\ApplicationInterfaceDescription',
           ),
         1 => array(
           'var' => 'ire',
@@ -5629,7 +5629,7 @@ class ApplicationCatalogAPI_getApplicationInterface_result {
       {
         case 0:
           if ($ftype == TType::STRUCT) {
-            $this->success = new \Airavata\Model\Application\Interface\ApplicationInterfaceDescription();
+            $this->success = new \Airavata\Model\AppCatalog\AppInterface\ApplicationInterfaceDescription();
             $xfer += $this->success->read($input);
           } else {
             $xfer += $input->skip($ftype);
@@ -5714,7 +5714,7 @@ class ApplicationCatalogAPI_registerAppicationModule_args {
         1 => array(
           'var' => 'applicationModule',
           'type' => TType::STRUCT,
-          'class' => '\Airavata\Model\Application\Deployment\ApplicationModule',
+          'class' => '\Airavata\Model\AppCatalog\AppDeployment\ApplicationModule',
           ),
         2 => array(
           'var' => 'publish',
@@ -5753,7 +5753,7 @@ class ApplicationCatalogAPI_registerAppicationModule_args {
       {
         case 1:
           if ($ftype == TType::STRUCT) {
-            $this->applicationModule = new \Airavata\Model\Application\Deployment\ApplicationModule();
+            $this->applicationModule = new \Airavata\Model\AppCatalog\AppDeployment\ApplicationModule();
             $xfer += $this->applicationModule->read($input);
           } else {
             $xfer += $input->skip($ftype);
@@ -6023,7 +6023,7 @@ class ApplicationCatalogAPI_getAppicationModule_result {
         0 => array(
           'var' => 'success',
           'type' => TType::STRUCT,
-          'class' => '\Airavata\Model\Application\Deployment\ApplicationModule',
+          'class' => '\Airavata\Model\AppCatalog\AppDeployment\ApplicationModule',
           ),
         1 => array(
           'var' => 'ire',
@@ -6079,7 +6079,7 @@ class ApplicationCatalogAPI_getAppicationModule_result {
       {
         case 0:
           if ($ftype == TType::STRUCT) {
-            $this->success = new \Airavata\Model\Application\Deployment\ApplicationModule();
+            $this->success = new \Airavata\Model\AppCatalog\AppDeployment\ApplicationModule();
             $xfer += $this->success->read($input);
           } else {
             $xfer += $input->skip($ftype);
@@ -6168,7 +6168,7 @@ class ApplicationCatalogAPI_updateAppicationModule_args {
         2 => array(
           'var' => 'applicationModule',
           'type' => TType::STRUCT,
-          'class' => '\Airavata\Model\Application\Deployment\ApplicationModule',
+          'class' => '\Airavata\Model\AppCatalog\AppDeployment\ApplicationModule',
           ),
         );
     }
@@ -6210,7 +6210,7 @@ class ApplicationCatalogAPI_updateAppicationModule_args {
           break;
         case 2:
           if ($ftype == TType::STRUCT) {
-            $this->applicationModule = new \Airavata\Model\Application\Deployment\ApplicationModule();
+            $this->applicationModule = new \Airavata\Model\AppCatalog\AppDeployment\ApplicationModule();
             $xfer += $this->applicationModule->read($input);
           } else {
             $xfer += $input->skip($ftype);
@@ -6613,7 +6613,7 @@ class ApplicationCatalogAPI_addApplicationDeployment_args {
         2 => array(
           'var' => 'applicationDeployment',
           'type' => TType::STRUCT,
-          'class' => '\Airavata\Model\Application\Deployment\ApplicationDeploymentDescription',
+          'class' => '\Airavata\Model\AppCatalog\AppDeployment\ApplicationDeploymentDescription',
           ),
         );
     }
@@ -6655,7 +6655,7 @@ class ApplicationCatalogAPI_addApplicationDeployment_args {
           break;
         case 2:
           if ($ftype == TType::STRUCT) {
-            $this->applicationDeployment = new \Airavata\Model\Application\Deployment\ApplicationDeploymentDescription();
+            $this->applicationDeployment = new \Airavata\Model\AppCatalog\AppDeployment\ApplicationDeploymentDescription();
             $xfer += $this->applicationDeployment->read($input);
           } else {
             $xfer += $input->skip($ftype);
@@ -7174,7 +7174,7 @@ class ApplicationCatalogAPI_getApplicationDeployment_result {
         0 => array(
           'var' => 'success',
           'type' => TType::STRUCT,
-          'class' => '\Airavata\Model\Application\Deployment\ApplicationDeploymentDescription',
+          'class' => '\Airavata\Model\AppCatalog\AppDeployment\ApplicationDeploymentDescription',
           ),
         1 => array(
           'var' => 'ire',
@@ -7230,7 +7230,7 @@ class ApplicationCatalogAPI_getApplicationDeployment_result {
       {
         case 0:
           if ($ftype == TType::STRUCT) {
-            $this->success = new \Airavata\Model\Application\Deployment\ApplicationDeploymentDescription();
+            $this->success = new \Airavata\Model\AppCatalog\AppDeployment\ApplicationDeploymentDescription();
             $xfer += $this->success->read($input);
           } else {
             $xfer += $input->skip($ftype);

http://git-wip-us.apache.org/repos/asf/airavata/blob/6843720a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/deployment/ApplicationDeploymentDescription.java
----------------------------------------------------------------------
diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/deployment/ApplicationDeploymentDescription.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/deployment/ApplicationDeploymentDescription.java
deleted file mode 100644
index 9d05334..0000000
--- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/deployment/ApplicationDeploymentDescription.java
+++ /dev/null
@@ -1,1479 +0,0 @@
-    /*
-     * Licensed to the Apache Software Foundation (ASF) under one or more
-     * contributor license agreements.  See the NOTICE file distributed with
-     * this work for additional information regarding copyright ownership.
-     * The ASF licenses this file to You under the Apache License, Version 2.0
-     * (the "License"); you may not use this file except in compliance with
-     * the License.  You may obtain a copy of the License at
-     *
-     *     http://www.apache.org/licenses/LICENSE-2.0
-     *
-     * Unless required by applicable law or agreed to in writing, software
-     * distributed under the License is distributed on an "AS IS" BASIS,
-     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-     * See the License for the specific language governing permissions and
-     * limitations under the License.
-     */
-/**
- * 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.model.application.deployment;
-
-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;
-
-/**
- * Application Deployment Description
- * 
- * appDeploymentId: Airavata Internal Unique Job ID. This is set by the registry.
- * 
- * appModuleName:
- *   Application Module Name. This has to be precise describing the binary.
- * 
- * computeHostId:
- *   This ID maps application deployment to a particular resource previously described within Airavata.
- *   Example: Stampede is first registered and refered when registering WRF.
- * 
- * moduleLoadCmd:
- *  Command string to load modules. This will be placed in the job submisison
- *  Ex: module load amber
- * 
- * libPrependPaths:
- *  prepend to a path variable the value
- * 
- * libAppendPaths:
- *  append to a path variable the value
- * 
- * setEnvironment:
- *  assigns to the environment variable "NAME" the value
- * 
- */
-@SuppressWarnings("all") public class ApplicationDeploymentDescription implements org.apache.thrift.TBase<ApplicationDeploymentDescription, ApplicationDeploymentDescription._Fields>, java.io.Serializable, Cloneable, Comparable<ApplicationDeploymentDescription> {
-  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ApplicationDeploymentDescription");
-
-  private static final org.apache.thrift.protocol.TField IS_EMPTY_FIELD_DESC = new org.apache.thrift.protocol.TField("isEmpty", org.apache.thrift.protocol.TType.BOOL, (short)1);
-  private static final org.apache.thrift.protocol.TField APP_DEPLOYMENT_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("appDeploymentId", org.apache.thrift.protocol.TType.STRING, (short)2);
-  private static final org.apache.thrift.protocol.TField APP_MODULE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("appModuleId", org.apache.thrift.protocol.TType.STRING, (short)3);
-  private static final org.apache.thrift.protocol.TField COMPUTE_HOST_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("computeHostId", org.apache.thrift.protocol.TType.STRING, (short)4);
-  private static final org.apache.thrift.protocol.TField EXECUTABLE_PATH_FIELD_DESC = new org.apache.thrift.protocol.TField("executablePath", org.apache.thrift.protocol.TType.STRING, (short)5);
-  private static final org.apache.thrift.protocol.TField APP_DEPLOYMENT_DESCRIPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("appDeploymentDescription", org.apache.thrift.protocol.TType.STRING, (short)6);
-  private static final org.apache.thrift.protocol.TField MODULE_LOAD_CMD_FIELD_DESC = new org.apache.thrift.protocol.TField("moduleLoadCmd", org.apache.thrift.protocol.TType.STRING, (short)7);
-  private static final org.apache.thrift.protocol.TField LIB_PREPEND_PATHS_FIELD_DESC = new org.apache.thrift.protocol.TField("libPrependPaths", org.apache.thrift.protocol.TType.LIST, (short)8);
-  private static final org.apache.thrift.protocol.TField LIB_APPEND_PATHS_FIELD_DESC = new org.apache.thrift.protocol.TField("libAppendPaths", org.apache.thrift.protocol.TType.LIST, (short)9);
-  private static final org.apache.thrift.protocol.TField SET_ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("setEnvironment", org.apache.thrift.protocol.TType.LIST, (short)10);
-
-  private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
-  static {
-    schemes.put(StandardScheme.class, new ApplicationDeploymentDescriptionStandardSchemeFactory());
-    schemes.put(TupleScheme.class, new ApplicationDeploymentDescriptionTupleSchemeFactory());
-  }
-
-  private boolean isEmpty; // required
-  private String appDeploymentId; // required
-  private String appModuleId; // required
-  private String computeHostId; // required
-  private String executablePath; // required
-  private String appDeploymentDescription; // optional
-  private String moduleLoadCmd; // optional
-  private List<SetEnvPaths> libPrependPaths; // optional
-  private List<SetEnvPaths> libAppendPaths; // optional
-  private List<SetEnvPaths> setEnvironment; // optional
-
-  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-  @SuppressWarnings("all") public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-    IS_EMPTY((short)1, "isEmpty"),
-    APP_DEPLOYMENT_ID((short)2, "appDeploymentId"),
-    APP_MODULE_ID((short)3, "appModuleId"),
-    COMPUTE_HOST_ID((short)4, "computeHostId"),
-    EXECUTABLE_PATH((short)5, "executablePath"),
-    APP_DEPLOYMENT_DESCRIPTION((short)6, "appDeploymentDescription"),
-    MODULE_LOAD_CMD((short)7, "moduleLoadCmd"),
-    LIB_PREPEND_PATHS((short)8, "libPrependPaths"),
-    LIB_APPEND_PATHS((short)9, "libAppendPaths"),
-    SET_ENVIRONMENT((short)10, "setEnvironment");
-
-    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: // IS_EMPTY
-          return IS_EMPTY;
-        case 2: // APP_DEPLOYMENT_ID
-          return APP_DEPLOYMENT_ID;
-        case 3: // APP_MODULE_ID
-          return APP_MODULE_ID;
-        case 4: // COMPUTE_HOST_ID
-          return COMPUTE_HOST_ID;
-        case 5: // EXECUTABLE_PATH
-          return EXECUTABLE_PATH;
-        case 6: // APP_DEPLOYMENT_DESCRIPTION
-          return APP_DEPLOYMENT_DESCRIPTION;
-        case 7: // MODULE_LOAD_CMD
-          return MODULE_LOAD_CMD;
-        case 8: // LIB_PREPEND_PATHS
-          return LIB_PREPEND_PATHS;
-        case 9: // LIB_APPEND_PATHS
-          return LIB_APPEND_PATHS;
-        case 10: // SET_ENVIRONMENT
-          return SET_ENVIRONMENT;
-        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 __ISEMPTY_ISSET_ID = 0;
-  private byte __isset_bitfield = 0;
-  private _Fields optionals[] = {_Fields.APP_DEPLOYMENT_DESCRIPTION,_Fields.MODULE_LOAD_CMD,_Fields.LIB_PREPEND_PATHS,_Fields.LIB_APPEND_PATHS,_Fields.SET_ENVIRONMENT};
-  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.IS_EMPTY, new org.apache.thrift.meta_data.FieldMetaData("isEmpty", org.apache.thrift.TFieldRequirementType.REQUIRED, 
-        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-    tmpMap.put(_Fields.APP_DEPLOYMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("appDeploymentId", org.apache.thrift.TFieldRequirementType.REQUIRED, 
-        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-    tmpMap.put(_Fields.APP_MODULE_ID, new org.apache.thrift.meta_data.FieldMetaData("appModuleId", org.apache.thrift.TFieldRequirementType.REQUIRED, 
-        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-    tmpMap.put(_Fields.COMPUTE_HOST_ID, new org.apache.thrift.meta_data.FieldMetaData("computeHostId", org.apache.thrift.TFieldRequirementType.REQUIRED, 
-        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-    tmpMap.put(_Fields.EXECUTABLE_PATH, new org.apache.thrift.meta_data.FieldMetaData("executablePath", org.apache.thrift.TFieldRequirementType.REQUIRED, 
-        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-    tmpMap.put(_Fields.APP_DEPLOYMENT_DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("appDeploymentDescription", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
-        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-    tmpMap.put(_Fields.MODULE_LOAD_CMD, new org.apache.thrift.meta_data.FieldMetaData("moduleLoadCmd", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
-        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-    tmpMap.put(_Fields.LIB_PREPEND_PATHS, new org.apache.thrift.meta_data.FieldMetaData("libPrependPaths", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
-        new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-            new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SetEnvPaths.class))));
-    tmpMap.put(_Fields.LIB_APPEND_PATHS, new org.apache.thrift.meta_data.FieldMetaData("libAppendPaths", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
-        new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-            new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SetEnvPaths.class))));
-    tmpMap.put(_Fields.SET_ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("setEnvironment", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
-        new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-            new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SetEnvPaths.class))));
-    metaDataMap = Collections.unmodifiableMap(tmpMap);
-    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(ApplicationDeploymentDescription.class, metaDataMap);
-  }
-
-  public ApplicationDeploymentDescription() {
-    this.isEmpty = false;
-
-    this.appDeploymentId = "DO_NOT_SET_AT_CLIENTS";
-
-  }
-
-  public ApplicationDeploymentDescription(
-    boolean isEmpty,
-    String appDeploymentId,
-    String appModuleId,
-    String computeHostId,
-    String executablePath)
-  {
-    this();
-    this.isEmpty = isEmpty;
-    setIsEmptyIsSet(true);
-    this.appDeploymentId = appDeploymentId;
-    this.appModuleId = appModuleId;
-    this.computeHostId = computeHostId;
-    this.executablePath = executablePath;
-  }
-
-  /**
-   * Performs a deep copy on <i>other</i>.
-   */
-  public ApplicationDeploymentDescription(ApplicationDeploymentDescription other) {
-    __isset_bitfield = other.__isset_bitfield;
-    this.isEmpty = other.isEmpty;
-    if (other.isSetAppDeploymentId()) {
-      this.appDeploymentId = other.appDeploymentId;
-    }
-    if (other.isSetAppModuleId()) {
-      this.appModuleId = other.appModuleId;
-    }
-    if (other.isSetComputeHostId()) {
-      this.computeHostId = other.computeHostId;
-    }
-    if (other.isSetExecutablePath()) {
-      this.executablePath = other.executablePath;
-    }
-    if (other.isSetAppDeploymentDescription()) {
-      this.appDeploymentDescription = other.appDeploymentDescription;
-    }
-    if (other.isSetModuleLoadCmd()) {
-      this.moduleLoadCmd = other.moduleLoadCmd;
-    }
-    if (other.isSetLibPrependPaths()) {
-      List<SetEnvPaths> __this__libPrependPaths = new ArrayList<SetEnvPaths>(other.libPrependPaths.size());
-      for (SetEnvPaths other_element : other.libPrependPaths) {
-        __this__libPrependPaths.add(new SetEnvPaths(other_element));
-      }
-      this.libPrependPaths = __this__libPrependPaths;
-    }
-    if (other.isSetLibAppendPaths()) {
-      List<SetEnvPaths> __this__libAppendPaths = new ArrayList<SetEnvPaths>(other.libAppendPaths.size());
-      for (SetEnvPaths other_element : other.libAppendPaths) {
-        __this__libAppendPaths.add(new SetEnvPaths(other_element));
-      }
-      this.libAppendPaths = __this__libAppendPaths;
-    }
-    if (other.isSetSetEnvironment()) {
-      List<SetEnvPaths> __this__setEnvironment = new ArrayList<SetEnvPaths>(other.setEnvironment.size());
-      for (SetEnvPaths other_element : other.setEnvironment) {
-        __this__setEnvironment.add(new SetEnvPaths(other_element));
-      }
-      this.setEnvironment = __this__setEnvironment;
-    }
-  }
-
-  public ApplicationDeploymentDescription deepCopy() {
-    return new ApplicationDeploymentDescription(this);
-  }
-
-  @Override
-  public void clear() {
-    this.isEmpty = false;
-
-    this.appDeploymentId = "DO_NOT_SET_AT_CLIENTS";
-
-    this.appModuleId = null;
-    this.computeHostId = null;
-    this.executablePath = null;
-    this.appDeploymentDescription = null;
-    this.moduleLoadCmd = null;
-    this.libPrependPaths = null;
-    this.libAppendPaths = null;
-    this.setEnvironment = null;
-  }
-
-  public boolean isIsEmpty() {
-    return this.isEmpty;
-  }
-
-  public void setIsEmpty(boolean isEmpty) {
-    this.isEmpty = isEmpty;
-    setIsEmptyIsSet(true);
-  }
-
-  public void unsetIsEmpty() {
-    __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ISEMPTY_ISSET_ID);
-  }
-
-  /** Returns true if field isEmpty is set (has been assigned a value) and false otherwise */
-  public boolean isSetIsEmpty() {
-    return EncodingUtils.testBit(__isset_bitfield, __ISEMPTY_ISSET_ID);
-  }
-
-  public void setIsEmptyIsSet(boolean value) {
-    __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ISEMPTY_ISSET_ID, value);
-  }
-
-  public String getAppDeploymentId() {
-    return this.appDeploymentId;
-  }
-
-  public void setAppDeploymentId(String appDeploymentId) {
-    this.appDeploymentId = appDeploymentId;
-  }
-
-  public void unsetAppDeploymentId() {
-    this.appDeploymentId = null;
-  }
-
-  /** Returns true if field appDeploymentId is set (has been assigned a value) and false otherwise */
-  public boolean isSetAppDeploymentId() {
-    return this.appDeploymentId != null;
-  }
-
-  public void setAppDeploymentIdIsSet(boolean value) {
-    if (!value) {
-      this.appDeploymentId = null;
-    }
-  }
-
-  public String getAppModuleId() {
-    return this.appModuleId;
-  }
-
-  public void setAppModuleId(String appModuleId) {
-    this.appModuleId = appModuleId;
-  }
-
-  public void unsetAppModuleId() {
-    this.appModuleId = null;
-  }
-
-  /** Returns true if field appModuleId is set (has been assigned a value) and false otherwise */
-  public boolean isSetAppModuleId() {
-    return this.appModuleId != null;
-  }
-
-  public void setAppModuleIdIsSet(boolean value) {
-    if (!value) {
-      this.appModuleId = null;
-    }
-  }
-
-  public String getComputeHostId() {
-    return this.computeHostId;
-  }
-
-  public void setComputeHostId(String computeHostId) {
-    this.computeHostId = computeHostId;
-  }
-
-  public void unsetComputeHostId() {
-    this.computeHostId = null;
-  }
-
-  /** Returns true if field computeHostId is set (has been assigned a value) and false otherwise */
-  public boolean isSetComputeHostId() {
-    return this.computeHostId != null;
-  }
-
-  public void setComputeHostIdIsSet(boolean value) {
-    if (!value) {
-      this.computeHostId = null;
-    }
-  }
-
-  public String getExecutablePath() {
-    return this.executablePath;
-  }
-
-  public void setExecutablePath(String executablePath) {
-    this.executablePath = executablePath;
-  }
-
-  public void unsetExecutablePath() {
-    this.executablePath = null;
-  }
-
-  /** Returns true if field executablePath is set (has been assigned a value) and false otherwise */
-  public boolean isSetExecutablePath() {
-    return this.executablePath != null;
-  }
-
-  public void setExecutablePathIsSet(boolean value) {
-    if (!value) {
-      this.executablePath = null;
-    }
-  }
-
-  public String getAppDeploymentDescription() {
-    return this.appDeploymentDescription;
-  }
-
-  public void setAppDeploymentDescription(String appDeploymentDescription) {
-    this.appDeploymentDescription = appDeploymentDescription;
-  }
-
-  public void unsetAppDeploymentDescription() {
-    this.appDeploymentDescription = null;
-  }
-
-  /** Returns true if field appDeploymentDescription is set (has been assigned a value) and false otherwise */
-  public boolean isSetAppDeploymentDescription() {
-    return this.appDeploymentDescription != null;
-  }
-
-  public void setAppDeploymentDescriptionIsSet(boolean value) {
-    if (!value) {
-      this.appDeploymentDescription = null;
-    }
-  }
-
-  public String getModuleLoadCmd() {
-    return this.moduleLoadCmd;
-  }
-
-  public void setModuleLoadCmd(String moduleLoadCmd) {
-    this.moduleLoadCmd = moduleLoadCmd;
-  }
-
-  public void unsetModuleLoadCmd() {
-    this.moduleLoadCmd = null;
-  }
-
-  /** Returns true if field moduleLoadCmd is set (has been assigned a value) and false otherwise */
-  public boolean isSetModuleLoadCmd() {
-    return this.moduleLoadCmd != null;
-  }
-
-  public void setModuleLoadCmdIsSet(boolean value) {
-    if (!value) {
-      this.moduleLoadCmd = null;
-    }
-  }
-
-  public int getLibPrependPathsSize() {
-    return (this.libPrependPaths == null) ? 0 : this.libPrependPaths.size();
-  }
-
-  public java.util.Iterator<SetEnvPaths> getLibPrependPathsIterator() {
-    return (this.libPrependPaths == null) ? null : this.libPrependPaths.iterator();
-  }
-
-  public void addToLibPrependPaths(SetEnvPaths elem) {
-    if (this.libPrependPaths == null) {
-      this.libPrependPaths = new ArrayList<SetEnvPaths>();
-    }
-    this.libPrependPaths.add(elem);
-  }
-
-  public List<SetEnvPaths> getLibPrependPaths() {
-    return this.libPrependPaths;
-  }
-
-  public void setLibPrependPaths(List<SetEnvPaths> libPrependPaths) {
-    this.libPrependPaths = libPrependPaths;
-  }
-
-  public void unsetLibPrependPaths() {
-    this.libPrependPaths = null;
-  }
-
-  /** Returns true if field libPrependPaths is set (has been assigned a value) and false otherwise */
-  public boolean isSetLibPrependPaths() {
-    return this.libPrependPaths != null;
-  }
-
-  public void setLibPrependPathsIsSet(boolean value) {
-    if (!value) {
-      this.libPrependPaths = null;
-    }
-  }
-
-  public int getLibAppendPathsSize() {
-    return (this.libAppendPaths == null) ? 0 : this.libAppendPaths.size();
-  }
-
-  public java.util.Iterator<SetEnvPaths> getLibAppendPathsIterator() {
-    return (this.libAppendPaths == null) ? null : this.libAppendPaths.iterator();
-  }
-
-  public void addToLibAppendPaths(SetEnvPaths elem) {
-    if (this.libAppendPaths == null) {
-      this.libAppendPaths = new ArrayList<SetEnvPaths>();
-    }
-    this.libAppendPaths.add(elem);
-  }
-
-  public List<SetEnvPaths> getLibAppendPaths() {
-    return this.libAppendPaths;
-  }
-
-  public void setLibAppendPaths(List<SetEnvPaths> libAppendPaths) {
-    this.libAppendPaths = libAppendPaths;
-  }
-
-  public void unsetLibAppendPaths() {
-    this.libAppendPaths = null;
-  }
-
-  /** Returns true if field libAppendPaths is set (has been assigned a value) and false otherwise */
-  public boolean isSetLibAppendPaths() {
-    return this.libAppendPaths != null;
-  }
-
-  public void setLibAppendPathsIsSet(boolean value) {
-    if (!value) {
-      this.libAppendPaths = null;
-    }
-  }
-
-  public int getSetEnvironmentSize() {
-    return (this.setEnvironment == null) ? 0 : this.setEnvironment.size();
-  }
-
-  public java.util.Iterator<SetEnvPaths> getSetEnvironmentIterator() {
-    return (this.setEnvironment == null) ? null : this.setEnvironment.iterator();
-  }
-
-  public void addToSetEnvironment(SetEnvPaths elem) {
-    if (this.setEnvironment == null) {
-      this.setEnvironment = new ArrayList<SetEnvPaths>();
-    }
-    this.setEnvironment.add(elem);
-  }
-
-  public List<SetEnvPaths> getSetEnvironment() {
-    return this.setEnvironment;
-  }
-
-  public void setSetEnvironment(List<SetEnvPaths> setEnvironment) {
-    this.setEnvironment = setEnvironment;
-  }
-
-  public void unsetSetEnvironment() {
-    this.setEnvironment = null;
-  }
-
-  /** Returns true if field setEnvironment is set (has been assigned a value) and false otherwise */
-  public boolean isSetSetEnvironment() {
-    return this.setEnvironment != null;
-  }
-
-  public void setSetEnvironmentIsSet(boolean value) {
-    if (!value) {
-      this.setEnvironment = null;
-    }
-  }
-
-  public void setFieldValue(_Fields field, Object value) {
-    switch (field) {
-    case IS_EMPTY:
-      if (value == null) {
-        unsetIsEmpty();
-      } else {
-        setIsEmpty((Boolean)value);
-      }
-      break;
-
-    case APP_DEPLOYMENT_ID:
-      if (value == null) {
-        unsetAppDeploymentId();
-      } else {
-        setAppDeploymentId((String)value);
-      }
-      break;
-
-    case APP_MODULE_ID:
-      if (value == null) {
-        unsetAppModuleId();
-      } else {
-        setAppModuleId((String)value);
-      }
-      break;
-
-    case COMPUTE_HOST_ID:
-      if (value == null) {
-        unsetComputeHostId();
-      } else {
-        setComputeHostId((String)value);
-      }
-      break;
-
-    case EXECUTABLE_PATH:
-      if (value == null) {
-        unsetExecutablePath();
-      } else {
-        setExecutablePath((String)value);
-      }
-      break;
-
-    case APP_DEPLOYMENT_DESCRIPTION:
-      if (value == null) {
-        unsetAppDeploymentDescription();
-      } else {
-        setAppDeploymentDescription((String)value);
-      }
-      break;
-
-    case MODULE_LOAD_CMD:
-      if (value == null) {
-        unsetModuleLoadCmd();
-      } else {
-        setModuleLoadCmd((String)value);
-      }
-      break;
-
-    case LIB_PREPEND_PATHS:
-      if (value == null) {
-        unsetLibPrependPaths();
-      } else {
-        setLibPrependPaths((List<SetEnvPaths>)value);
-      }
-      break;
-
-    case LIB_APPEND_PATHS:
-      if (value == null) {
-        unsetLibAppendPaths();
-      } else {
-        setLibAppendPaths((List<SetEnvPaths>)value);
-      }
-      break;
-
-    case SET_ENVIRONMENT:
-      if (value == null) {
-        unsetSetEnvironment();
-      } else {
-        setSetEnvironment((List<SetEnvPaths>)value);
-      }
-      break;
-
-    }
-  }
-
-  public Object getFieldValue(_Fields field) {
-    switch (field) {
-    case IS_EMPTY:
-      return Boolean.valueOf(isIsEmpty());
-
-    case APP_DEPLOYMENT_ID:
-      return getAppDeploymentId();
-
-    case APP_MODULE_ID:
-      return getAppModuleId();
-
-    case COMPUTE_HOST_ID:
-      return getComputeHostId();
-
-    case EXECUTABLE_PATH:
-      return getExecutablePath();
-
-    case APP_DEPLOYMENT_DESCRIPTION:
-      return getAppDeploymentDescription();
-
-    case MODULE_LOAD_CMD:
-      return getModuleLoadCmd();
-
-    case LIB_PREPEND_PATHS:
-      return getLibPrependPaths();
-
-    case LIB_APPEND_PATHS:
-      return getLibAppendPaths();
-
-    case SET_ENVIRONMENT:
-      return getSetEnvironment();
-
-    }
-    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 IS_EMPTY:
-      return isSetIsEmpty();
-    case APP_DEPLOYMENT_ID:
-      return isSetAppDeploymentId();
-    case APP_MODULE_ID:
-      return isSetAppModuleId();
-    case COMPUTE_HOST_ID:
-      return isSetComputeHostId();
-    case EXECUTABLE_PATH:
-      return isSetExecutablePath();
-    case APP_DEPLOYMENT_DESCRIPTION:
-      return isSetAppDeploymentDescription();
-    case MODULE_LOAD_CMD:
-      return isSetModuleLoadCmd();
-    case LIB_PREPEND_PATHS:
-      return isSetLibPrependPaths();
-    case LIB_APPEND_PATHS:
-      return isSetLibAppendPaths();
-    case SET_ENVIRONMENT:
-      return isSetSetEnvironment();
-    }
-    throw new IllegalStateException();
-  }
-
-  @Override
-  public boolean equals(Object that) {
-    if (that == null)
-      return false;
-    if (that instanceof ApplicationDeploymentDescription)
-      return this.equals((ApplicationDeploymentDescription)that);
-    return false;
-  }
-
-  public boolean equals(ApplicationDeploymentDescription that) {
-    if (that == null)
-      return false;
-
-    boolean this_present_isEmpty = true;
-    boolean that_present_isEmpty = true;
-    if (this_present_isEmpty || that_present_isEmpty) {
-      if (!(this_present_isEmpty && that_present_isEmpty))
-        return false;
-      if (this.isEmpty != that.isEmpty)
-        return false;
-    }
-
-    boolean this_present_appDeploymentId = true && this.isSetAppDeploymentId();
-    boolean that_present_appDeploymentId = true && that.isSetAppDeploymentId();
-    if (this_present_appDeploymentId || that_present_appDeploymentId) {
-      if (!(this_present_appDeploymentId && that_present_appDeploymentId))
-        return false;
-      if (!this.appDeploymentId.equals(that.appDeploymentId))
-        return false;
-    }
-
-    boolean this_present_appModuleId = true && this.isSetAppModuleId();
-    boolean that_present_appModuleId = true && that.isSetAppModuleId();
-    if (this_present_appModuleId || that_present_appModuleId) {
-      if (!(this_present_appModuleId && that_present_appModuleId))
-        return false;
-      if (!this.appModuleId.equals(that.appModuleId))
-        return false;
-    }
-
-    boolean this_present_computeHostId = true && this.isSetComputeHostId();
-    boolean that_present_computeHostId = true && that.isSetComputeHostId();
-    if (this_present_computeHostId || that_present_computeHostId) {
-      if (!(this_present_computeHostId && that_present_computeHostId))
-        return false;
-      if (!this.computeHostId.equals(that.computeHostId))
-        return false;
-    }
-
-    boolean this_present_executablePath = true && this.isSetExecutablePath();
-    boolean that_present_executablePath = true && that.isSetExecutablePath();
-    if (this_present_executablePath || that_present_executablePath) {
-      if (!(this_present_executablePath && that_present_executablePath))
-        return false;
-      if (!this.executablePath.equals(that.executablePath))
-        return false;
-    }
-
-    boolean this_present_appDeploymentDescription = true && this.isSetAppDeploymentDescription();
-    boolean that_present_appDeploymentDescription = true && that.isSetAppDeploymentDescription();
-    if (this_present_appDeploymentDescription || that_present_appDeploymentDescription) {
-      if (!(this_present_appDeploymentDescription && that_present_appDeploymentDescription))
-        return false;
-      if (!this.appDeploymentDescription.equals(that.appDeploymentDescription))
-        return false;
-    }
-
-    boolean this_present_moduleLoadCmd = true && this.isSetModuleLoadCmd();
-    boolean that_present_moduleLoadCmd = true && that.isSetModuleLoadCmd();
-    if (this_present_moduleLoadCmd || that_present_moduleLoadCmd) {
-      if (!(this_present_moduleLoadCmd && that_present_moduleLoadCmd))
-        return false;
-      if (!this.moduleLoadCmd.equals(that.moduleLoadCmd))
-        return false;
-    }
-
-    boolean this_present_libPrependPaths = true && this.isSetLibPrependPaths();
-    boolean that_present_libPrependPaths = true && that.isSetLibPrependPaths();
-    if (this_present_libPrependPaths || that_present_libPrependPaths) {
-      if (!(this_present_libPrependPaths && that_present_libPrependPaths))
-        return false;
-      if (!this.libPrependPaths.equals(that.libPrependPaths))
-        return false;
-    }
-
-    boolean this_present_libAppendPaths = true && this.isSetLibAppendPaths();
-    boolean that_present_libAppendPaths = true && that.isSetLibAppendPaths();
-    if (this_present_libAppendPaths || that_present_libAppendPaths) {
-      if (!(this_present_libAppendPaths && that_present_libAppendPaths))
-        return false;
-      if (!this.libAppendPaths.equals(that.libAppendPaths))
-        return false;
-    }
-
-    boolean this_present_setEnvironment = true && this.isSetSetEnvironment();
-    boolean that_present_setEnvironment = true && that.isSetSetEnvironment();
-    if (this_present_setEnvironment || that_present_setEnvironment) {
-      if (!(this_present_setEnvironment && that_present_setEnvironment))
-        return false;
-      if (!this.setEnvironment.equals(that.setEnvironment))
-        return false;
-    }
-
-    return true;
-  }
-
-  @Override
-  public int hashCode() {
-    return 0;
-  }
-
-  @Override
-  public int compareTo(ApplicationDeploymentDescription other) {
-    if (!getClass().equals(other.getClass())) {
-      return getClass().getName().compareTo(other.getClass().getName());
-    }
-
-    int lastComparison = 0;
-
-    lastComparison = Boolean.valueOf(isSetIsEmpty()).compareTo(other.isSetIsEmpty());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetIsEmpty()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isEmpty, other.isEmpty);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    lastComparison = Boolean.valueOf(isSetAppDeploymentId()).compareTo(other.isSetAppDeploymentId());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetAppDeploymentId()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.appDeploymentId, other.appDeploymentId);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    lastComparison = Boolean.valueOf(isSetAppModuleId()).compareTo(other.isSetAppModuleId());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetAppModuleId()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.appModuleId, other.appModuleId);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    lastComparison = Boolean.valueOf(isSetComputeHostId()).compareTo(other.isSetComputeHostId());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetComputeHostId()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.computeHostId, other.computeHostId);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    lastComparison = Boolean.valueOf(isSetExecutablePath()).compareTo(other.isSetExecutablePath());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetExecutablePath()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.executablePath, other.executablePath);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    lastComparison = Boolean.valueOf(isSetAppDeploymentDescription()).compareTo(other.isSetAppDeploymentDescription());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetAppDeploymentDescription()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.appDeploymentDescription, other.appDeploymentDescription);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    lastComparison = Boolean.valueOf(isSetModuleLoadCmd()).compareTo(other.isSetModuleLoadCmd());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetModuleLoadCmd()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.moduleLoadCmd, other.moduleLoadCmd);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    lastComparison = Boolean.valueOf(isSetLibPrependPaths()).compareTo(other.isSetLibPrependPaths());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetLibPrependPaths()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.libPrependPaths, other.libPrependPaths);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    lastComparison = Boolean.valueOf(isSetLibAppendPaths()).compareTo(other.isSetLibAppendPaths());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetLibAppendPaths()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.libAppendPaths, other.libAppendPaths);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    lastComparison = Boolean.valueOf(isSetSetEnvironment()).compareTo(other.isSetSetEnvironment());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetSetEnvironment()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.setEnvironment, other.setEnvironment);
-      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("ApplicationDeploymentDescription(");
-    boolean first = true;
-
-    sb.append("isEmpty:");
-    sb.append(this.isEmpty);
-    first = false;
-    if (!first) sb.append(", ");
-    sb.append("appDeploymentId:");
-    if (this.appDeploymentId == null) {
-      sb.append("null");
-    } else {
-      sb.append(this.appDeploymentId);
-    }
-    first = false;
-    if (!first) sb.append(", ");
-    sb.append("appModuleId:");
-    if (this.appModuleId == null) {
-      sb.append("null");
-    } else {
-      sb.append(this.appModuleId);
-    }
-    first = false;
-    if (!first) sb.append(", ");
-    sb.append("computeHostId:");
-    if (this.computeHostId == null) {
-      sb.append("null");
-    } else {
-      sb.append(this.computeHostId);
-    }
-    first = false;
-    if (!first) sb.append(", ");
-    sb.append("executablePath:");
-    if (this.executablePath == null) {
-      sb.append("null");
-    } else {
-      sb.append(this.executablePath);
-    }
-    first = false;
-    if (isSetAppDeploymentDescription()) {
-      if (!first) sb.append(", ");
-      sb.append("appDeploymentDescription:");
-      if (this.appDeploymentDescription == null) {
-        sb.append("null");
-      } else {
-        sb.append(this.appDeploymentDescription);
-      }
-      first = false;
-    }
-    if (isSetModuleLoadCmd()) {
-      if (!first) sb.append(", ");
-      sb.append("moduleLoadCmd:");
-      if (this.moduleLoadCmd == null) {
-        sb.append("null");
-      } else {
-        sb.append(this.moduleLoadCmd);
-      }
-      first = false;
-    }
-    if (isSetLibPrependPaths()) {
-      if (!first) sb.append(", ");
-      sb.append("libPrependPaths:");
-      if (this.libPrependPaths == null) {
-        sb.append("null");
-      } else {
-        sb.append(this.libPrependPaths);
-      }
-      first = false;
-    }
-    if (isSetLibAppendPaths()) {
-      if (!first) sb.append(", ");
-      sb.append("libAppendPaths:");
-      if (this.libAppendPaths == null) {
-        sb.append("null");
-      } else {
-        sb.append(this.libAppendPaths);
-      }
-      first = false;
-    }
-    if (isSetSetEnvironment()) {
-      if (!first) sb.append(", ");
-      sb.append("setEnvironment:");
-      if (this.setEnvironment == null) {
-        sb.append("null");
-      } else {
-        sb.append(this.setEnvironment);
-      }
-      first = false;
-    }
-    sb.append(")");
-    return sb.toString();
-  }
-
-  public void validate() throws org.apache.thrift.TException {
-    // check for required fields
-    if (!isSetIsEmpty()) {
-      throw new org.apache.thrift.protocol.TProtocolException("Required field 'isEmpty' is unset! Struct:" + toString());
-    }
-
-    if (!isSetAppDeploymentId()) {
-      throw new org.apache.thrift.protocol.TProtocolException("Required field 'appDeploymentId' is unset! Struct:" + toString());
-    }
-
-    if (!isSetAppModuleId()) {
-      throw new org.apache.thrift.protocol.TProtocolException("Required field 'appModuleId' is unset! Struct:" + toString());
-    }
-
-    if (!isSetComputeHostId()) {
-      throw new org.apache.thrift.protocol.TProtocolException("Required field 'computeHostId' is unset! Struct:" + toString());
-    }
-
-    if (!isSetExecutablePath()) {
-      throw new org.apache.thrift.protocol.TProtocolException("Required field 'executablePath' is unset! Struct:" + toString());
-    }
-
-    // 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 ApplicationDeploymentDescriptionStandardSchemeFactory implements SchemeFactory {
-    public ApplicationDeploymentDescriptionStandardScheme getScheme() {
-      return new ApplicationDeploymentDescriptionStandardScheme();
-    }
-  }
-
-  private static class ApplicationDeploymentDescriptionStandardScheme extends StandardScheme<ApplicationDeploymentDescription> {
-
-    public void read(org.apache.thrift.protocol.TProtocol iprot, ApplicationDeploymentDescription 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: // IS_EMPTY
-            if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
-              struct.isEmpty = iprot.readBool();
-              struct.setIsEmptyIsSet(true);
-            } else { 
-              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-            }
-            break;
-          case 2: // APP_DEPLOYMENT_ID
-            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
-              struct.appDeploymentId = iprot.readString();
-              struct.setAppDeploymentIdIsSet(true);
-            } else { 
-              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-            }
-            break;
-          case 3: // APP_MODULE_ID
-            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
-              struct.appModuleId = iprot.readString();
-              struct.setAppModuleIdIsSet(true);
-            } else { 
-              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-            }
-            break;
-          case 4: // COMPUTE_HOST_ID
-            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
-              struct.computeHostId = iprot.readString();
-              struct.setComputeHostIdIsSet(true);
-            } else { 
-              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-            }
-            break;
-          case 5: // EXECUTABLE_PATH
-            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
-              struct.executablePath = iprot.readString();
-              struct.setExecutablePathIsSet(true);
-            } else { 
-              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-            }
-            break;
-          case 6: // APP_DEPLOYMENT_DESCRIPTION
-            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
-              struct.appDeploymentDescription = iprot.readString();
-              struct.setAppDeploymentDescriptionIsSet(true);
-            } else { 
-              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-            }
-            break;
-          case 7: // MODULE_LOAD_CMD
-            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
-              struct.moduleLoadCmd = iprot.readString();
-              struct.setModuleLoadCmdIsSet(true);
-            } else { 
-              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-            }
-            break;
-          case 8: // LIB_PREPEND_PATHS
-            if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
-              {
-                org.apache.thrift.protocol.TList _list0 = iprot.readListBegin();
-                struct.libPrependPaths = new ArrayList<SetEnvPaths>(_list0.size);
-                for (int _i1 = 0; _i1 < _list0.size; ++_i1)
-                {
-                  SetEnvPaths _elem2;
-                  _elem2 = new SetEnvPaths();
-                  _elem2.read(iprot);
-                  struct.libPrependPaths.add(_elem2);
-                }
-                iprot.readListEnd();
-              }
-              struct.setLibPrependPathsIsSet(true);
-            } else { 
-              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-            }
-            break;
-          case 9: // LIB_APPEND_PATHS
-            if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
-              {
-                org.apache.thrift.protocol.TList _list3 = iprot.readListBegin();
-                struct.libAppendPaths = new ArrayList<SetEnvPaths>(_list3.size);
-                for (int _i4 = 0; _i4 < _list3.size; ++_i4)
-                {
-                  SetEnvPaths _elem5;
-                  _elem5 = new SetEnvPaths();
-                  _elem5.read(iprot);
-                  struct.libAppendPaths.add(_elem5);
-                }
-                iprot.readListEnd();
-              }
-              struct.setLibAppendPathsIsSet(true);
-            } else { 
-              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-            }
-            break;
-          case 10: // SET_ENVIRONMENT
-            if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
-              {
-                org.apache.thrift.protocol.TList _list6 = iprot.readListBegin();
-                struct.setEnvironment = new ArrayList<SetEnvPaths>(_list6.size);
-                for (int _i7 = 0; _i7 < _list6.size; ++_i7)
-                {
-                  SetEnvPaths _elem8;
-                  _elem8 = new SetEnvPaths();
-                  _elem8.read(iprot);
-                  struct.setEnvironment.add(_elem8);
-                }
-                iprot.readListEnd();
-              }
-              struct.setSetEnvironmentIsSet(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();
-      struct.validate();
-    }
-
-    public void write(org.apache.thrift.protocol.TProtocol oprot, ApplicationDeploymentDescription struct) throws org.apache.thrift.TException {
-      struct.validate();
-
-      oprot.writeStructBegin(STRUCT_DESC);
-      oprot.writeFieldBegin(IS_EMPTY_FIELD_DESC);
-      oprot.writeBool(struct.isEmpty);
-      oprot.writeFieldEnd();
-      if (struct.appDeploymentId != null) {
-        oprot.writeFieldBegin(APP_DEPLOYMENT_ID_FIELD_DESC);
-        oprot.writeString(struct.appDeploymentId);
-        oprot.writeFieldEnd();
-      }
-      if (struct.appModuleId != null) {
-        oprot.writeFieldBegin(APP_MODULE_ID_FIELD_DESC);
-        oprot.writeString(struct.appModuleId);
-        oprot.writeFieldEnd();
-      }
-      if (struct.computeHostId != null) {
-        oprot.writeFieldBegin(COMPUTE_HOST_ID_FIELD_DESC);
-        oprot.writeString(struct.computeHostId);
-        oprot.writeFieldEnd();
-      }
-      if (struct.executablePath != null) {
-        oprot.writeFieldBegin(EXECUTABLE_PATH_FIELD_DESC);
-        oprot.writeString(struct.executablePath);
-        oprot.writeFieldEnd();
-      }
-      if (struct.appDeploymentDescription != null) {
-        if (struct.isSetAppDeploymentDescription()) {
-          oprot.writeFieldBegin(APP_DEPLOYMENT_DESCRIPTION_FIELD_DESC);
-          oprot.writeString(struct.appDeploymentDescription);
-          oprot.writeFieldEnd();
-        }
-      }
-      if (struct.moduleLoadCmd != null) {
-        if (struct.isSetModuleLoadCmd()) {
-          oprot.writeFieldBegin(MODULE_LOAD_CMD_FIELD_DESC);
-          oprot.writeString(struct.moduleLoadCmd);
-          oprot.writeFieldEnd();
-        }
-      }
-      if (struct.libPrependPaths != null) {
-        if (struct.isSetLibPrependPaths()) {
-          oprot.writeFieldBegin(LIB_PREPEND_PATHS_FIELD_DESC);
-          {
-            oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.libPrependPaths.size()));
-            for (SetEnvPaths _iter9 : struct.libPrependPaths)
-            {
-              _iter9.write(oprot);
-            }
-            oprot.writeListEnd();
-          }
-          oprot.writeFieldEnd();
-        }
-      }
-      if (struct.libAppendPaths != null) {
-        if (struct.isSetLibAppendPaths()) {
-          oprot.writeFieldBegin(LIB_APPEND_PATHS_FIELD_DESC);
-          {
-            oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.libAppendPaths.size()));
-            for (SetEnvPaths _iter10 : struct.libAppendPaths)
-            {
-              _iter10.write(oprot);
-            }
-            oprot.writeListEnd();
-          }
-          oprot.writeFieldEnd();
-        }
-      }
-      if (struct.setEnvironment != null) {
-        if (struct.isSetSetEnvironment()) {
-          oprot.writeFieldBegin(SET_ENVIRONMENT_FIELD_DESC);
-          {
-            oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.setEnvironment.size()));
-            for (SetEnvPaths _iter11 : struct.setEnvironment)
-            {
-              _iter11.write(oprot);
-            }
-            oprot.writeListEnd();
-          }
-          oprot.writeFieldEnd();
-        }
-      }
-      oprot.writeFieldStop();
-      oprot.writeStructEnd();
-    }
-
-  }
-
-  private static class ApplicationDeploymentDescriptionTupleSchemeFactory implements SchemeFactory {
-    public ApplicationDeploymentDescriptionTupleScheme getScheme() {
-      return new ApplicationDeploymentDescriptionTupleScheme();
-    }
-  }
-
-  private static class ApplicationDeploymentDescriptionTupleScheme extends TupleScheme<ApplicationDeploymentDescription> {
-
-    @Override
-    public void write(org.apache.thrift.protocol.TProtocol prot, ApplicationDeploymentDescription struct) throws org.apache.thrift.TException {
-      TTupleProtocol oprot = (TTupleProtocol) prot;
-      oprot.writeBool(struct.isEmpty);
-      oprot.writeString(struct.appDeploymentId);
-      oprot.writeString(struct.appModuleId);
-      oprot.writeString(struct.computeHostId);
-      oprot.writeString(struct.executablePath);
-      BitSet optionals = new BitSet();
-      if (struct.isSetAppDeploymentDescription()) {
-        optionals.set(0);
-      }
-      if (struct.isSetModuleLoadCmd()) {
-        optionals.set(1);
-      }
-      if (struct.isSetLibPrependPaths()) {
-        optionals.set(2);
-      }
-      if (struct.isSetLibAppendPaths()) {
-        optionals.set(3);
-      }
-      if (struct.isSetSetEnvironment()) {
-        optionals.set(4);
-      }
-      oprot.writeBitSet(optionals, 5);
-      if (struct.isSetAppDeploymentDescription()) {
-        oprot.writeString(struct.appDeploymentDescription);
-      }
-      if (struct.isSetModuleLoadCmd()) {
-        oprot.writeString(struct.moduleLoadCmd);
-      }
-      if (struct.isSetLibPrependPaths()) {
-        {
-          oprot.writeI32(struct.libPrependPaths.size());
-          for (SetEnvPaths _iter12 : struct.libPrependPaths)
-          {
-            _iter12.write(oprot);
-          }
-        }
-      }
-      if (struct.isSetLibAppendPaths()) {
-        {
-          oprot.writeI32(struct.libAppendPaths.size());
-          for (SetEnvPaths _iter13 : struct.libAppendPaths)
-          {
-            _iter13.write(oprot);
-          }
-        }
-      }
-      if (struct.isSetSetEnvironment()) {
-        {
-          oprot.writeI32(struct.setEnvironment.size());
-          for (SetEnvPaths _iter14 : struct.setEnvironment)
-          {
-            _iter14.write(oprot);
-          }
-        }
-      }
-    }
-
-    @Override
-    public void read(org.apache.thrift.protocol.TProtocol prot, ApplicationDeploymentDescription struct) throws org.apache.thrift.TException {
-      TTupleProtocol iprot = (TTupleProtocol) prot;
-      struct.isEmpty = iprot.readBool();
-      struct.setIsEmptyIsSet(true);
-      struct.appDeploymentId = iprot.readString();
-      struct.setAppDeploymentIdIsSet(true);
-      struct.appModuleId = iprot.readString();
-      struct.setAppModuleIdIsSet(true);
-      struct.computeHostId = iprot.readString();
-      struct.setComputeHostIdIsSet(true);
-      struct.executablePath = iprot.readString();
-      struct.setExecutablePathIsSet(true);
-      BitSet incoming = iprot.readBitSet(5);
-      if (incoming.get(0)) {
-        struct.appDeploymentDescription = iprot.readString();
-        struct.setAppDeploymentDescriptionIsSet(true);
-      }
-      if (incoming.get(1)) {
-        struct.moduleLoadCmd = iprot.readString();
-        struct.setModuleLoadCmdIsSet(true);
-      }
-      if (incoming.get(2)) {
-        {
-          org.apache.thrift.protocol.TList _list15 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
-          struct.libPrependPaths = new ArrayList<SetEnvPaths>(_list15.size);
-          for (int _i16 = 0; _i16 < _list15.size; ++_i16)
-          {
-            SetEnvPaths _elem17;
-            _elem17 = new SetEnvPaths();
-            _elem17.read(iprot);
-            struct.libPrependPaths.add(_elem17);
-          }
-        }
-        struct.setLibPrependPathsIsSet(true);
-      }
-      if (incoming.get(3)) {
-        {
-          org.apache.thrift.protocol.TList _list18 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
-          struct.libAppendPaths = new ArrayList<SetEnvPaths>(_list18.size);
-          for (int _i19 = 0; _i19 < _list18.size; ++_i19)
-          {
-            SetEnvPaths _elem20;
-            _elem20 = new SetEnvPaths();
-            _elem20.read(iprot);
-            struct.libAppendPaths.add(_elem20);
-          }
-        }
-        struct.setLibAppendPathsIsSet(true);
-      }
-      if (incoming.get(4)) {
-        {
-          org.apache.thrift.protocol.TList _list21 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
-          struct.setEnvironment = new ArrayList<SetEnvPaths>(_list21.size);
-          for (int _i22 = 0; _i22 < _list21.size; ++_i22)
-          {
-            SetEnvPaths _elem23;
-            _elem23 = new SetEnvPaths();
-            _elem23.read(iprot);
-            struct.setEnvironment.add(_elem23);
-          }
-        }
-        struct.setSetEnvironmentIsSet(true);
-      }
-    }
-  }
-
-}
-


[2/8] Generated data models of app catalog

Posted by sm...@apache.org.
http://git-wip-us.apache.org/repos/asf/airavata/blob/227c78db/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/deployment/SetEnvPaths.java
----------------------------------------------------------------------
diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/deployment/SetEnvPaths.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/deployment/SetEnvPaths.java
new file mode 100644
index 0000000..125a29f
--- /dev/null
+++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/deployment/SetEnvPaths.java
@@ -0,0 +1,500 @@
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+/**
+ * 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.model.application.deployment;
+
+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;
+
+/**
+ * Key Value pairs to be used to set environments
+ * 
+ * name:
+ *   Name of the environment variable such as PATH, LD_LIBRARY_PATH, NETCDF_HOME.
+ * 
+ * value:
+ *   Value of the environment variable to set
+ */
+@SuppressWarnings("all") public class SetEnvPaths implements org.apache.thrift.TBase<SetEnvPaths, SetEnvPaths._Fields>, java.io.Serializable, Cloneable, Comparable<SetEnvPaths> {
+  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("SetEnvPaths");
+
+  private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1);
+  private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("value", org.apache.thrift.protocol.TType.STRING, (short)2);
+
+  private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+  static {
+    schemes.put(StandardScheme.class, new SetEnvPathsStandardSchemeFactory());
+    schemes.put(TupleScheme.class, new SetEnvPathsTupleSchemeFactory());
+  }
+
+  private String name; // required
+  private String value; // required
+
+  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
+  @SuppressWarnings("all") public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+    NAME((short)1, "name"),
+    VALUE((short)2, "value");
+
+    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: // NAME
+          return NAME;
+        case 2: // VALUE
+          return VALUE;
+        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.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.REQUIRED, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+    tmpMap.put(_Fields.VALUE, new org.apache.thrift.meta_data.FieldMetaData("value", org.apache.thrift.TFieldRequirementType.REQUIRED, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+    metaDataMap = Collections.unmodifiableMap(tmpMap);
+    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(SetEnvPaths.class, metaDataMap);
+  }
+
+  public SetEnvPaths() {
+  }
+
+  public SetEnvPaths(
+    String name,
+    String value)
+  {
+    this();
+    this.name = name;
+    this.value = value;
+  }
+
+  /**
+   * Performs a deep copy on <i>other</i>.
+   */
+  public SetEnvPaths(SetEnvPaths other) {
+    if (other.isSetName()) {
+      this.name = other.name;
+    }
+    if (other.isSetValue()) {
+      this.value = other.value;
+    }
+  }
+
+  public SetEnvPaths deepCopy() {
+    return new SetEnvPaths(this);
+  }
+
+  @Override
+  public void clear() {
+    this.name = null;
+    this.value = null;
+  }
+
+  public String getName() {
+    return this.name;
+  }
+
+  public void setName(String name) {
+    this.name = name;
+  }
+
+  public void unsetName() {
+    this.name = null;
+  }
+
+  /** Returns true if field name is set (has been assigned a value) and false otherwise */
+  public boolean isSetName() {
+    return this.name != null;
+  }
+
+  public void setNameIsSet(boolean value) {
+    if (!value) {
+      this.name = null;
+    }
+  }
+
+  public String getValue() {
+    return this.value;
+  }
+
+  public void setValue(String value) {
+    this.value = value;
+  }
+
+  public void unsetValue() {
+    this.value = null;
+  }
+
+  /** Returns true if field value is set (has been assigned a value) and false otherwise */
+  public boolean isSetValue() {
+    return this.value != null;
+  }
+
+  public void setValueIsSet(boolean value) {
+    if (!value) {
+      this.value = null;
+    }
+  }
+
+  public void setFieldValue(_Fields field, Object value) {
+    switch (field) {
+    case NAME:
+      if (value == null) {
+        unsetName();
+      } else {
+        setName((String)value);
+      }
+      break;
+
+    case VALUE:
+      if (value == null) {
+        unsetValue();
+      } else {
+        setValue((String)value);
+      }
+      break;
+
+    }
+  }
+
+  public Object getFieldValue(_Fields field) {
+    switch (field) {
+    case NAME:
+      return getName();
+
+    case VALUE:
+      return getValue();
+
+    }
+    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 NAME:
+      return isSetName();
+    case VALUE:
+      return isSetValue();
+    }
+    throw new IllegalStateException();
+  }
+
+  @Override
+  public boolean equals(Object that) {
+    if (that == null)
+      return false;
+    if (that instanceof SetEnvPaths)
+      return this.equals((SetEnvPaths)that);
+    return false;
+  }
+
+  public boolean equals(SetEnvPaths that) {
+    if (that == null)
+      return false;
+
+    boolean this_present_name = true && this.isSetName();
+    boolean that_present_name = true && that.isSetName();
+    if (this_present_name || that_present_name) {
+      if (!(this_present_name && that_present_name))
+        return false;
+      if (!this.name.equals(that.name))
+        return false;
+    }
+
+    boolean this_present_value = true && this.isSetValue();
+    boolean that_present_value = true && that.isSetValue();
+    if (this_present_value || that_present_value) {
+      if (!(this_present_value && that_present_value))
+        return false;
+      if (!this.value.equals(that.value))
+        return false;
+    }
+
+    return true;
+  }
+
+  @Override
+  public int hashCode() {
+    return 0;
+  }
+
+  @Override
+  public int compareTo(SetEnvPaths other) {
+    if (!getClass().equals(other.getClass())) {
+      return getClass().getName().compareTo(other.getClass().getName());
+    }
+
+    int lastComparison = 0;
+
+    lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetName()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetValue()).compareTo(other.isSetValue());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetValue()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, other.value);
+      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("SetEnvPaths(");
+    boolean first = true;
+
+    sb.append("name:");
+    if (this.name == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.name);
+    }
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("value:");
+    if (this.value == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.value);
+    }
+    first = false;
+    sb.append(")");
+    return sb.toString();
+  }
+
+  public void validate() throws org.apache.thrift.TException {
+    // check for required fields
+    if (!isSetName()) {
+      throw new org.apache.thrift.protocol.TProtocolException("Required field 'name' is unset! Struct:" + toString());
+    }
+
+    if (!isSetValue()) {
+      throw new org.apache.thrift.protocol.TProtocolException("Required field 'value' is unset! Struct:" + toString());
+    }
+
+    // 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 {
+      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 SetEnvPathsStandardSchemeFactory implements SchemeFactory {
+    public SetEnvPathsStandardScheme getScheme() {
+      return new SetEnvPathsStandardScheme();
+    }
+  }
+
+  private static class SetEnvPathsStandardScheme extends StandardScheme<SetEnvPaths> {
+
+    public void read(org.apache.thrift.protocol.TProtocol iprot, SetEnvPaths 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: // NAME
+            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+              struct.name = iprot.readString();
+              struct.setNameIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 2: // VALUE
+            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+              struct.value = iprot.readString();
+              struct.setValueIsSet(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();
+      struct.validate();
+    }
+
+    public void write(org.apache.thrift.protocol.TProtocol oprot, SetEnvPaths struct) throws org.apache.thrift.TException {
+      struct.validate();
+
+      oprot.writeStructBegin(STRUCT_DESC);
+      if (struct.name != null) {
+        oprot.writeFieldBegin(NAME_FIELD_DESC);
+        oprot.writeString(struct.name);
+        oprot.writeFieldEnd();
+      }
+      if (struct.value != null) {
+        oprot.writeFieldBegin(VALUE_FIELD_DESC);
+        oprot.writeString(struct.value);
+        oprot.writeFieldEnd();
+      }
+      oprot.writeFieldStop();
+      oprot.writeStructEnd();
+    }
+
+  }
+
+  private static class SetEnvPathsTupleSchemeFactory implements SchemeFactory {
+    public SetEnvPathsTupleScheme getScheme() {
+      return new SetEnvPathsTupleScheme();
+    }
+  }
+
+  private static class SetEnvPathsTupleScheme extends TupleScheme<SetEnvPaths> {
+
+    @Override
+    public void write(org.apache.thrift.protocol.TProtocol prot, SetEnvPaths struct) throws org.apache.thrift.TException {
+      TTupleProtocol oprot = (TTupleProtocol) prot;
+      oprot.writeString(struct.name);
+      oprot.writeString(struct.value);
+    }
+
+    @Override
+    public void read(org.apache.thrift.protocol.TProtocol prot, SetEnvPaths struct) throws org.apache.thrift.TException {
+      TTupleProtocol iprot = (TTupleProtocol) prot;
+      struct.name = iprot.readString();
+      struct.setNameIsSet(true);
+      struct.value = iprot.readString();
+      struct.setValueIsSet(true);
+    }
+  }
+
+}
+

http://git-wip-us.apache.org/repos/asf/airavata/blob/227c78db/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/deployment/applicationDeploymentModelConstants.java
----------------------------------------------------------------------
diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/deployment/applicationDeploymentModelConstants.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/deployment/applicationDeploymentModelConstants.java
new file mode 100644
index 0000000..14f1193
--- /dev/null
+++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/deployment/applicationDeploymentModelConstants.java
@@ -0,0 +1,55 @@
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+/**
+ * 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.model.application.deployment;
+
+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;
+
+@SuppressWarnings("all") public class applicationDeploymentModelConstants {
+
+  public static final String DEFAULT_ID = "DO_NOT_SET_AT_CLIENTS";
+
+}

http://git-wip-us.apache.org/repos/asf/airavata/blob/227c78db/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/interface/ApplicationInterfaceDescription.java
----------------------------------------------------------------------
diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/interface/ApplicationInterfaceDescription.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/interface/ApplicationInterfaceDescription.java
new file mode 100644
index 0000000..4ebba2b
--- /dev/null
+++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/interface/ApplicationInterfaceDescription.java
@@ -0,0 +1,1063 @@
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+/**
+ * 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.model.application.interface;
+
+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;
+
+/**
+ * Application Interface Description
+ * 
+ * 
+ * appDeploymentId:
+ *   Corelated the interface to a particular application deployment
+ * 
+ * 
+ */
+@SuppressWarnings("all") public class ApplicationInterfaceDescription implements org.apache.thrift.TBase<ApplicationInterfaceDescription, ApplicationInterfaceDescription._Fields>, java.io.Serializable, Cloneable, Comparable<ApplicationInterfaceDescription> {
+  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ApplicationInterfaceDescription");
+
+  private static final org.apache.thrift.protocol.TField IS_EMPTY_FIELD_DESC = new org.apache.thrift.protocol.TField("isEmpty", org.apache.thrift.protocol.TType.BOOL, (short)1);
+  private static final org.apache.thrift.protocol.TField APPLICATION_INTERFACE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("applicationInterfaceId", org.apache.thrift.protocol.TType.STRING, (short)2);
+  private static final org.apache.thrift.protocol.TField APPLICATION_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("applicationName", org.apache.thrift.protocol.TType.STRING, (short)3);
+  private static final org.apache.thrift.protocol.TField APPLICATION_MODULES_FIELD_DESC = new org.apache.thrift.protocol.TField("applicationModules", org.apache.thrift.protocol.TType.LIST, (short)4);
+  private static final org.apache.thrift.protocol.TField APPLICATION_INPUTS_FIELD_DESC = new org.apache.thrift.protocol.TField("applicationInputs", org.apache.thrift.protocol.TType.LIST, (short)5);
+  private static final org.apache.thrift.protocol.TField APPLICATION_OUTPUTS_FIELD_DESC = new org.apache.thrift.protocol.TField("applicationOutputs", org.apache.thrift.protocol.TType.LIST, (short)6);
+
+  private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+  static {
+    schemes.put(StandardScheme.class, new ApplicationInterfaceDescriptionStandardSchemeFactory());
+    schemes.put(TupleScheme.class, new ApplicationInterfaceDescriptionTupleSchemeFactory());
+  }
+
+  private boolean isEmpty; // required
+  private String applicationInterfaceId; // required
+  private String applicationName; // required
+  private List<String> applicationModules; // optional
+  private List<InputDataObjectType> applicationInputs; // optional
+  private List<OutputDataObjectType> applicationOutputs; // optional
+
+  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
+  @SuppressWarnings("all") public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+    IS_EMPTY((short)1, "isEmpty"),
+    APPLICATION_INTERFACE_ID((short)2, "applicationInterfaceId"),
+    APPLICATION_NAME((short)3, "applicationName"),
+    APPLICATION_MODULES((short)4, "applicationModules"),
+    APPLICATION_INPUTS((short)5, "applicationInputs"),
+    APPLICATION_OUTPUTS((short)6, "applicationOutputs");
+
+    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: // IS_EMPTY
+          return IS_EMPTY;
+        case 2: // APPLICATION_INTERFACE_ID
+          return APPLICATION_INTERFACE_ID;
+        case 3: // APPLICATION_NAME
+          return APPLICATION_NAME;
+        case 4: // APPLICATION_MODULES
+          return APPLICATION_MODULES;
+        case 5: // APPLICATION_INPUTS
+          return APPLICATION_INPUTS;
+        case 6: // APPLICATION_OUTPUTS
+          return APPLICATION_OUTPUTS;
+        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 __ISEMPTY_ISSET_ID = 0;
+  private byte __isset_bitfield = 0;
+  private _Fields optionals[] = {_Fields.APPLICATION_MODULES,_Fields.APPLICATION_INPUTS,_Fields.APPLICATION_OUTPUTS};
+  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.IS_EMPTY, new org.apache.thrift.meta_data.FieldMetaData("isEmpty", org.apache.thrift.TFieldRequirementType.REQUIRED, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
+    tmpMap.put(_Fields.APPLICATION_INTERFACE_ID, new org.apache.thrift.meta_data.FieldMetaData("applicationInterfaceId", org.apache.thrift.TFieldRequirementType.REQUIRED, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+    tmpMap.put(_Fields.APPLICATION_NAME, new org.apache.thrift.meta_data.FieldMetaData("applicationName", org.apache.thrift.TFieldRequirementType.REQUIRED, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+    tmpMap.put(_Fields.APPLICATION_MODULES, new org.apache.thrift.meta_data.FieldMetaData("applicationModules", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
+        new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
+            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
+    tmpMap.put(_Fields.APPLICATION_INPUTS, new org.apache.thrift.meta_data.FieldMetaData("applicationInputs", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
+        new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
+            new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InputDataObjectType.class))));
+    tmpMap.put(_Fields.APPLICATION_OUTPUTS, new org.apache.thrift.meta_data.FieldMetaData("applicationOutputs", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
+        new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
+            new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, OutputDataObjectType.class))));
+    metaDataMap = Collections.unmodifiableMap(tmpMap);
+    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(ApplicationInterfaceDescription.class, metaDataMap);
+  }
+
+  public ApplicationInterfaceDescription() {
+    this.isEmpty = false;
+
+    this.applicationInterfaceId = "DO_NOT_SET_AT_CLIENTS";
+
+  }
+
+  public ApplicationInterfaceDescription(
+    boolean isEmpty,
+    String applicationInterfaceId,
+    String applicationName)
+  {
+    this();
+    this.isEmpty = isEmpty;
+    setIsEmptyIsSet(true);
+    this.applicationInterfaceId = applicationInterfaceId;
+    this.applicationName = applicationName;
+  }
+
+  /**
+   * Performs a deep copy on <i>other</i>.
+   */
+  public ApplicationInterfaceDescription(ApplicationInterfaceDescription other) {
+    __isset_bitfield = other.__isset_bitfield;
+    this.isEmpty = other.isEmpty;
+    if (other.isSetApplicationInterfaceId()) {
+      this.applicationInterfaceId = other.applicationInterfaceId;
+    }
+    if (other.isSetApplicationName()) {
+      this.applicationName = other.applicationName;
+    }
+    if (other.isSetApplicationModules()) {
+      List<String> __this__applicationModules = new ArrayList<String>(other.applicationModules);
+      this.applicationModules = __this__applicationModules;
+    }
+    if (other.isSetApplicationInputs()) {
+      List<InputDataObjectType> __this__applicationInputs = new ArrayList<InputDataObjectType>(other.applicationInputs.size());
+      for (InputDataObjectType other_element : other.applicationInputs) {
+        __this__applicationInputs.add(new InputDataObjectType(other_element));
+      }
+      this.applicationInputs = __this__applicationInputs;
+    }
+    if (other.isSetApplicationOutputs()) {
+      List<OutputDataObjectType> __this__applicationOutputs = new ArrayList<OutputDataObjectType>(other.applicationOutputs.size());
+      for (OutputDataObjectType other_element : other.applicationOutputs) {
+        __this__applicationOutputs.add(new OutputDataObjectType(other_element));
+      }
+      this.applicationOutputs = __this__applicationOutputs;
+    }
+  }
+
+  public ApplicationInterfaceDescription deepCopy() {
+    return new ApplicationInterfaceDescription(this);
+  }
+
+  @Override
+  public void clear() {
+    this.isEmpty = false;
+
+    this.applicationInterfaceId = "DO_NOT_SET_AT_CLIENTS";
+
+    this.applicationName = null;
+    this.applicationModules = null;
+    this.applicationInputs = null;
+    this.applicationOutputs = null;
+  }
+
+  public boolean isIsEmpty() {
+    return this.isEmpty;
+  }
+
+  public void setIsEmpty(boolean isEmpty) {
+    this.isEmpty = isEmpty;
+    setIsEmptyIsSet(true);
+  }
+
+  public void unsetIsEmpty() {
+    __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ISEMPTY_ISSET_ID);
+  }
+
+  /** Returns true if field isEmpty is set (has been assigned a value) and false otherwise */
+  public boolean isSetIsEmpty() {
+    return EncodingUtils.testBit(__isset_bitfield, __ISEMPTY_ISSET_ID);
+  }
+
+  public void setIsEmptyIsSet(boolean value) {
+    __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ISEMPTY_ISSET_ID, value);
+  }
+
+  public String getApplicationInterfaceId() {
+    return this.applicationInterfaceId;
+  }
+
+  public void setApplicationInterfaceId(String applicationInterfaceId) {
+    this.applicationInterfaceId = applicationInterfaceId;
+  }
+
+  public void unsetApplicationInterfaceId() {
+    this.applicationInterfaceId = null;
+  }
+
+  /** Returns true if field applicationInterfaceId is set (has been assigned a value) and false otherwise */
+  public boolean isSetApplicationInterfaceId() {
+    return this.applicationInterfaceId != null;
+  }
+
+  public void setApplicationInterfaceIdIsSet(boolean value) {
+    if (!value) {
+      this.applicationInterfaceId = null;
+    }
+  }
+
+  public String getApplicationName() {
+    return this.applicationName;
+  }
+
+  public void setApplicationName(String applicationName) {
+    this.applicationName = applicationName;
+  }
+
+  public void unsetApplicationName() {
+    this.applicationName = null;
+  }
+
+  /** Returns true if field applicationName is set (has been assigned a value) and false otherwise */
+  public boolean isSetApplicationName() {
+    return this.applicationName != null;
+  }
+
+  public void setApplicationNameIsSet(boolean value) {
+    if (!value) {
+      this.applicationName = null;
+    }
+  }
+
+  public int getApplicationModulesSize() {
+    return (this.applicationModules == null) ? 0 : this.applicationModules.size();
+  }
+
+  public java.util.Iterator<String> getApplicationModulesIterator() {
+    return (this.applicationModules == null) ? null : this.applicationModules.iterator();
+  }
+
+  public void addToApplicationModules(String elem) {
+    if (this.applicationModules == null) {
+      this.applicationModules = new ArrayList<String>();
+    }
+    this.applicationModules.add(elem);
+  }
+
+  public List<String> getApplicationModules() {
+    return this.applicationModules;
+  }
+
+  public void setApplicationModules(List<String> applicationModules) {
+    this.applicationModules = applicationModules;
+  }
+
+  public void unsetApplicationModules() {
+    this.applicationModules = null;
+  }
+
+  /** Returns true if field applicationModules is set (has been assigned a value) and false otherwise */
+  public boolean isSetApplicationModules() {
+    return this.applicationModules != null;
+  }
+
+  public void setApplicationModulesIsSet(boolean value) {
+    if (!value) {
+      this.applicationModules = null;
+    }
+  }
+
+  public int getApplicationInputsSize() {
+    return (this.applicationInputs == null) ? 0 : this.applicationInputs.size();
+  }
+
+  public java.util.Iterator<InputDataObjectType> getApplicationInputsIterator() {
+    return (this.applicationInputs == null) ? null : this.applicationInputs.iterator();
+  }
+
+  public void addToApplicationInputs(InputDataObjectType elem) {
+    if (this.applicationInputs == null) {
+      this.applicationInputs = new ArrayList<InputDataObjectType>();
+    }
+    this.applicationInputs.add(elem);
+  }
+
+  public List<InputDataObjectType> getApplicationInputs() {
+    return this.applicationInputs;
+  }
+
+  public void setApplicationInputs(List<InputDataObjectType> applicationInputs) {
+    this.applicationInputs = applicationInputs;
+  }
+
+  public void unsetApplicationInputs() {
+    this.applicationInputs = null;
+  }
+
+  /** Returns true if field applicationInputs is set (has been assigned a value) and false otherwise */
+  public boolean isSetApplicationInputs() {
+    return this.applicationInputs != null;
+  }
+
+  public void setApplicationInputsIsSet(boolean value) {
+    if (!value) {
+      this.applicationInputs = null;
+    }
+  }
+
+  public int getApplicationOutputsSize() {
+    return (this.applicationOutputs == null) ? 0 : this.applicationOutputs.size();
+  }
+
+  public java.util.Iterator<OutputDataObjectType> getApplicationOutputsIterator() {
+    return (this.applicationOutputs == null) ? null : this.applicationOutputs.iterator();
+  }
+
+  public void addToApplicationOutputs(OutputDataObjectType elem) {
+    if (this.applicationOutputs == null) {
+      this.applicationOutputs = new ArrayList<OutputDataObjectType>();
+    }
+    this.applicationOutputs.add(elem);
+  }
+
+  public List<OutputDataObjectType> getApplicationOutputs() {
+    return this.applicationOutputs;
+  }
+
+  public void setApplicationOutputs(List<OutputDataObjectType> applicationOutputs) {
+    this.applicationOutputs = applicationOutputs;
+  }
+
+  public void unsetApplicationOutputs() {
+    this.applicationOutputs = null;
+  }
+
+  /** Returns true if field applicationOutputs is set (has been assigned a value) and false otherwise */
+  public boolean isSetApplicationOutputs() {
+    return this.applicationOutputs != null;
+  }
+
+  public void setApplicationOutputsIsSet(boolean value) {
+    if (!value) {
+      this.applicationOutputs = null;
+    }
+  }
+
+  public void setFieldValue(_Fields field, Object value) {
+    switch (field) {
+    case IS_EMPTY:
+      if (value == null) {
+        unsetIsEmpty();
+      } else {
+        setIsEmpty((Boolean)value);
+      }
+      break;
+
+    case APPLICATION_INTERFACE_ID:
+      if (value == null) {
+        unsetApplicationInterfaceId();
+      } else {
+        setApplicationInterfaceId((String)value);
+      }
+      break;
+
+    case APPLICATION_NAME:
+      if (value == null) {
+        unsetApplicationName();
+      } else {
+        setApplicationName((String)value);
+      }
+      break;
+
+    case APPLICATION_MODULES:
+      if (value == null) {
+        unsetApplicationModules();
+      } else {
+        setApplicationModules((List<String>)value);
+      }
+      break;
+
+    case APPLICATION_INPUTS:
+      if (value == null) {
+        unsetApplicationInputs();
+      } else {
+        setApplicationInputs((List<InputDataObjectType>)value);
+      }
+      break;
+
+    case APPLICATION_OUTPUTS:
+      if (value == null) {
+        unsetApplicationOutputs();
+      } else {
+        setApplicationOutputs((List<OutputDataObjectType>)value);
+      }
+      break;
+
+    }
+  }
+
+  public Object getFieldValue(_Fields field) {
+    switch (field) {
+    case IS_EMPTY:
+      return Boolean.valueOf(isIsEmpty());
+
+    case APPLICATION_INTERFACE_ID:
+      return getApplicationInterfaceId();
+
+    case APPLICATION_NAME:
+      return getApplicationName();
+
+    case APPLICATION_MODULES:
+      return getApplicationModules();
+
+    case APPLICATION_INPUTS:
+      return getApplicationInputs();
+
+    case APPLICATION_OUTPUTS:
+      return getApplicationOutputs();
+
+    }
+    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 IS_EMPTY:
+      return isSetIsEmpty();
+    case APPLICATION_INTERFACE_ID:
+      return isSetApplicationInterfaceId();
+    case APPLICATION_NAME:
+      return isSetApplicationName();
+    case APPLICATION_MODULES:
+      return isSetApplicationModules();
+    case APPLICATION_INPUTS:
+      return isSetApplicationInputs();
+    case APPLICATION_OUTPUTS:
+      return isSetApplicationOutputs();
+    }
+    throw new IllegalStateException();
+  }
+
+  @Override
+  public boolean equals(Object that) {
+    if (that == null)
+      return false;
+    if (that instanceof ApplicationInterfaceDescription)
+      return this.equals((ApplicationInterfaceDescription)that);
+    return false;
+  }
+
+  public boolean equals(ApplicationInterfaceDescription that) {
+    if (that == null)
+      return false;
+
+    boolean this_present_isEmpty = true;
+    boolean that_present_isEmpty = true;
+    if (this_present_isEmpty || that_present_isEmpty) {
+      if (!(this_present_isEmpty && that_present_isEmpty))
+        return false;
+      if (this.isEmpty != that.isEmpty)
+        return false;
+    }
+
+    boolean this_present_applicationInterfaceId = true && this.isSetApplicationInterfaceId();
+    boolean that_present_applicationInterfaceId = true && that.isSetApplicationInterfaceId();
+    if (this_present_applicationInterfaceId || that_present_applicationInterfaceId) {
+      if (!(this_present_applicationInterfaceId && that_present_applicationInterfaceId))
+        return false;
+      if (!this.applicationInterfaceId.equals(that.applicationInterfaceId))
+        return false;
+    }
+
+    boolean this_present_applicationName = true && this.isSetApplicationName();
+    boolean that_present_applicationName = true && that.isSetApplicationName();
+    if (this_present_applicationName || that_present_applicationName) {
+      if (!(this_present_applicationName && that_present_applicationName))
+        return false;
+      if (!this.applicationName.equals(that.applicationName))
+        return false;
+    }
+
+    boolean this_present_applicationModules = true && this.isSetApplicationModules();
+    boolean that_present_applicationModules = true && that.isSetApplicationModules();
+    if (this_present_applicationModules || that_present_applicationModules) {
+      if (!(this_present_applicationModules && that_present_applicationModules))
+        return false;
+      if (!this.applicationModules.equals(that.applicationModules))
+        return false;
+    }
+
+    boolean this_present_applicationInputs = true && this.isSetApplicationInputs();
+    boolean that_present_applicationInputs = true && that.isSetApplicationInputs();
+    if (this_present_applicationInputs || that_present_applicationInputs) {
+      if (!(this_present_applicationInputs && that_present_applicationInputs))
+        return false;
+      if (!this.applicationInputs.equals(that.applicationInputs))
+        return false;
+    }
+
+    boolean this_present_applicationOutputs = true && this.isSetApplicationOutputs();
+    boolean that_present_applicationOutputs = true && that.isSetApplicationOutputs();
+    if (this_present_applicationOutputs || that_present_applicationOutputs) {
+      if (!(this_present_applicationOutputs && that_present_applicationOutputs))
+        return false;
+      if (!this.applicationOutputs.equals(that.applicationOutputs))
+        return false;
+    }
+
+    return true;
+  }
+
+  @Override
+  public int hashCode() {
+    return 0;
+  }
+
+  @Override
+  public int compareTo(ApplicationInterfaceDescription other) {
+    if (!getClass().equals(other.getClass())) {
+      return getClass().getName().compareTo(other.getClass().getName());
+    }
+
+    int lastComparison = 0;
+
+    lastComparison = Boolean.valueOf(isSetIsEmpty()).compareTo(other.isSetIsEmpty());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetIsEmpty()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isEmpty, other.isEmpty);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetApplicationInterfaceId()).compareTo(other.isSetApplicationInterfaceId());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetApplicationInterfaceId()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.applicationInterfaceId, other.applicationInterfaceId);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetApplicationName()).compareTo(other.isSetApplicationName());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetApplicationName()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.applicationName, other.applicationName);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetApplicationModules()).compareTo(other.isSetApplicationModules());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetApplicationModules()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.applicationModules, other.applicationModules);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetApplicationInputs()).compareTo(other.isSetApplicationInputs());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetApplicationInputs()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.applicationInputs, other.applicationInputs);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetApplicationOutputs()).compareTo(other.isSetApplicationOutputs());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetApplicationOutputs()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.applicationOutputs, other.applicationOutputs);
+      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("ApplicationInterfaceDescription(");
+    boolean first = true;
+
+    sb.append("isEmpty:");
+    sb.append(this.isEmpty);
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("applicationInterfaceId:");
+    if (this.applicationInterfaceId == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.applicationInterfaceId);
+    }
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("applicationName:");
+    if (this.applicationName == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.applicationName);
+    }
+    first = false;
+    if (isSetApplicationModules()) {
+      if (!first) sb.append(", ");
+      sb.append("applicationModules:");
+      if (this.applicationModules == null) {
+        sb.append("null");
+      } else {
+        sb.append(this.applicationModules);
+      }
+      first = false;
+    }
+    if (isSetApplicationInputs()) {
+      if (!first) sb.append(", ");
+      sb.append("applicationInputs:");
+      if (this.applicationInputs == null) {
+        sb.append("null");
+      } else {
+        sb.append(this.applicationInputs);
+      }
+      first = false;
+    }
+    if (isSetApplicationOutputs()) {
+      if (!first) sb.append(", ");
+      sb.append("applicationOutputs:");
+      if (this.applicationOutputs == null) {
+        sb.append("null");
+      } else {
+        sb.append(this.applicationOutputs);
+      }
+      first = false;
+    }
+    sb.append(")");
+    return sb.toString();
+  }
+
+  public void validate() throws org.apache.thrift.TException {
+    // check for required fields
+    if (!isSetIsEmpty()) {
+      throw new org.apache.thrift.protocol.TProtocolException("Required field 'isEmpty' is unset! Struct:" + toString());
+    }
+
+    if (!isSetApplicationInterfaceId()) {
+      throw new org.apache.thrift.protocol.TProtocolException("Required field 'applicationInterfaceId' is unset! Struct:" + toString());
+    }
+
+    if (!isSetApplicationName()) {
+      throw new org.apache.thrift.protocol.TProtocolException("Required field 'applicationName' is unset! Struct:" + toString());
+    }
+
+    // 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 ApplicationInterfaceDescriptionStandardSchemeFactory implements SchemeFactory {
+    public ApplicationInterfaceDescriptionStandardScheme getScheme() {
+      return new ApplicationInterfaceDescriptionStandardScheme();
+    }
+  }
+
+  private static class ApplicationInterfaceDescriptionStandardScheme extends StandardScheme<ApplicationInterfaceDescription> {
+
+    public void read(org.apache.thrift.protocol.TProtocol iprot, ApplicationInterfaceDescription 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: // IS_EMPTY
+            if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
+              struct.isEmpty = iprot.readBool();
+              struct.setIsEmptyIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 2: // APPLICATION_INTERFACE_ID
+            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+              struct.applicationInterfaceId = iprot.readString();
+              struct.setApplicationInterfaceIdIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 3: // APPLICATION_NAME
+            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+              struct.applicationName = iprot.readString();
+              struct.setApplicationNameIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 4: // APPLICATION_MODULES
+            if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
+              {
+                org.apache.thrift.protocol.TList _list0 = iprot.readListBegin();
+                struct.applicationModules = new ArrayList<String>(_list0.size);
+                for (int _i1 = 0; _i1 < _list0.size; ++_i1)
+                {
+                  String _elem2;
+                  _elem2 = iprot.readString();
+                  struct.applicationModules.add(_elem2);
+                }
+                iprot.readListEnd();
+              }
+              struct.setApplicationModulesIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 5: // APPLICATION_INPUTS
+            if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
+              {
+                org.apache.thrift.protocol.TList _list3 = iprot.readListBegin();
+                struct.applicationInputs = new ArrayList<InputDataObjectType>(_list3.size);
+                for (int _i4 = 0; _i4 < _list3.size; ++_i4)
+                {
+                  InputDataObjectType _elem5;
+                  _elem5 = new InputDataObjectType();
+                  _elem5.read(iprot);
+                  struct.applicationInputs.add(_elem5);
+                }
+                iprot.readListEnd();
+              }
+              struct.setApplicationInputsIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 6: // APPLICATION_OUTPUTS
+            if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
+              {
+                org.apache.thrift.protocol.TList _list6 = iprot.readListBegin();
+                struct.applicationOutputs = new ArrayList<OutputDataObjectType>(_list6.size);
+                for (int _i7 = 0; _i7 < _list6.size; ++_i7)
+                {
+                  OutputDataObjectType _elem8;
+                  _elem8 = new OutputDataObjectType();
+                  _elem8.read(iprot);
+                  struct.applicationOutputs.add(_elem8);
+                }
+                iprot.readListEnd();
+              }
+              struct.setApplicationOutputsIsSet(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();
+      struct.validate();
+    }
+
+    public void write(org.apache.thrift.protocol.TProtocol oprot, ApplicationInterfaceDescription struct) throws org.apache.thrift.TException {
+      struct.validate();
+
+      oprot.writeStructBegin(STRUCT_DESC);
+      oprot.writeFieldBegin(IS_EMPTY_FIELD_DESC);
+      oprot.writeBool(struct.isEmpty);
+      oprot.writeFieldEnd();
+      if (struct.applicationInterfaceId != null) {
+        oprot.writeFieldBegin(APPLICATION_INTERFACE_ID_FIELD_DESC);
+        oprot.writeString(struct.applicationInterfaceId);
+        oprot.writeFieldEnd();
+      }
+      if (struct.applicationName != null) {
+        oprot.writeFieldBegin(APPLICATION_NAME_FIELD_DESC);
+        oprot.writeString(struct.applicationName);
+        oprot.writeFieldEnd();
+      }
+      if (struct.applicationModules != null) {
+        if (struct.isSetApplicationModules()) {
+          oprot.writeFieldBegin(APPLICATION_MODULES_FIELD_DESC);
+          {
+            oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.applicationModules.size()));
+            for (String _iter9 : struct.applicationModules)
+            {
+              oprot.writeString(_iter9);
+            }
+            oprot.writeListEnd();
+          }
+          oprot.writeFieldEnd();
+        }
+      }
+      if (struct.applicationInputs != null) {
+        if (struct.isSetApplicationInputs()) {
+          oprot.writeFieldBegin(APPLICATION_INPUTS_FIELD_DESC);
+          {
+            oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.applicationInputs.size()));
+            for (InputDataObjectType _iter10 : struct.applicationInputs)
+            {
+              _iter10.write(oprot);
+            }
+            oprot.writeListEnd();
+          }
+          oprot.writeFieldEnd();
+        }
+      }
+      if (struct.applicationOutputs != null) {
+        if (struct.isSetApplicationOutputs()) {
+          oprot.writeFieldBegin(APPLICATION_OUTPUTS_FIELD_DESC);
+          {
+            oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.applicationOutputs.size()));
+            for (OutputDataObjectType _iter11 : struct.applicationOutputs)
+            {
+              _iter11.write(oprot);
+            }
+            oprot.writeListEnd();
+          }
+          oprot.writeFieldEnd();
+        }
+      }
+      oprot.writeFieldStop();
+      oprot.writeStructEnd();
+    }
+
+  }
+
+  private static class ApplicationInterfaceDescriptionTupleSchemeFactory implements SchemeFactory {
+    public ApplicationInterfaceDescriptionTupleScheme getScheme() {
+      return new ApplicationInterfaceDescriptionTupleScheme();
+    }
+  }
+
+  private static class ApplicationInterfaceDescriptionTupleScheme extends TupleScheme<ApplicationInterfaceDescription> {
+
+    @Override
+    public void write(org.apache.thrift.protocol.TProtocol prot, ApplicationInterfaceDescription struct) throws org.apache.thrift.TException {
+      TTupleProtocol oprot = (TTupleProtocol) prot;
+      oprot.writeBool(struct.isEmpty);
+      oprot.writeString(struct.applicationInterfaceId);
+      oprot.writeString(struct.applicationName);
+      BitSet optionals = new BitSet();
+      if (struct.isSetApplicationModules()) {
+        optionals.set(0);
+      }
+      if (struct.isSetApplicationInputs()) {
+        optionals.set(1);
+      }
+      if (struct.isSetApplicationOutputs()) {
+        optionals.set(2);
+      }
+      oprot.writeBitSet(optionals, 3);
+      if (struct.isSetApplicationModules()) {
+        {
+          oprot.writeI32(struct.applicationModules.size());
+          for (String _iter12 : struct.applicationModules)
+          {
+            oprot.writeString(_iter12);
+          }
+        }
+      }
+      if (struct.isSetApplicationInputs()) {
+        {
+          oprot.writeI32(struct.applicationInputs.size());
+          for (InputDataObjectType _iter13 : struct.applicationInputs)
+          {
+            _iter13.write(oprot);
+          }
+        }
+      }
+      if (struct.isSetApplicationOutputs()) {
+        {
+          oprot.writeI32(struct.applicationOutputs.size());
+          for (OutputDataObjectType _iter14 : struct.applicationOutputs)
+          {
+            _iter14.write(oprot);
+          }
+        }
+      }
+    }
+
+    @Override
+    public void read(org.apache.thrift.protocol.TProtocol prot, ApplicationInterfaceDescription struct) throws org.apache.thrift.TException {
+      TTupleProtocol iprot = (TTupleProtocol) prot;
+      struct.isEmpty = iprot.readBool();
+      struct.setIsEmptyIsSet(true);
+      struct.applicationInterfaceId = iprot.readString();
+      struct.setApplicationInterfaceIdIsSet(true);
+      struct.applicationName = iprot.readString();
+      struct.setApplicationNameIsSet(true);
+      BitSet incoming = iprot.readBitSet(3);
+      if (incoming.get(0)) {
+        {
+          org.apache.thrift.protocol.TList _list15 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
+          struct.applicationModules = new ArrayList<String>(_list15.size);
+          for (int _i16 = 0; _i16 < _list15.size; ++_i16)
+          {
+            String _elem17;
+            _elem17 = iprot.readString();
+            struct.applicationModules.add(_elem17);
+          }
+        }
+        struct.setApplicationModulesIsSet(true);
+      }
+      if (incoming.get(1)) {
+        {
+          org.apache.thrift.protocol.TList _list18 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+          struct.applicationInputs = new ArrayList<InputDataObjectType>(_list18.size);
+          for (int _i19 = 0; _i19 < _list18.size; ++_i19)
+          {
+            InputDataObjectType _elem20;
+            _elem20 = new InputDataObjectType();
+            _elem20.read(iprot);
+            struct.applicationInputs.add(_elem20);
+          }
+        }
+        struct.setApplicationInputsIsSet(true);
+      }
+      if (incoming.get(2)) {
+        {
+          org.apache.thrift.protocol.TList _list21 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+          struct.applicationOutputs = new ArrayList<OutputDataObjectType>(_list21.size);
+          for (int _i22 = 0; _i22 < _list21.size; ++_i22)
+          {
+            OutputDataObjectType _elem23;
+            _elem23 = new OutputDataObjectType();
+            _elem23.read(iprot);
+            struct.applicationOutputs.add(_elem23);
+          }
+        }
+        struct.setApplicationOutputsIsSet(true);
+      }
+    }
+  }
+
+}
+

http://git-wip-us.apache.org/repos/asf/airavata/blob/227c78db/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/interface/DataType.java
----------------------------------------------------------------------
diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/interface/DataType.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/interface/DataType.java
new file mode 100644
index 0000000..4950091
--- /dev/null
+++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/interface/DataType.java
@@ -0,0 +1,71 @@
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one or more
+     * contributor license agreements.  See the NOTICE file distributed with
+     * this work for additional information regarding copyright ownership.
+     * The ASF licenses this file to You under the Apache License, Version 2.0
+     * (the "License"); you may not use this file except in compliance with
+     * the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+/**
+ * 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.model.application.interface;
+
+
+import java.util.Map;
+import java.util.HashMap;
+import org.apache.thrift.TEnum;
+
+/**
+ * Data Types supported in Airavata. The primitive data types
+ * 
+ */
+@SuppressWarnings("all") public enum DataType implements org.apache.thrift.TEnum {
+  STRING(0),
+  INTEGER(1),
+  FLOAT(2),
+  URI(3);
+
+  private final int value;
+
+  private DataType(int value) {
+    this.value = value;
+  }
+
+  /**
+   * Get the integer value of this enum value, as defined in the Thrift IDL.
+   */
+  public int getValue() {
+    return value;
+  }
+
+  /**
+   * Find a the enum type by its integer value, as defined in the Thrift IDL.
+   * @return null if the value is not found.
+   */
+  public static DataType findByValue(int value) { 
+    switch (value) {
+      case 0:
+        return STRING;
+      case 1:
+        return INTEGER;
+      case 2:
+        return FLOAT;
+      case 3:
+        return URI;
+      default:
+        return null;
+    }
+  }
+}


[6/8] updating app catalog data model namespaces

Posted by sm...@apache.org.
http://git-wip-us.apache.org/repos/asf/airavata/blob/6843720a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/interface/DataType.java
----------------------------------------------------------------------
diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/interface/DataType.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/interface/DataType.java
deleted file mode 100644
index 4950091..0000000
--- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/interface/DataType.java
+++ /dev/null
@@ -1,71 +0,0 @@
-    /*
-     * Licensed to the Apache Software Foundation (ASF) under one or more
-     * contributor license agreements.  See the NOTICE file distributed with
-     * this work for additional information regarding copyright ownership.
-     * The ASF licenses this file to You under the Apache License, Version 2.0
-     * (the "License"); you may not use this file except in compliance with
-     * the License.  You may obtain a copy of the License at
-     *
-     *     http://www.apache.org/licenses/LICENSE-2.0
-     *
-     * Unless required by applicable law or agreed to in writing, software
-     * distributed under the License is distributed on an "AS IS" BASIS,
-     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-     * See the License for the specific language governing permissions and
-     * limitations under the License.
-     */
-/**
- * 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.model.application.interface;
-
-
-import java.util.Map;
-import java.util.HashMap;
-import org.apache.thrift.TEnum;
-
-/**
- * Data Types supported in Airavata. The primitive data types
- * 
- */
-@SuppressWarnings("all") public enum DataType implements org.apache.thrift.TEnum {
-  STRING(0),
-  INTEGER(1),
-  FLOAT(2),
-  URI(3);
-
-  private final int value;
-
-  private DataType(int value) {
-    this.value = value;
-  }
-
-  /**
-   * Get the integer value of this enum value, as defined in the Thrift IDL.
-   */
-  public int getValue() {
-    return value;
-  }
-
-  /**
-   * Find a the enum type by its integer value, as defined in the Thrift IDL.
-   * @return null if the value is not found.
-   */
-  public static DataType findByValue(int value) { 
-    switch (value) {
-      case 0:
-        return STRING;
-      case 1:
-        return INTEGER;
-      case 2:
-        return FLOAT;
-      case 3:
-        return URI;
-      default:
-        return null;
-    }
-  }
-}

http://git-wip-us.apache.org/repos/asf/airavata/blob/6843720a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/interface/InputDataObjectType.java
----------------------------------------------------------------------
diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/interface/InputDataObjectType.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/interface/InputDataObjectType.java
deleted file mode 100644
index 2b81de0..0000000
--- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/interface/InputDataObjectType.java
+++ /dev/null
@@ -1,1134 +0,0 @@
-    /*
-     * Licensed to the Apache Software Foundation (ASF) under one or more
-     * contributor license agreements.  See the NOTICE file distributed with
-     * this work for additional information regarding copyright ownership.
-     * The ASF licenses this file to You under the Apache License, Version 2.0
-     * (the "License"); you may not use this file except in compliance with
-     * the License.  You may obtain a copy of the License at
-     *
-     *     http://www.apache.org/licenses/LICENSE-2.0
-     *
-     * Unless required by applicable law or agreed to in writing, software
-     * distributed under the License is distributed on an "AS IS" BASIS,
-     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-     * See the License for the specific language governing permissions and
-     * limitations under the License.
-     */
-/**
- * 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.model.application.interface;
-
-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;
-
-/**
- * Application Inputs. The paramters describe how inputs are passed to the application.
- * 
- * name:
- *   Name of the parameter.
- * 
- * value:
- *   Value of the parameter. A default value could be set during registration.
- * 
- * type:
- *   Data type of the parameter
- * 
- * applicationArguement:
- *   The argument flag sent to the application. Such as -p pressure.
- * 
- * standardInput:
- *   When this value is set, the parameter is sent as standard input rather than a parameter.
- *   Typically this is passed using redirection operator ">".
- * 
- * userFriendlyDescription:
- *   Description to be displayed at the user interface.
- * 
- * metaData:
- *   Any metadat. This is typically ignore by Airavata and is used by gateways for application configuration.
- * 
- */
-@SuppressWarnings("all") public class InputDataObjectType implements org.apache.thrift.TBase<InputDataObjectType, InputDataObjectType._Fields>, java.io.Serializable, Cloneable, Comparable<InputDataObjectType> {
-  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("InputDataObjectType");
-
-  private static final org.apache.thrift.protocol.TField IS_EMPTY_FIELD_DESC = new org.apache.thrift.protocol.TField("isEmpty", org.apache.thrift.protocol.TType.BOOL, (short)1);
-  private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)2);
-  private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("value", org.apache.thrift.protocol.TType.STRING, (short)3);
-  private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.I32, (short)4);
-  private static final org.apache.thrift.protocol.TField APPLICATION_ARGUEMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("applicationArguement", org.apache.thrift.protocol.TType.STRING, (short)5);
-  private static final org.apache.thrift.protocol.TField STANDARD_INPUT_FIELD_DESC = new org.apache.thrift.protocol.TField("standardInput", org.apache.thrift.protocol.TType.BOOL, (short)6);
-  private static final org.apache.thrift.protocol.TField USER_FRIENDLY_DESCRIPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("userFriendlyDescription", org.apache.thrift.protocol.TType.STRING, (short)7);
-  private static final org.apache.thrift.protocol.TField META_DATA_FIELD_DESC = new org.apache.thrift.protocol.TField("metaData", org.apache.thrift.protocol.TType.STRING, (short)8);
-
-  private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
-  static {
-    schemes.put(StandardScheme.class, new InputDataObjectTypeStandardSchemeFactory());
-    schemes.put(TupleScheme.class, new InputDataObjectTypeTupleSchemeFactory());
-  }
-
-  private boolean isEmpty; // required
-  private String name; // required
-  private String value; // optional
-  private DataType type; // optional
-  private String applicationArguement; // optional
-  private boolean standardInput; // optional
-  private String userFriendlyDescription; // optional
-  private String metaData; // optional
-
-  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-  @SuppressWarnings("all") public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-    IS_EMPTY((short)1, "isEmpty"),
-    NAME((short)2, "name"),
-    VALUE((short)3, "value"),
-    /**
-     * 
-     * @see DataType
-     */
-    TYPE((short)4, "type"),
-    APPLICATION_ARGUEMENT((short)5, "applicationArguement"),
-    STANDARD_INPUT((short)6, "standardInput"),
-    USER_FRIENDLY_DESCRIPTION((short)7, "userFriendlyDescription"),
-    META_DATA((short)8, "metaData");
-
-    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: // IS_EMPTY
-          return IS_EMPTY;
-        case 2: // NAME
-          return NAME;
-        case 3: // VALUE
-          return VALUE;
-        case 4: // TYPE
-          return TYPE;
-        case 5: // APPLICATION_ARGUEMENT
-          return APPLICATION_ARGUEMENT;
-        case 6: // STANDARD_INPUT
-          return STANDARD_INPUT;
-        case 7: // USER_FRIENDLY_DESCRIPTION
-          return USER_FRIENDLY_DESCRIPTION;
-        case 8: // META_DATA
-          return META_DATA;
-        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 __ISEMPTY_ISSET_ID = 0;
-  private static final int __STANDARDINPUT_ISSET_ID = 1;
-  private byte __isset_bitfield = 0;
-  private _Fields optionals[] = {_Fields.VALUE,_Fields.TYPE,_Fields.APPLICATION_ARGUEMENT,_Fields.STANDARD_INPUT,_Fields.USER_FRIENDLY_DESCRIPTION,_Fields.META_DATA};
-  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.IS_EMPTY, new org.apache.thrift.meta_data.FieldMetaData("isEmpty", org.apache.thrift.TFieldRequirementType.REQUIRED, 
-        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-    tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.REQUIRED, 
-        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-    tmpMap.put(_Fields.VALUE, new org.apache.thrift.meta_data.FieldMetaData("value", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
-        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-    tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
-        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DataType.class)));
-    tmpMap.put(_Fields.APPLICATION_ARGUEMENT, new org.apache.thrift.meta_data.FieldMetaData("applicationArguement", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
-        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-    tmpMap.put(_Fields.STANDARD_INPUT, new org.apache.thrift.meta_data.FieldMetaData("standardInput", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
-        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-    tmpMap.put(_Fields.USER_FRIENDLY_DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("userFriendlyDescription", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
-        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-    tmpMap.put(_Fields.META_DATA, new org.apache.thrift.meta_data.FieldMetaData("metaData", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
-        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-    metaDataMap = Collections.unmodifiableMap(tmpMap);
-    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(InputDataObjectType.class, metaDataMap);
-  }
-
-  public InputDataObjectType() {
-    this.isEmpty = false;
-
-    this.standardInput = false;
-
-  }
-
-  public InputDataObjectType(
-    boolean isEmpty,
-    String name)
-  {
-    this();
-    this.isEmpty = isEmpty;
-    setIsEmptyIsSet(true);
-    this.name = name;
-  }
-
-  /**
-   * Performs a deep copy on <i>other</i>.
-   */
-  public InputDataObjectType(InputDataObjectType other) {
-    __isset_bitfield = other.__isset_bitfield;
-    this.isEmpty = other.isEmpty;
-    if (other.isSetName()) {
-      this.name = other.name;
-    }
-    if (other.isSetValue()) {
-      this.value = other.value;
-    }
-    if (other.isSetType()) {
-      this.type = other.type;
-    }
-    if (other.isSetApplicationArguement()) {
-      this.applicationArguement = other.applicationArguement;
-    }
-    this.standardInput = other.standardInput;
-    if (other.isSetUserFriendlyDescription()) {
-      this.userFriendlyDescription = other.userFriendlyDescription;
-    }
-    if (other.isSetMetaData()) {
-      this.metaData = other.metaData;
-    }
-  }
-
-  public InputDataObjectType deepCopy() {
-    return new InputDataObjectType(this);
-  }
-
-  @Override
-  public void clear() {
-    this.isEmpty = false;
-
-    this.name = null;
-    this.value = null;
-    this.type = null;
-    this.applicationArguement = null;
-    this.standardInput = false;
-
-    this.userFriendlyDescription = null;
-    this.metaData = null;
-  }
-
-  public boolean isIsEmpty() {
-    return this.isEmpty;
-  }
-
-  public void setIsEmpty(boolean isEmpty) {
-    this.isEmpty = isEmpty;
-    setIsEmptyIsSet(true);
-  }
-
-  public void unsetIsEmpty() {
-    __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ISEMPTY_ISSET_ID);
-  }
-
-  /** Returns true if field isEmpty is set (has been assigned a value) and false otherwise */
-  public boolean isSetIsEmpty() {
-    return EncodingUtils.testBit(__isset_bitfield, __ISEMPTY_ISSET_ID);
-  }
-
-  public void setIsEmptyIsSet(boolean value) {
-    __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ISEMPTY_ISSET_ID, value);
-  }
-
-  public String getName() {
-    return this.name;
-  }
-
-  public void setName(String name) {
-    this.name = name;
-  }
-
-  public void unsetName() {
-    this.name = null;
-  }
-
-  /** Returns true if field name is set (has been assigned a value) and false otherwise */
-  public boolean isSetName() {
-    return this.name != null;
-  }
-
-  public void setNameIsSet(boolean value) {
-    if (!value) {
-      this.name = null;
-    }
-  }
-
-  public String getValue() {
-    return this.value;
-  }
-
-  public void setValue(String value) {
-    this.value = value;
-  }
-
-  public void unsetValue() {
-    this.value = null;
-  }
-
-  /** Returns true if field value is set (has been assigned a value) and false otherwise */
-  public boolean isSetValue() {
-    return this.value != null;
-  }
-
-  public void setValueIsSet(boolean value) {
-    if (!value) {
-      this.value = null;
-    }
-  }
-
-  /**
-   * 
-   * @see DataType
-   */
-  public DataType getType() {
-    return this.type;
-  }
-
-  /**
-   * 
-   * @see DataType
-   */
-  public void setType(DataType type) {
-    this.type = type;
-  }
-
-  public void unsetType() {
-    this.type = null;
-  }
-
-  /** Returns true if field type is set (has been assigned a value) and false otherwise */
-  public boolean isSetType() {
-    return this.type != null;
-  }
-
-  public void setTypeIsSet(boolean value) {
-    if (!value) {
-      this.type = null;
-    }
-  }
-
-  public String getApplicationArguement() {
-    return this.applicationArguement;
-  }
-
-  public void setApplicationArguement(String applicationArguement) {
-    this.applicationArguement = applicationArguement;
-  }
-
-  public void unsetApplicationArguement() {
-    this.applicationArguement = null;
-  }
-
-  /** Returns true if field applicationArguement is set (has been assigned a value) and false otherwise */
-  public boolean isSetApplicationArguement() {
-    return this.applicationArguement != null;
-  }
-
-  public void setApplicationArguementIsSet(boolean value) {
-    if (!value) {
-      this.applicationArguement = null;
-    }
-  }
-
-  public boolean isStandardInput() {
-    return this.standardInput;
-  }
-
-  public void setStandardInput(boolean standardInput) {
-    this.standardInput = standardInput;
-    setStandardInputIsSet(true);
-  }
-
-  public void unsetStandardInput() {
-    __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __STANDARDINPUT_ISSET_ID);
-  }
-
-  /** Returns true if field standardInput is set (has been assigned a value) and false otherwise */
-  public boolean isSetStandardInput() {
-    return EncodingUtils.testBit(__isset_bitfield, __STANDARDINPUT_ISSET_ID);
-  }
-
-  public void setStandardInputIsSet(boolean value) {
-    __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __STANDARDINPUT_ISSET_ID, value);
-  }
-
-  public String getUserFriendlyDescription() {
-    return this.userFriendlyDescription;
-  }
-
-  public void setUserFriendlyDescription(String userFriendlyDescription) {
-    this.userFriendlyDescription = userFriendlyDescription;
-  }
-
-  public void unsetUserFriendlyDescription() {
-    this.userFriendlyDescription = null;
-  }
-
-  /** Returns true if field userFriendlyDescription is set (has been assigned a value) and false otherwise */
-  public boolean isSetUserFriendlyDescription() {
-    return this.userFriendlyDescription != null;
-  }
-
-  public void setUserFriendlyDescriptionIsSet(boolean value) {
-    if (!value) {
-      this.userFriendlyDescription = null;
-    }
-  }
-
-  public String getMetaData() {
-    return this.metaData;
-  }
-
-  public void setMetaData(String metaData) {
-    this.metaData = metaData;
-  }
-
-  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 void setFieldValue(_Fields field, Object value) {
-    switch (field) {
-    case IS_EMPTY:
-      if (value == null) {
-        unsetIsEmpty();
-      } else {
-        setIsEmpty((Boolean)value);
-      }
-      break;
-
-    case NAME:
-      if (value == null) {
-        unsetName();
-      } else {
-        setName((String)value);
-      }
-      break;
-
-    case VALUE:
-      if (value == null) {
-        unsetValue();
-      } else {
-        setValue((String)value);
-      }
-      break;
-
-    case TYPE:
-      if (value == null) {
-        unsetType();
-      } else {
-        setType((DataType)value);
-      }
-      break;
-
-    case APPLICATION_ARGUEMENT:
-      if (value == null) {
-        unsetApplicationArguement();
-      } else {
-        setApplicationArguement((String)value);
-      }
-      break;
-
-    case STANDARD_INPUT:
-      if (value == null) {
-        unsetStandardInput();
-      } else {
-        setStandardInput((Boolean)value);
-      }
-      break;
-
-    case USER_FRIENDLY_DESCRIPTION:
-      if (value == null) {
-        unsetUserFriendlyDescription();
-      } else {
-        setUserFriendlyDescription((String)value);
-      }
-      break;
-
-    case META_DATA:
-      if (value == null) {
-        unsetMetaData();
-      } else {
-        setMetaData((String)value);
-      }
-      break;
-
-    }
-  }
-
-  public Object getFieldValue(_Fields field) {
-    switch (field) {
-    case IS_EMPTY:
-      return Boolean.valueOf(isIsEmpty());
-
-    case NAME:
-      return getName();
-
-    case VALUE:
-      return getValue();
-
-    case TYPE:
-      return getType();
-
-    case APPLICATION_ARGUEMENT:
-      return getApplicationArguement();
-
-    case STANDARD_INPUT:
-      return Boolean.valueOf(isStandardInput());
-
-    case USER_FRIENDLY_DESCRIPTION:
-      return getUserFriendlyDescription();
-
-    case META_DATA:
-      return getMetaData();
-
-    }
-    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 IS_EMPTY:
-      return isSetIsEmpty();
-    case NAME:
-      return isSetName();
-    case VALUE:
-      return isSetValue();
-    case TYPE:
-      return isSetType();
-    case APPLICATION_ARGUEMENT:
-      return isSetApplicationArguement();
-    case STANDARD_INPUT:
-      return isSetStandardInput();
-    case USER_FRIENDLY_DESCRIPTION:
-      return isSetUserFriendlyDescription();
-    case META_DATA:
-      return isSetMetaData();
-    }
-    throw new IllegalStateException();
-  }
-
-  @Override
-  public boolean equals(Object that) {
-    if (that == null)
-      return false;
-    if (that instanceof InputDataObjectType)
-      return this.equals((InputDataObjectType)that);
-    return false;
-  }
-
-  public boolean equals(InputDataObjectType that) {
-    if (that == null)
-      return false;
-
-    boolean this_present_isEmpty = true;
-    boolean that_present_isEmpty = true;
-    if (this_present_isEmpty || that_present_isEmpty) {
-      if (!(this_present_isEmpty && that_present_isEmpty))
-        return false;
-      if (this.isEmpty != that.isEmpty)
-        return false;
-    }
-
-    boolean this_present_name = true && this.isSetName();
-    boolean that_present_name = true && that.isSetName();
-    if (this_present_name || that_present_name) {
-      if (!(this_present_name && that_present_name))
-        return false;
-      if (!this.name.equals(that.name))
-        return false;
-    }
-
-    boolean this_present_value = true && this.isSetValue();
-    boolean that_present_value = true && that.isSetValue();
-    if (this_present_value || that_present_value) {
-      if (!(this_present_value && that_present_value))
-        return false;
-      if (!this.value.equals(that.value))
-        return false;
-    }
-
-    boolean this_present_type = true && this.isSetType();
-    boolean that_present_type = true && that.isSetType();
-    if (this_present_type || that_present_type) {
-      if (!(this_present_type && that_present_type))
-        return false;
-      if (!this.type.equals(that.type))
-        return false;
-    }
-
-    boolean this_present_applicationArguement = true && this.isSetApplicationArguement();
-    boolean that_present_applicationArguement = true && that.isSetApplicationArguement();
-    if (this_present_applicationArguement || that_present_applicationArguement) {
-      if (!(this_present_applicationArguement && that_present_applicationArguement))
-        return false;
-      if (!this.applicationArguement.equals(that.applicationArguement))
-        return false;
-    }
-
-    boolean this_present_standardInput = true && this.isSetStandardInput();
-    boolean that_present_standardInput = true && that.isSetStandardInput();
-    if (this_present_standardInput || that_present_standardInput) {
-      if (!(this_present_standardInput && that_present_standardInput))
-        return false;
-      if (this.standardInput != that.standardInput)
-        return false;
-    }
-
-    boolean this_present_userFriendlyDescription = true && this.isSetUserFriendlyDescription();
-    boolean that_present_userFriendlyDescription = true && that.isSetUserFriendlyDescription();
-    if (this_present_userFriendlyDescription || that_present_userFriendlyDescription) {
-      if (!(this_present_userFriendlyDescription && that_present_userFriendlyDescription))
-        return false;
-      if (!this.userFriendlyDescription.equals(that.userFriendlyDescription))
-        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;
-    }
-
-    return true;
-  }
-
-  @Override
-  public int hashCode() {
-    return 0;
-  }
-
-  @Override
-  public int compareTo(InputDataObjectType other) {
-    if (!getClass().equals(other.getClass())) {
-      return getClass().getName().compareTo(other.getClass().getName());
-    }
-
-    int lastComparison = 0;
-
-    lastComparison = Boolean.valueOf(isSetIsEmpty()).compareTo(other.isSetIsEmpty());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetIsEmpty()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isEmpty, other.isEmpty);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetName()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    lastComparison = Boolean.valueOf(isSetValue()).compareTo(other.isSetValue());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetValue()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, other.value);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    lastComparison = Boolean.valueOf(isSetType()).compareTo(other.isSetType());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetType()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, other.type);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    lastComparison = Boolean.valueOf(isSetApplicationArguement()).compareTo(other.isSetApplicationArguement());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetApplicationArguement()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.applicationArguement, other.applicationArguement);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    lastComparison = Boolean.valueOf(isSetStandardInput()).compareTo(other.isSetStandardInput());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetStandardInput()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.standardInput, other.standardInput);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    lastComparison = Boolean.valueOf(isSetUserFriendlyDescription()).compareTo(other.isSetUserFriendlyDescription());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetUserFriendlyDescription()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userFriendlyDescription, other.userFriendlyDescription);
-      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;
-      }
-    }
-    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("InputDataObjectType(");
-    boolean first = true;
-
-    sb.append("isEmpty:");
-    sb.append(this.isEmpty);
-    first = false;
-    if (!first) sb.append(", ");
-    sb.append("name:");
-    if (this.name == null) {
-      sb.append("null");
-    } else {
-      sb.append(this.name);
-    }
-    first = false;
-    if (isSetValue()) {
-      if (!first) sb.append(", ");
-      sb.append("value:");
-      if (this.value == null) {
-        sb.append("null");
-      } else {
-        sb.append(this.value);
-      }
-      first = false;
-    }
-    if (isSetType()) {
-      if (!first) sb.append(", ");
-      sb.append("type:");
-      if (this.type == null) {
-        sb.append("null");
-      } else {
-        sb.append(this.type);
-      }
-      first = false;
-    }
-    if (isSetApplicationArguement()) {
-      if (!first) sb.append(", ");
-      sb.append("applicationArguement:");
-      if (this.applicationArguement == null) {
-        sb.append("null");
-      } else {
-        sb.append(this.applicationArguement);
-      }
-      first = false;
-    }
-    if (isSetStandardInput()) {
-      if (!first) sb.append(", ");
-      sb.append("standardInput:");
-      sb.append(this.standardInput);
-      first = false;
-    }
-    if (isSetUserFriendlyDescription()) {
-      if (!first) sb.append(", ");
-      sb.append("userFriendlyDescription:");
-      if (this.userFriendlyDescription == null) {
-        sb.append("null");
-      } else {
-        sb.append(this.userFriendlyDescription);
-      }
-      first = false;
-    }
-    if (isSetMetaData()) {
-      if (!first) sb.append(", ");
-      sb.append("metaData:");
-      if (this.metaData == null) {
-        sb.append("null");
-      } else {
-        sb.append(this.metaData);
-      }
-      first = false;
-    }
-    sb.append(")");
-    return sb.toString();
-  }
-
-  public void validate() throws org.apache.thrift.TException {
-    // check for required fields
-    if (!isSetIsEmpty()) {
-      throw new org.apache.thrift.protocol.TProtocolException("Required field 'isEmpty' is unset! Struct:" + toString());
-    }
-
-    if (!isSetName()) {
-      throw new org.apache.thrift.protocol.TProtocolException("Required field 'name' is unset! Struct:" + toString());
-    }
-
-    // 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 InputDataObjectTypeStandardSchemeFactory implements SchemeFactory {
-    public InputDataObjectTypeStandardScheme getScheme() {
-      return new InputDataObjectTypeStandardScheme();
-    }
-  }
-
-  private static class InputDataObjectTypeStandardScheme extends StandardScheme<InputDataObjectType> {
-
-    public void read(org.apache.thrift.protocol.TProtocol iprot, InputDataObjectType 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: // IS_EMPTY
-            if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
-              struct.isEmpty = iprot.readBool();
-              struct.setIsEmptyIsSet(true);
-            } else { 
-              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-            }
-            break;
-          case 2: // NAME
-            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
-              struct.name = iprot.readString();
-              struct.setNameIsSet(true);
-            } else { 
-              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-            }
-            break;
-          case 3: // VALUE
-            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
-              struct.value = iprot.readString();
-              struct.setValueIsSet(true);
-            } else { 
-              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-            }
-            break;
-          case 4: // TYPE
-            if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
-              struct.type = DataType.findByValue(iprot.readI32());
-              struct.setTypeIsSet(true);
-            } else { 
-              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-            }
-            break;
-          case 5: // APPLICATION_ARGUEMENT
-            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
-              struct.applicationArguement = iprot.readString();
-              struct.setApplicationArguementIsSet(true);
-            } else { 
-              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-            }
-            break;
-          case 6: // STANDARD_INPUT
-            if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
-              struct.standardInput = iprot.readBool();
-              struct.setStandardInputIsSet(true);
-            } else { 
-              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-            }
-            break;
-          case 7: // USER_FRIENDLY_DESCRIPTION
-            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
-              struct.userFriendlyDescription = iprot.readString();
-              struct.setUserFriendlyDescriptionIsSet(true);
-            } else { 
-              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-            }
-            break;
-          case 8: // META_DATA
-            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;
-          default:
-            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-        }
-        iprot.readFieldEnd();
-      }
-      iprot.readStructEnd();
-      struct.validate();
-    }
-
-    public void write(org.apache.thrift.protocol.TProtocol oprot, InputDataObjectType struct) throws org.apache.thrift.TException {
-      struct.validate();
-
-      oprot.writeStructBegin(STRUCT_DESC);
-      oprot.writeFieldBegin(IS_EMPTY_FIELD_DESC);
-      oprot.writeBool(struct.isEmpty);
-      oprot.writeFieldEnd();
-      if (struct.name != null) {
-        oprot.writeFieldBegin(NAME_FIELD_DESC);
-        oprot.writeString(struct.name);
-        oprot.writeFieldEnd();
-      }
-      if (struct.value != null) {
-        if (struct.isSetValue()) {
-          oprot.writeFieldBegin(VALUE_FIELD_DESC);
-          oprot.writeString(struct.value);
-          oprot.writeFieldEnd();
-        }
-      }
-      if (struct.type != null) {
-        if (struct.isSetType()) {
-          oprot.writeFieldBegin(TYPE_FIELD_DESC);
-          oprot.writeI32(struct.type.getValue());
-          oprot.writeFieldEnd();
-        }
-      }
-      if (struct.applicationArguement != null) {
-        if (struct.isSetApplicationArguement()) {
-          oprot.writeFieldBegin(APPLICATION_ARGUEMENT_FIELD_DESC);
-          oprot.writeString(struct.applicationArguement);
-          oprot.writeFieldEnd();
-        }
-      }
-      if (struct.isSetStandardInput()) {
-        oprot.writeFieldBegin(STANDARD_INPUT_FIELD_DESC);
-        oprot.writeBool(struct.standardInput);
-        oprot.writeFieldEnd();
-      }
-      if (struct.userFriendlyDescription != null) {
-        if (struct.isSetUserFriendlyDescription()) {
-          oprot.writeFieldBegin(USER_FRIENDLY_DESCRIPTION_FIELD_DESC);
-          oprot.writeString(struct.userFriendlyDescription);
-          oprot.writeFieldEnd();
-        }
-      }
-      if (struct.metaData != null) {
-        if (struct.isSetMetaData()) {
-          oprot.writeFieldBegin(META_DATA_FIELD_DESC);
-          oprot.writeString(struct.metaData);
-          oprot.writeFieldEnd();
-        }
-      }
-      oprot.writeFieldStop();
-      oprot.writeStructEnd();
-    }
-
-  }
-
-  private static class InputDataObjectTypeTupleSchemeFactory implements SchemeFactory {
-    public InputDataObjectTypeTupleScheme getScheme() {
-      return new InputDataObjectTypeTupleScheme();
-    }
-  }
-
-  private static class InputDataObjectTypeTupleScheme extends TupleScheme<InputDataObjectType> {
-
-    @Override
-    public void write(org.apache.thrift.protocol.TProtocol prot, InputDataObjectType struct) throws org.apache.thrift.TException {
-      TTupleProtocol oprot = (TTupleProtocol) prot;
-      oprot.writeBool(struct.isEmpty);
-      oprot.writeString(struct.name);
-      BitSet optionals = new BitSet();
-      if (struct.isSetValue()) {
-        optionals.set(0);
-      }
-      if (struct.isSetType()) {
-        optionals.set(1);
-      }
-      if (struct.isSetApplicationArguement()) {
-        optionals.set(2);
-      }
-      if (struct.isSetStandardInput()) {
-        optionals.set(3);
-      }
-      if (struct.isSetUserFriendlyDescription()) {
-        optionals.set(4);
-      }
-      if (struct.isSetMetaData()) {
-        optionals.set(5);
-      }
-      oprot.writeBitSet(optionals, 6);
-      if (struct.isSetValue()) {
-        oprot.writeString(struct.value);
-      }
-      if (struct.isSetType()) {
-        oprot.writeI32(struct.type.getValue());
-      }
-      if (struct.isSetApplicationArguement()) {
-        oprot.writeString(struct.applicationArguement);
-      }
-      if (struct.isSetStandardInput()) {
-        oprot.writeBool(struct.standardInput);
-      }
-      if (struct.isSetUserFriendlyDescription()) {
-        oprot.writeString(struct.userFriendlyDescription);
-      }
-      if (struct.isSetMetaData()) {
-        oprot.writeString(struct.metaData);
-      }
-    }
-
-    @Override
-    public void read(org.apache.thrift.protocol.TProtocol prot, InputDataObjectType struct) throws org.apache.thrift.TException {
-      TTupleProtocol iprot = (TTupleProtocol) prot;
-      struct.isEmpty = iprot.readBool();
-      struct.setIsEmptyIsSet(true);
-      struct.name = iprot.readString();
-      struct.setNameIsSet(true);
-      BitSet incoming = iprot.readBitSet(6);
-      if (incoming.get(0)) {
-        struct.value = iprot.readString();
-        struct.setValueIsSet(true);
-      }
-      if (incoming.get(1)) {
-        struct.type = DataType.findByValue(iprot.readI32());
-        struct.setTypeIsSet(true);
-      }
-      if (incoming.get(2)) {
-        struct.applicationArguement = iprot.readString();
-        struct.setApplicationArguementIsSet(true);
-      }
-      if (incoming.get(3)) {
-        struct.standardInput = iprot.readBool();
-        struct.setStandardInputIsSet(true);
-      }
-      if (incoming.get(4)) {
-        struct.userFriendlyDescription = iprot.readString();
-        struct.setUserFriendlyDescriptionIsSet(true);
-      }
-      if (incoming.get(5)) {
-        struct.metaData = iprot.readString();
-        struct.setMetaDataIsSet(true);
-      }
-    }
-  }
-
-}
-

http://git-wip-us.apache.org/repos/asf/airavata/blob/6843720a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/interface/OutputDataObjectType.java
----------------------------------------------------------------------
diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/interface/OutputDataObjectType.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/interface/OutputDataObjectType.java
deleted file mode 100644
index d15304d..0000000
--- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/interface/OutputDataObjectType.java
+++ /dev/null
@@ -1,735 +0,0 @@
-    /*
-     * Licensed to the Apache Software Foundation (ASF) under one or more
-     * contributor license agreements.  See the NOTICE file distributed with
-     * this work for additional information regarding copyright ownership.
-     * The ASF licenses this file to You under the Apache License, Version 2.0
-     * (the "License"); you may not use this file except in compliance with
-     * the License.  You may obtain a copy of the License at
-     *
-     *     http://www.apache.org/licenses/LICENSE-2.0
-     *
-     * Unless required by applicable law or agreed to in writing, software
-     * distributed under the License is distributed on an "AS IS" BASIS,
-     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-     * See the License for the specific language governing permissions and
-     * limitations under the License.
-     */
-/**
- * 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.model.application.interface;
-
-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;
-
-/**
- * Application Outputs. The paramters describe how outputs generated by the application.
- * 
- * name:
- *   Name of the parameter.
- * 
- * value:
- *   Value of the parameter.
- * 
- * type:
- *   Data type of the parameter
- * 
- * applicationArguement:
- *   The argument flag sent to the application. Such as -p pressure.
- * 
- * standardInput:
- *   When this value is set, the parameter is sent as standard input rather than a parameter.
- *   Typically this is passed using redirection operator ">".
- * 
- * userFriendlyDescription:
- *   Description to be displayed at the user interface.
- * 
- * metaData:
- *   Any metadat. This is typically ignore by Airavata and is used by gateways for application configuration.
- * 
- */
-@SuppressWarnings("all") public class OutputDataObjectType implements org.apache.thrift.TBase<OutputDataObjectType, OutputDataObjectType._Fields>, java.io.Serializable, Cloneable, Comparable<OutputDataObjectType> {
-  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("OutputDataObjectType");
-
-  private static final org.apache.thrift.protocol.TField IS_EMPTY_FIELD_DESC = new org.apache.thrift.protocol.TField("isEmpty", org.apache.thrift.protocol.TType.BOOL, (short)1);
-  private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)2);
-  private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("value", org.apache.thrift.protocol.TType.STRING, (short)3);
-  private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.I32, (short)4);
-
-  private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
-  static {
-    schemes.put(StandardScheme.class, new OutputDataObjectTypeStandardSchemeFactory());
-    schemes.put(TupleScheme.class, new OutputDataObjectTypeTupleSchemeFactory());
-  }
-
-  private boolean isEmpty; // required
-  private String name; // required
-  private String value; // optional
-  private DataType type; // optional
-
-  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-  @SuppressWarnings("all") public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-    IS_EMPTY((short)1, "isEmpty"),
-    NAME((short)2, "name"),
-    VALUE((short)3, "value"),
-    /**
-     * 
-     * @see DataType
-     */
-    TYPE((short)4, "type");
-
-    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: // IS_EMPTY
-          return IS_EMPTY;
-        case 2: // NAME
-          return NAME;
-        case 3: // VALUE
-          return VALUE;
-        case 4: // TYPE
-          return TYPE;
-        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 __ISEMPTY_ISSET_ID = 0;
-  private byte __isset_bitfield = 0;
-  private _Fields optionals[] = {_Fields.VALUE,_Fields.TYPE};
-  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.IS_EMPTY, new org.apache.thrift.meta_data.FieldMetaData("isEmpty", org.apache.thrift.TFieldRequirementType.REQUIRED, 
-        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-    tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.REQUIRED, 
-        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-    tmpMap.put(_Fields.VALUE, new org.apache.thrift.meta_data.FieldMetaData("value", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
-        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-    tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
-        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DataType.class)));
-    metaDataMap = Collections.unmodifiableMap(tmpMap);
-    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(OutputDataObjectType.class, metaDataMap);
-  }
-
-  public OutputDataObjectType() {
-    this.isEmpty = false;
-
-  }
-
-  public OutputDataObjectType(
-    boolean isEmpty,
-    String name)
-  {
-    this();
-    this.isEmpty = isEmpty;
-    setIsEmptyIsSet(true);
-    this.name = name;
-  }
-
-  /**
-   * Performs a deep copy on <i>other</i>.
-   */
-  public OutputDataObjectType(OutputDataObjectType other) {
-    __isset_bitfield = other.__isset_bitfield;
-    this.isEmpty = other.isEmpty;
-    if (other.isSetName()) {
-      this.name = other.name;
-    }
-    if (other.isSetValue()) {
-      this.value = other.value;
-    }
-    if (other.isSetType()) {
-      this.type = other.type;
-    }
-  }
-
-  public OutputDataObjectType deepCopy() {
-    return new OutputDataObjectType(this);
-  }
-
-  @Override
-  public void clear() {
-    this.isEmpty = false;
-
-    this.name = null;
-    this.value = null;
-    this.type = null;
-  }
-
-  public boolean isIsEmpty() {
-    return this.isEmpty;
-  }
-
-  public void setIsEmpty(boolean isEmpty) {
-    this.isEmpty = isEmpty;
-    setIsEmptyIsSet(true);
-  }
-
-  public void unsetIsEmpty() {
-    __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ISEMPTY_ISSET_ID);
-  }
-
-  /** Returns true if field isEmpty is set (has been assigned a value) and false otherwise */
-  public boolean isSetIsEmpty() {
-    return EncodingUtils.testBit(__isset_bitfield, __ISEMPTY_ISSET_ID);
-  }
-
-  public void setIsEmptyIsSet(boolean value) {
-    __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ISEMPTY_ISSET_ID, value);
-  }
-
-  public String getName() {
-    return this.name;
-  }
-
-  public void setName(String name) {
-    this.name = name;
-  }
-
-  public void unsetName() {
-    this.name = null;
-  }
-
-  /** Returns true if field name is set (has been assigned a value) and false otherwise */
-  public boolean isSetName() {
-    return this.name != null;
-  }
-
-  public void setNameIsSet(boolean value) {
-    if (!value) {
-      this.name = null;
-    }
-  }
-
-  public String getValue() {
-    return this.value;
-  }
-
-  public void setValue(String value) {
-    this.value = value;
-  }
-
-  public void unsetValue() {
-    this.value = null;
-  }
-
-  /** Returns true if field value is set (has been assigned a value) and false otherwise */
-  public boolean isSetValue() {
-    return this.value != null;
-  }
-
-  public void setValueIsSet(boolean value) {
-    if (!value) {
-      this.value = null;
-    }
-  }
-
-  /**
-   * 
-   * @see DataType
-   */
-  public DataType getType() {
-    return this.type;
-  }
-
-  /**
-   * 
-   * @see DataType
-   */
-  public void setType(DataType type) {
-    this.type = type;
-  }
-
-  public void unsetType() {
-    this.type = null;
-  }
-
-  /** Returns true if field type is set (has been assigned a value) and false otherwise */
-  public boolean isSetType() {
-    return this.type != null;
-  }
-
-  public void setTypeIsSet(boolean value) {
-    if (!value) {
-      this.type = null;
-    }
-  }
-
-  public void setFieldValue(_Fields field, Object value) {
-    switch (field) {
-    case IS_EMPTY:
-      if (value == null) {
-        unsetIsEmpty();
-      } else {
-        setIsEmpty((Boolean)value);
-      }
-      break;
-
-    case NAME:
-      if (value == null) {
-        unsetName();
-      } else {
-        setName((String)value);
-      }
-      break;
-
-    case VALUE:
-      if (value == null) {
-        unsetValue();
-      } else {
-        setValue((String)value);
-      }
-      break;
-
-    case TYPE:
-      if (value == null) {
-        unsetType();
-      } else {
-        setType((DataType)value);
-      }
-      break;
-
-    }
-  }
-
-  public Object getFieldValue(_Fields field) {
-    switch (field) {
-    case IS_EMPTY:
-      return Boolean.valueOf(isIsEmpty());
-
-    case NAME:
-      return getName();
-
-    case VALUE:
-      return getValue();
-
-    case TYPE:
-      return getType();
-
-    }
-    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 IS_EMPTY:
-      return isSetIsEmpty();
-    case NAME:
-      return isSetName();
-    case VALUE:
-      return isSetValue();
-    case TYPE:
-      return isSetType();
-    }
-    throw new IllegalStateException();
-  }
-
-  @Override
-  public boolean equals(Object that) {
-    if (that == null)
-      return false;
-    if (that instanceof OutputDataObjectType)
-      return this.equals((OutputDataObjectType)that);
-    return false;
-  }
-
-  public boolean equals(OutputDataObjectType that) {
-    if (that == null)
-      return false;
-
-    boolean this_present_isEmpty = true;
-    boolean that_present_isEmpty = true;
-    if (this_present_isEmpty || that_present_isEmpty) {
-      if (!(this_present_isEmpty && that_present_isEmpty))
-        return false;
-      if (this.isEmpty != that.isEmpty)
-        return false;
-    }
-
-    boolean this_present_name = true && this.isSetName();
-    boolean that_present_name = true && that.isSetName();
-    if (this_present_name || that_present_name) {
-      if (!(this_present_name && that_present_name))
-        return false;
-      if (!this.name.equals(that.name))
-        return false;
-    }
-
-    boolean this_present_value = true && this.isSetValue();
-    boolean that_present_value = true && that.isSetValue();
-    if (this_present_value || that_present_value) {
-      if (!(this_present_value && that_present_value))
-        return false;
-      if (!this.value.equals(that.value))
-        return false;
-    }
-
-    boolean this_present_type = true && this.isSetType();
-    boolean that_present_type = true && that.isSetType();
-    if (this_present_type || that_present_type) {
-      if (!(this_present_type && that_present_type))
-        return false;
-      if (!this.type.equals(that.type))
-        return false;
-    }
-
-    return true;
-  }
-
-  @Override
-  public int hashCode() {
-    return 0;
-  }
-
-  @Override
-  public int compareTo(OutputDataObjectType other) {
-    if (!getClass().equals(other.getClass())) {
-      return getClass().getName().compareTo(other.getClass().getName());
-    }
-
-    int lastComparison = 0;
-
-    lastComparison = Boolean.valueOf(isSetIsEmpty()).compareTo(other.isSetIsEmpty());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetIsEmpty()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isEmpty, other.isEmpty);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetName()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    lastComparison = Boolean.valueOf(isSetValue()).compareTo(other.isSetValue());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetValue()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, other.value);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    lastComparison = Boolean.valueOf(isSetType()).compareTo(other.isSetType());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetType()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, other.type);
-      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("OutputDataObjectType(");
-    boolean first = true;
-
-    sb.append("isEmpty:");
-    sb.append(this.isEmpty);
-    first = false;
-    if (!first) sb.append(", ");
-    sb.append("name:");
-    if (this.name == null) {
-      sb.append("null");
-    } else {
-      sb.append(this.name);
-    }
-    first = false;
-    if (isSetValue()) {
-      if (!first) sb.append(", ");
-      sb.append("value:");
-      if (this.value == null) {
-        sb.append("null");
-      } else {
-        sb.append(this.value);
-      }
-      first = false;
-    }
-    if (isSetType()) {
-      if (!first) sb.append(", ");
-      sb.append("type:");
-      if (this.type == null) {
-        sb.append("null");
-      } else {
-        sb.append(this.type);
-      }
-      first = false;
-    }
-    sb.append(")");
-    return sb.toString();
-  }
-
-  public void validate() throws org.apache.thrift.TException {
-    // check for required fields
-    if (!isSetIsEmpty()) {
-      throw new org.apache.thrift.protocol.TProtocolException("Required field 'isEmpty' is unset! Struct:" + toString());
-    }
-
-    if (!isSetName()) {
-      throw new org.apache.thrift.protocol.TProtocolException("Required field 'name' is unset! Struct:" + toString());
-    }
-
-    // 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 OutputDataObjectTypeStandardSchemeFactory implements SchemeFactory {
-    public OutputDataObjectTypeStandardScheme getScheme() {
-      return new OutputDataObjectTypeStandardScheme();
-    }
-  }
-
-  private static class OutputDataObjectTypeStandardScheme extends StandardScheme<OutputDataObjectType> {
-
-    public void read(org.apache.thrift.protocol.TProtocol iprot, OutputDataObjectType 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: // IS_EMPTY
-            if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
-              struct.isEmpty = iprot.readBool();
-              struct.setIsEmptyIsSet(true);
-            } else { 
-              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-            }
-            break;
-          case 2: // NAME
-            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
-              struct.name = iprot.readString();
-              struct.setNameIsSet(true);
-            } else { 
-              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-            }
-            break;
-          case 3: // VALUE
-            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
-              struct.value = iprot.readString();
-              struct.setValueIsSet(true);
-            } else { 
-              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-            }
-            break;
-          case 4: // TYPE
-            if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
-              struct.type = DataType.findByValue(iprot.readI32());
-              struct.setTypeIsSet(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();
-      struct.validate();
-    }
-
-    public void write(org.apache.thrift.protocol.TProtocol oprot, OutputDataObjectType struct) throws org.apache.thrift.TException {
-      struct.validate();
-
-      oprot.writeStructBegin(STRUCT_DESC);
-      oprot.writeFieldBegin(IS_EMPTY_FIELD_DESC);
-      oprot.writeBool(struct.isEmpty);
-      oprot.writeFieldEnd();
-      if (struct.name != null) {
-        oprot.writeFieldBegin(NAME_FIELD_DESC);
-        oprot.writeString(struct.name);
-        oprot.writeFieldEnd();
-      }
-      if (struct.value != null) {
-        if (struct.isSetValue()) {
-          oprot.writeFieldBegin(VALUE_FIELD_DESC);
-          oprot.writeString(struct.value);
-          oprot.writeFieldEnd();
-        }
-      }
-      if (struct.type != null) {
-        if (struct.isSetType()) {
-          oprot.writeFieldBegin(TYPE_FIELD_DESC);
-          oprot.writeI32(struct.type.getValue());
-          oprot.writeFieldEnd();
-        }
-      }
-      oprot.writeFieldStop();
-      oprot.writeStructEnd();
-    }
-
-  }
-
-  private static class OutputDataObjectTypeTupleSchemeFactory implements SchemeFactory {
-    public OutputDataObjectTypeTupleScheme getScheme() {
-      return new OutputDataObjectTypeTupleScheme();
-    }
-  }
-
-  private static class OutputDataObjectTypeTupleScheme extends TupleScheme<OutputDataObjectType> {
-
-    @Override
-    public void write(org.apache.thrift.protocol.TProtocol prot, OutputDataObjectType struct) throws org.apache.thrift.TException {
-      TTupleProtocol oprot = (TTupleProtocol) prot;
-      oprot.writeBool(struct.isEmpty);
-      oprot.writeString(struct.name);
-      BitSet optionals = new BitSet();
-      if (struct.isSetValue()) {
-        optionals.set(0);
-      }
-      if (struct.isSetType()) {
-        optionals.set(1);
-      }
-      oprot.writeBitSet(optionals, 2);
-      if (struct.isSetValue()) {
-        oprot.writeString(struct.value);
-      }
-      if (struct.isSetType()) {
-        oprot.writeI32(struct.type.getValue());
-      }
-    }
-
-    @Override
-    public void read(org.apache.thrift.protocol.TProtocol prot, OutputDataObjectType struct) throws org.apache.thrift.TException {
-      TTupleProtocol iprot = (TTupleProtocol) prot;
-      struct.isEmpty = iprot.readBool();
-      struct.setIsEmptyIsSet(true);
-      struct.name = iprot.readString();
-      struct.setNameIsSet(true);
-      BitSet incoming = iprot.readBitSet(2);
-      if (incoming.get(0)) {
-        struct.value = iprot.readString();
-        struct.setValueIsSet(true);
-      }
-      if (incoming.get(1)) {
-        struct.type = DataType.findByValue(iprot.readI32());
-        struct.setTypeIsSet(true);
-      }
-    }
-  }
-
-}
-

http://git-wip-us.apache.org/repos/asf/airavata/blob/6843720a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/interface/applicationInterfaceModelConstants.java
----------------------------------------------------------------------
diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/interface/applicationInterfaceModelConstants.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/interface/applicationInterfaceModelConstants.java
deleted file mode 100644
index 4ba5f12..0000000
--- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/interface/applicationInterfaceModelConstants.java
+++ /dev/null
@@ -1,55 +0,0 @@
-    /*
-     * Licensed to the Apache Software Foundation (ASF) under one or more
-     * contributor license agreements.  See the NOTICE file distributed with
-     * this work for additional information regarding copyright ownership.
-     * The ASF licenses this file to You under the Apache License, Version 2.0
-     * (the "License"); you may not use this file except in compliance with
-     * the License.  You may obtain a copy of the License at
-     *
-     *     http://www.apache.org/licenses/LICENSE-2.0
-     *
-     * Unless required by applicable law or agreed to in writing, software
-     * distributed under the License is distributed on an "AS IS" BASIS,
-     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-     * See the License for the specific language governing permissions and
-     * limitations under the License.
-     */
-/**
- * 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.model.application.interface;
-
-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;
-
-@SuppressWarnings("all") public class applicationInterfaceModelConstants {
-
-  public static final String DEFAULT_ID = "DO_NOT_SET_AT_CLIENTS";
-
-}

http://git-wip-us.apache.org/repos/asf/airavata/blob/6843720a/airavata-api/thrift-interface-descriptions/applicationDeploymentModel.thrift
----------------------------------------------------------------------
diff --git a/airavata-api/thrift-interface-descriptions/applicationDeploymentModel.thrift b/airavata-api/thrift-interface-descriptions/applicationDeploymentModel.thrift
index b368b41..13ea0b0 100644
--- a/airavata-api/thrift-interface-descriptions/applicationDeploymentModel.thrift
+++ b/airavata-api/thrift-interface-descriptions/applicationDeploymentModel.thrift
@@ -24,8 +24,8 @@
  *
 */
 
-namespace java org.apache.airavata.model.application.deployment
-namespace php Airavata.Model.Application.Deployment
+namespace java org.apache.airavata.model.appcatalog.appdeployment
+namespace php Airavata.Model.AppCatalog.AppDeployment
 
 const string DEFAULT_ID = "DO_NOT_SET_AT_CLIENTS"
 

http://git-wip-us.apache.org/repos/asf/airavata/blob/6843720a/airavata-api/thrift-interface-descriptions/applicationInterfaceModel.thrift
----------------------------------------------------------------------
diff --git a/airavata-api/thrift-interface-descriptions/applicationInterfaceModel.thrift b/airavata-api/thrift-interface-descriptions/applicationInterfaceModel.thrift
index 0c40e32..7af5cfa 100644
--- a/airavata-api/thrift-interface-descriptions/applicationInterfaceModel.thrift
+++ b/airavata-api/thrift-interface-descriptions/applicationInterfaceModel.thrift
@@ -24,8 +24,8 @@
  *
 */
 
-namespace java org.apache.airavata.model.application.interface
-namespace php Airavata.Model.Application.Interface
+namespace java org.apache.airavata.model.appcatalog.appinterface
+namespace php Airavata.Model.AppCatalog.AppInterface
 
 const string DEFAULT_ID = "DO_NOT_SET_AT_CLIENTS"
 

http://git-wip-us.apache.org/repos/asf/airavata/blob/6843720a/airavata-api/thrift-interface-descriptions/gatewayProfileModel.thrift
----------------------------------------------------------------------
diff --git a/airavata-api/thrift-interface-descriptions/gatewayProfileModel.thrift b/airavata-api/thrift-interface-descriptions/gatewayProfileModel.thrift
index 2b7a02d..88dfd5d 100644
--- a/airavata-api/thrift-interface-descriptions/gatewayProfileModel.thrift
+++ b/airavata-api/thrift-interface-descriptions/gatewayProfileModel.thrift
@@ -18,8 +18,8 @@
  *
  */
 
-namespace java org.apache.airavata.model.appcatalog
-namespace php Airavata.Model.AppCatalog
+namespace java org.apache.airavata.model.appcatalog.gatewayprofile
+namespace php Airavata.Model.AppCatalog.GatewayProfile
 
 const string DEFAULT_ID = "DO_NOT_SET_AT_CLIENTS"
 


[5/8] git commit: updating app catalog data models

Posted by sm...@apache.org.
updating app catalog data models


Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/e0f21e45
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/e0f21e45
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/e0f21e45

Branch: refs/heads/master
Commit: e0f21e4553970db777cb5aacbea780a83635db07
Parents: a1bf439
Author: Suresh Marru <sm...@apache.org>
Authored: Sun Jun 29 10:14:52 2014 -0400
Committer: Suresh Marru <sm...@apache.org>
Committed: Sun Jun 29 10:14:52 2014 -0400

----------------------------------------------------------------------
 .../org/apache/airavata/api/server/ApplicationCatalogServer.java | 4 +++-
 .../airavata/api/server/handler/ApplicationCatalogHandler.java   | 4 +++-
 airavata-api/generate-thrift-files.sh                            | 2 +-
 .../aiaravata/application/catalog/data/model/GSISSHExport.java   | 2 +-
 .../application/catalog/data/model/GSISSHPostJobCommand.java     | 2 +-
 .../application/catalog/data/model/GSISSHPreJobCommand.java      | 2 +-
 6 files changed, 10 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/e0f21e45/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/ApplicationCatalogServer.java
----------------------------------------------------------------------
diff --git a/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/ApplicationCatalogServer.java b/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/ApplicationCatalogServer.java
index 9267bdc..6c80a32 100644
--- a/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/ApplicationCatalogServer.java
+++ b/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/ApplicationCatalogServer.java
@@ -17,7 +17,8 @@
  * specific language governing permissions and limitations
  * under the License.
  *
- */
+ *//*
+
 
 package org.apache.airavata.api.server;
 
@@ -160,3 +161,4 @@ public class ApplicationCatalogServer implements IServer{
 	}
 
 }
+*/

http://git-wip-us.apache.org/repos/asf/airavata/blob/e0f21e45/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/ApplicationCatalogHandler.java
----------------------------------------------------------------------
diff --git a/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/ApplicationCatalogHandler.java b/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/ApplicationCatalogHandler.java
index efec768..d66f682 100644
--- a/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/ApplicationCatalogHandler.java
+++ b/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/ApplicationCatalogHandler.java
@@ -17,7 +17,8 @@
  * specific language governing permissions and limitations
  * under the License.
  *
- */
+ *//*
+
 
 package org.apache.airavata.api.server.handler;
 
@@ -583,3 +584,4 @@ public class ApplicationCatalogHandler implements Iface {
 	}
 	
 }
+*/

http://git-wip-us.apache.org/repos/asf/airavata/blob/e0f21e45/airavata-api/generate-thrift-files.sh
----------------------------------------------------------------------
diff --git a/airavata-api/generate-thrift-files.sh b/airavata-api/generate-thrift-files.sh
index 4682e0d..ed989c4 100755
--- a/airavata-api/generate-thrift-files.sh
+++ b/airavata-api/generate-thrift-files.sh
@@ -123,7 +123,7 @@ rm -rf ${JAVA_BEAN_GEN_DIR}
 #   The airavataDataModel.thrift includes rest of data models.
 thrift ${THRIFT_ARGS} --gen java:beans ${THRIFT_IDL_DIR}/airavataDataModel.thrift || fail unable to generate java bean thrift classes on base data model
 
-thrift ${THRIFT_ARGS} --gen java:beans ${THRIFT_IDL_DIR}/computeHostModel.thrift || fail unable to generate java bean thrift classes on app catalog data model
+thrift ${THRIFT_ARGS} --gen java:beans ${THRIFT_IDL_DIR}/appCatalogModels.thrift || fail unable to generate java bean thrift classes on app catalog data models
 
 # For the generated java beans add the ASF V2 License header
 add_license_header ${JAVA_BEAN_GEN_DIR}

http://git-wip-us.apache.org/repos/asf/airavata/blob/e0f21e45/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/GSISSHExport.java
----------------------------------------------------------------------
diff --git a/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/GSISSHExport.java b/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/GSISSHExport.java
index e91e86a..1113859 100644
--- a/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/GSISSHExport.java
+++ b/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/GSISSHExport.java
@@ -21,7 +21,7 @@
 
 package org.apache.aiaravata.application.catalog.data.model;
 
-import org.apache.airavata.model.appcatalog.GSISSHJobSubmission;
+import org.apache.airavata.model.computehost.GSISSHJobSubmission;
 
 import javax.persistence.*;
 import java.io.Serializable;

http://git-wip-us.apache.org/repos/asf/airavata/blob/e0f21e45/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/GSISSHPostJobCommand.java
----------------------------------------------------------------------
diff --git a/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/GSISSHPostJobCommand.java b/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/GSISSHPostJobCommand.java
index 7c2c754..75185f1 100644
--- a/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/GSISSHPostJobCommand.java
+++ b/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/GSISSHPostJobCommand.java
@@ -21,7 +21,7 @@
 
 package org.apache.aiaravata.application.catalog.data.model;
 
-import org.apache.airavata.model.appcatalog.GSISSHJobSubmission;
+import org.apache.airavata.model.computehost.GSISSHJobSubmission;
 
 import javax.persistence.*;
 import java.io.Serializable;

http://git-wip-us.apache.org/repos/asf/airavata/blob/e0f21e45/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/GSISSHPreJobCommand.java
----------------------------------------------------------------------
diff --git a/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/GSISSHPreJobCommand.java b/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/GSISSHPreJobCommand.java
index 3c1b77d..87c71a6 100644
--- a/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/GSISSHPreJobCommand.java
+++ b/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/GSISSHPreJobCommand.java
@@ -21,7 +21,7 @@
 
 package org.apache.aiaravata.application.catalog.data.model;
 
-import org.apache.airavata.model.appcatalog.GSISSHJobSubmission;
+import org.apache.airavata.model.computehost.GSISSHJobSubmission;
 
 import javax.persistence.*;
 import java.io.Serializable;


[4/8] git commit: a meta thrift model to include all app catalog related data models

Posted by sm...@apache.org.
a meta thrift model to include all app catalog related data models


Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/a1bf4397
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/a1bf4397
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/a1bf4397

Branch: refs/heads/master
Commit: a1bf4397f797ecde03499696c156c2a847ec6c2d
Parents: 227c78d
Author: Suresh Marru <sm...@apache.org>
Authored: Sun Jun 29 09:57:05 2014 -0400
Committer: Suresh Marru <sm...@apache.org>
Committed: Sun Jun 29 09:57:05 2014 -0400

----------------------------------------------------------------------
 .../appCatalogModels.thrift                     | 24 ++++++++++++++++++++
 1 file changed, 24 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/a1bf4397/airavata-api/thrift-interface-descriptions/appCatalogModels.thrift
----------------------------------------------------------------------
diff --git a/airavata-api/thrift-interface-descriptions/appCatalogModels.thrift b/airavata-api/thrift-interface-descriptions/appCatalogModels.thrift
new file mode 100644
index 0000000..7397e33
--- /dev/null
+++ b/airavata-api/thrift-interface-descriptions/appCatalogModels.thrift
@@ -0,0 +1,24 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+include "computeHostModel.thrift"
+include "applicationDeploymentModel.thrift"
+include "applicationInterfaceModel.thrift"
+include "gatewayProfileModel.thrift"
\ No newline at end of file