airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shame...@apache.org
Subject [34/53] airavata git commit: Adding aurora-client project
Date Thu, 27 Oct 2016 21:32:27 GMT
http://git-wip-us.apache.org/repos/asf/airavata/blob/0f781b2e/modules/cloud/aurora-client/src/main/java/org/apache/airavata/cloud/aurora/client/sdk/GetQuotaResult.java
----------------------------------------------------------------------
diff --git a/modules/cloud/aurora-client/src/main/java/org/apache/airavata/cloud/aurora/client/sdk/GetQuotaResult.java b/modules/cloud/aurora-client/src/main/java/org/apache/airavata/cloud/aurora/client/sdk/GetQuotaResult.java
new file mode 100644
index 0000000..17b660c
--- /dev/null
+++ b/modules/cloud/aurora-client/src/main/java/org/apache/airavata/cloud/aurora/client/sdk/GetQuotaResult.java
@@ -0,0 +1,912 @@
+/**
+ * Autogenerated by Thrift Compiler (0.9.3)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ *  @generated
+ */
+package org.apache.airavata.cloud.aurora.client.sdk;
+
+import org.apache.thrift.scheme.IScheme;
+import org.apache.thrift.scheme.SchemeFactory;
+import org.apache.thrift.scheme.StandardScheme;
+
+import org.apache.thrift.scheme.TupleScheme;
+import org.apache.thrift.protocol.TTupleProtocol;
+import org.apache.thrift.protocol.TProtocolException;
+import org.apache.thrift.EncodingUtils;
+import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
+import java.util.List;
+import java.util.ArrayList;
+import java.util.Map;
+import java.util.HashMap;
+import java.util.EnumMap;
+import java.util.Set;
+import java.util.HashSet;
+import java.util.EnumSet;
+import java.util.Collections;
+import java.util.BitSet;
+import java.nio.ByteBuffer;
+import java.util.Arrays;
+import javax.annotation.Generated;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-10-21")
+public class GetQuotaResult implements org.apache.thrift.TBase<GetQuotaResult, GetQuotaResult._Fields>, java.io.Serializable, Cloneable, Comparable<GetQuotaResult> {
+  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetQuotaResult");
+
+  private static final org.apache.thrift.protocol.TField QUOTA_FIELD_DESC = new org.apache.thrift.protocol.TField("quota", org.apache.thrift.protocol.TType.STRUCT, (short)1);
+  private static final org.apache.thrift.protocol.TField PROD_SHARED_CONSUMPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("prodSharedConsumption", org.apache.thrift.protocol.TType.STRUCT, (short)2);
+  private static final org.apache.thrift.protocol.TField NON_PROD_SHARED_CONSUMPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("nonProdSharedConsumption", org.apache.thrift.protocol.TType.STRUCT, (short)3);
+  private static final org.apache.thrift.protocol.TField PROD_DEDICATED_CONSUMPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("prodDedicatedConsumption", org.apache.thrift.protocol.TType.STRUCT, (short)4);
+  private static final org.apache.thrift.protocol.TField NON_PROD_DEDICATED_CONSUMPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("nonProdDedicatedConsumption", org.apache.thrift.protocol.TType.STRUCT, (short)5);
+
+  private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+  static {
+    schemes.put(StandardScheme.class, new GetQuotaResultStandardSchemeFactory());
+    schemes.put(TupleScheme.class, new GetQuotaResultTupleSchemeFactory());
+  }
+
+  /**
+   * Total allocated resource quota.
+   */
+  public ResourceAggregate quota; // required
+  /**
+   * Resources consumed by production jobs from a shared resource pool.
+   */
+  public ResourceAggregate prodSharedConsumption; // optional
+  /**
+   * Resources consumed by non-production jobs from a shared resource pool.
+   */
+  public ResourceAggregate nonProdSharedConsumption; // optional
+  /**
+   * Resources consumed by production jobs from a dedicated resource pool.
+   */
+  public ResourceAggregate prodDedicatedConsumption; // optional
+  /**
+   * Resources consumed by non-production jobs from a dedicated resource pool.
+   */
+  public ResourceAggregate nonProdDedicatedConsumption; // optional
+
+  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
+  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+    /**
+     * Total allocated resource quota.
+     */
+    QUOTA((short)1, "quota"),
+    /**
+     * Resources consumed by production jobs from a shared resource pool.
+     */
+    PROD_SHARED_CONSUMPTION((short)2, "prodSharedConsumption"),
+    /**
+     * Resources consumed by non-production jobs from a shared resource pool.
+     */
+    NON_PROD_SHARED_CONSUMPTION((short)3, "nonProdSharedConsumption"),
+    /**
+     * Resources consumed by production jobs from a dedicated resource pool.
+     */
+    PROD_DEDICATED_CONSUMPTION((short)4, "prodDedicatedConsumption"),
+    /**
+     * Resources consumed by non-production jobs from a dedicated resource pool.
+     */
+    NON_PROD_DEDICATED_CONSUMPTION((short)5, "nonProdDedicatedConsumption");
+
+    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: // QUOTA
+          return QUOTA;
+        case 2: // PROD_SHARED_CONSUMPTION
+          return PROD_SHARED_CONSUMPTION;
+        case 3: // NON_PROD_SHARED_CONSUMPTION
+          return NON_PROD_SHARED_CONSUMPTION;
+        case 4: // PROD_DEDICATED_CONSUMPTION
+          return PROD_DEDICATED_CONSUMPTION;
+        case 5: // NON_PROD_DEDICATED_CONSUMPTION
+          return NON_PROD_DEDICATED_CONSUMPTION;
+        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 _Fields optionals[] = {_Fields.PROD_SHARED_CONSUMPTION,_Fields.NON_PROD_SHARED_CONSUMPTION,_Fields.PROD_DEDICATED_CONSUMPTION,_Fields.NON_PROD_DEDICATED_CONSUMPTION};
+  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.QUOTA, new org.apache.thrift.meta_data.FieldMetaData("quota", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ResourceAggregate.class)));
+    tmpMap.put(_Fields.PROD_SHARED_CONSUMPTION, new org.apache.thrift.meta_data.FieldMetaData("prodSharedConsumption", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
+        new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ResourceAggregate.class)));
+    tmpMap.put(_Fields.NON_PROD_SHARED_CONSUMPTION, new org.apache.thrift.meta_data.FieldMetaData("nonProdSharedConsumption", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
+        new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ResourceAggregate.class)));
+    tmpMap.put(_Fields.PROD_DEDICATED_CONSUMPTION, new org.apache.thrift.meta_data.FieldMetaData("prodDedicatedConsumption", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
+        new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ResourceAggregate.class)));
+    tmpMap.put(_Fields.NON_PROD_DEDICATED_CONSUMPTION, new org.apache.thrift.meta_data.FieldMetaData("nonProdDedicatedConsumption", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
+        new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ResourceAggregate.class)));
+    metaDataMap = Collections.unmodifiableMap(tmpMap);
+    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetQuotaResult.class, metaDataMap);
+  }
+
+  public GetQuotaResult() {
+  }
+
+  public GetQuotaResult(
+    ResourceAggregate quota)
+  {
+    this();
+    this.quota = quota;
+  }
+
+  /**
+   * Performs a deep copy on <i>other</i>.
+   */
+  public GetQuotaResult(GetQuotaResult other) {
+    if (other.isSetQuota()) {
+      this.quota = new ResourceAggregate(other.quota);
+    }
+    if (other.isSetProdSharedConsumption()) {
+      this.prodSharedConsumption = new ResourceAggregate(other.prodSharedConsumption);
+    }
+    if (other.isSetNonProdSharedConsumption()) {
+      this.nonProdSharedConsumption = new ResourceAggregate(other.nonProdSharedConsumption);
+    }
+    if (other.isSetProdDedicatedConsumption()) {
+      this.prodDedicatedConsumption = new ResourceAggregate(other.prodDedicatedConsumption);
+    }
+    if (other.isSetNonProdDedicatedConsumption()) {
+      this.nonProdDedicatedConsumption = new ResourceAggregate(other.nonProdDedicatedConsumption);
+    }
+  }
+
+  public GetQuotaResult deepCopy() {
+    return new GetQuotaResult(this);
+  }
+
+  @Override
+  public void clear() {
+    this.quota = null;
+    this.prodSharedConsumption = null;
+    this.nonProdSharedConsumption = null;
+    this.prodDedicatedConsumption = null;
+    this.nonProdDedicatedConsumption = null;
+  }
+
+  /**
+   * Total allocated resource quota.
+   */
+  public ResourceAggregate getQuota() {
+    return this.quota;
+  }
+
+  /**
+   * Total allocated resource quota.
+   */
+  public GetQuotaResult setQuota(ResourceAggregate quota) {
+    this.quota = quota;
+    return this;
+  }
+
+  public void unsetQuota() {
+    this.quota = null;
+  }
+
+  /** Returns true if field quota is set (has been assigned a value) and false otherwise */
+  public boolean isSetQuota() {
+    return this.quota != null;
+  }
+
+  public void setQuotaIsSet(boolean value) {
+    if (!value) {
+      this.quota = null;
+    }
+  }
+
+  /**
+   * Resources consumed by production jobs from a shared resource pool.
+   */
+  public ResourceAggregate getProdSharedConsumption() {
+    return this.prodSharedConsumption;
+  }
+
+  /**
+   * Resources consumed by production jobs from a shared resource pool.
+   */
+  public GetQuotaResult setProdSharedConsumption(ResourceAggregate prodSharedConsumption) {
+    this.prodSharedConsumption = prodSharedConsumption;
+    return this;
+  }
+
+  public void unsetProdSharedConsumption() {
+    this.prodSharedConsumption = null;
+  }
+
+  /** Returns true if field prodSharedConsumption is set (has been assigned a value) and false otherwise */
+  public boolean isSetProdSharedConsumption() {
+    return this.prodSharedConsumption != null;
+  }
+
+  public void setProdSharedConsumptionIsSet(boolean value) {
+    if (!value) {
+      this.prodSharedConsumption = null;
+    }
+  }
+
+  /**
+   * Resources consumed by non-production jobs from a shared resource pool.
+   */
+  public ResourceAggregate getNonProdSharedConsumption() {
+    return this.nonProdSharedConsumption;
+  }
+
+  /**
+   * Resources consumed by non-production jobs from a shared resource pool.
+   */
+  public GetQuotaResult setNonProdSharedConsumption(ResourceAggregate nonProdSharedConsumption) {
+    this.nonProdSharedConsumption = nonProdSharedConsumption;
+    return this;
+  }
+
+  public void unsetNonProdSharedConsumption() {
+    this.nonProdSharedConsumption = null;
+  }
+
+  /** Returns true if field nonProdSharedConsumption is set (has been assigned a value) and false otherwise */
+  public boolean isSetNonProdSharedConsumption() {
+    return this.nonProdSharedConsumption != null;
+  }
+
+  public void setNonProdSharedConsumptionIsSet(boolean value) {
+    if (!value) {
+      this.nonProdSharedConsumption = null;
+    }
+  }
+
+  /**
+   * Resources consumed by production jobs from a dedicated resource pool.
+   */
+  public ResourceAggregate getProdDedicatedConsumption() {
+    return this.prodDedicatedConsumption;
+  }
+
+  /**
+   * Resources consumed by production jobs from a dedicated resource pool.
+   */
+  public GetQuotaResult setProdDedicatedConsumption(ResourceAggregate prodDedicatedConsumption) {
+    this.prodDedicatedConsumption = prodDedicatedConsumption;
+    return this;
+  }
+
+  public void unsetProdDedicatedConsumption() {
+    this.prodDedicatedConsumption = null;
+  }
+
+  /** Returns true if field prodDedicatedConsumption is set (has been assigned a value) and false otherwise */
+  public boolean isSetProdDedicatedConsumption() {
+    return this.prodDedicatedConsumption != null;
+  }
+
+  public void setProdDedicatedConsumptionIsSet(boolean value) {
+    if (!value) {
+      this.prodDedicatedConsumption = null;
+    }
+  }
+
+  /**
+   * Resources consumed by non-production jobs from a dedicated resource pool.
+   */
+  public ResourceAggregate getNonProdDedicatedConsumption() {
+    return this.nonProdDedicatedConsumption;
+  }
+
+  /**
+   * Resources consumed by non-production jobs from a dedicated resource pool.
+   */
+  public GetQuotaResult setNonProdDedicatedConsumption(ResourceAggregate nonProdDedicatedConsumption) {
+    this.nonProdDedicatedConsumption = nonProdDedicatedConsumption;
+    return this;
+  }
+
+  public void unsetNonProdDedicatedConsumption() {
+    this.nonProdDedicatedConsumption = null;
+  }
+
+  /** Returns true if field nonProdDedicatedConsumption is set (has been assigned a value) and false otherwise */
+  public boolean isSetNonProdDedicatedConsumption() {
+    return this.nonProdDedicatedConsumption != null;
+  }
+
+  public void setNonProdDedicatedConsumptionIsSet(boolean value) {
+    if (!value) {
+      this.nonProdDedicatedConsumption = null;
+    }
+  }
+
+  public void setFieldValue(_Fields field, Object value) {
+    switch (field) {
+    case QUOTA:
+      if (value == null) {
+        unsetQuota();
+      } else {
+        setQuota((ResourceAggregate)value);
+      }
+      break;
+
+    case PROD_SHARED_CONSUMPTION:
+      if (value == null) {
+        unsetProdSharedConsumption();
+      } else {
+        setProdSharedConsumption((ResourceAggregate)value);
+      }
+      break;
+
+    case NON_PROD_SHARED_CONSUMPTION:
+      if (value == null) {
+        unsetNonProdSharedConsumption();
+      } else {
+        setNonProdSharedConsumption((ResourceAggregate)value);
+      }
+      break;
+
+    case PROD_DEDICATED_CONSUMPTION:
+      if (value == null) {
+        unsetProdDedicatedConsumption();
+      } else {
+        setProdDedicatedConsumption((ResourceAggregate)value);
+      }
+      break;
+
+    case NON_PROD_DEDICATED_CONSUMPTION:
+      if (value == null) {
+        unsetNonProdDedicatedConsumption();
+      } else {
+        setNonProdDedicatedConsumption((ResourceAggregate)value);
+      }
+      break;
+
+    }
+  }
+
+  public Object getFieldValue(_Fields field) {
+    switch (field) {
+    case QUOTA:
+      return getQuota();
+
+    case PROD_SHARED_CONSUMPTION:
+      return getProdSharedConsumption();
+
+    case NON_PROD_SHARED_CONSUMPTION:
+      return getNonProdSharedConsumption();
+
+    case PROD_DEDICATED_CONSUMPTION:
+      return getProdDedicatedConsumption();
+
+    case NON_PROD_DEDICATED_CONSUMPTION:
+      return getNonProdDedicatedConsumption();
+
+    }
+    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 QUOTA:
+      return isSetQuota();
+    case PROD_SHARED_CONSUMPTION:
+      return isSetProdSharedConsumption();
+    case NON_PROD_SHARED_CONSUMPTION:
+      return isSetNonProdSharedConsumption();
+    case PROD_DEDICATED_CONSUMPTION:
+      return isSetProdDedicatedConsumption();
+    case NON_PROD_DEDICATED_CONSUMPTION:
+      return isSetNonProdDedicatedConsumption();
+    }
+    throw new IllegalStateException();
+  }
+
+  @Override
+  public boolean equals(Object that) {
+    if (that == null)
+      return false;
+    if (that instanceof GetQuotaResult)
+      return this.equals((GetQuotaResult)that);
+    return false;
+  }
+
+  public boolean equals(GetQuotaResult that) {
+    if (that == null)
+      return false;
+
+    boolean this_present_quota = true && this.isSetQuota();
+    boolean that_present_quota = true && that.isSetQuota();
+    if (this_present_quota || that_present_quota) {
+      if (!(this_present_quota && that_present_quota))
+        return false;
+      if (!this.quota.equals(that.quota))
+        return false;
+    }
+
+    boolean this_present_prodSharedConsumption = true && this.isSetProdSharedConsumption();
+    boolean that_present_prodSharedConsumption = true && that.isSetProdSharedConsumption();
+    if (this_present_prodSharedConsumption || that_present_prodSharedConsumption) {
+      if (!(this_present_prodSharedConsumption && that_present_prodSharedConsumption))
+        return false;
+      if (!this.prodSharedConsumption.equals(that.prodSharedConsumption))
+        return false;
+    }
+
+    boolean this_present_nonProdSharedConsumption = true && this.isSetNonProdSharedConsumption();
+    boolean that_present_nonProdSharedConsumption = true && that.isSetNonProdSharedConsumption();
+    if (this_present_nonProdSharedConsumption || that_present_nonProdSharedConsumption) {
+      if (!(this_present_nonProdSharedConsumption && that_present_nonProdSharedConsumption))
+        return false;
+      if (!this.nonProdSharedConsumption.equals(that.nonProdSharedConsumption))
+        return false;
+    }
+
+    boolean this_present_prodDedicatedConsumption = true && this.isSetProdDedicatedConsumption();
+    boolean that_present_prodDedicatedConsumption = true && that.isSetProdDedicatedConsumption();
+    if (this_present_prodDedicatedConsumption || that_present_prodDedicatedConsumption) {
+      if (!(this_present_prodDedicatedConsumption && that_present_prodDedicatedConsumption))
+        return false;
+      if (!this.prodDedicatedConsumption.equals(that.prodDedicatedConsumption))
+        return false;
+    }
+
+    boolean this_present_nonProdDedicatedConsumption = true && this.isSetNonProdDedicatedConsumption();
+    boolean that_present_nonProdDedicatedConsumption = true && that.isSetNonProdDedicatedConsumption();
+    if (this_present_nonProdDedicatedConsumption || that_present_nonProdDedicatedConsumption) {
+      if (!(this_present_nonProdDedicatedConsumption && that_present_nonProdDedicatedConsumption))
+        return false;
+      if (!this.nonProdDedicatedConsumption.equals(that.nonProdDedicatedConsumption))
+        return false;
+    }
+
+    return true;
+  }
+
+  @Override
+  public int hashCode() {
+    List<Object> list = new ArrayList<Object>();
+
+    boolean present_quota = true && (isSetQuota());
+    list.add(present_quota);
+    if (present_quota)
+      list.add(quota);
+
+    boolean present_prodSharedConsumption = true && (isSetProdSharedConsumption());
+    list.add(present_prodSharedConsumption);
+    if (present_prodSharedConsumption)
+      list.add(prodSharedConsumption);
+
+    boolean present_nonProdSharedConsumption = true && (isSetNonProdSharedConsumption());
+    list.add(present_nonProdSharedConsumption);
+    if (present_nonProdSharedConsumption)
+      list.add(nonProdSharedConsumption);
+
+    boolean present_prodDedicatedConsumption = true && (isSetProdDedicatedConsumption());
+    list.add(present_prodDedicatedConsumption);
+    if (present_prodDedicatedConsumption)
+      list.add(prodDedicatedConsumption);
+
+    boolean present_nonProdDedicatedConsumption = true && (isSetNonProdDedicatedConsumption());
+    list.add(present_nonProdDedicatedConsumption);
+    if (present_nonProdDedicatedConsumption)
+      list.add(nonProdDedicatedConsumption);
+
+    return list.hashCode();
+  }
+
+  @Override
+  public int compareTo(GetQuotaResult other) {
+    if (!getClass().equals(other.getClass())) {
+      return getClass().getName().compareTo(other.getClass().getName());
+    }
+
+    int lastComparison = 0;
+
+    lastComparison = Boolean.valueOf(isSetQuota()).compareTo(other.isSetQuota());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetQuota()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quota, other.quota);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetProdSharedConsumption()).compareTo(other.isSetProdSharedConsumption());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetProdSharedConsumption()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.prodSharedConsumption, other.prodSharedConsumption);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetNonProdSharedConsumption()).compareTo(other.isSetNonProdSharedConsumption());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetNonProdSharedConsumption()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nonProdSharedConsumption, other.nonProdSharedConsumption);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetProdDedicatedConsumption()).compareTo(other.isSetProdDedicatedConsumption());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetProdDedicatedConsumption()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.prodDedicatedConsumption, other.prodDedicatedConsumption);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetNonProdDedicatedConsumption()).compareTo(other.isSetNonProdDedicatedConsumption());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetNonProdDedicatedConsumption()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nonProdDedicatedConsumption, other.nonProdDedicatedConsumption);
+      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("GetQuotaResult(");
+    boolean first = true;
+
+    sb.append("quota:");
+    if (this.quota == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.quota);
+    }
+    first = false;
+    if (isSetProdSharedConsumption()) {
+      if (!first) sb.append(", ");
+      sb.append("prodSharedConsumption:");
+      if (this.prodSharedConsumption == null) {
+        sb.append("null");
+      } else {
+        sb.append(this.prodSharedConsumption);
+      }
+      first = false;
+    }
+    if (isSetNonProdSharedConsumption()) {
+      if (!first) sb.append(", ");
+      sb.append("nonProdSharedConsumption:");
+      if (this.nonProdSharedConsumption == null) {
+        sb.append("null");
+      } else {
+        sb.append(this.nonProdSharedConsumption);
+      }
+      first = false;
+    }
+    if (isSetProdDedicatedConsumption()) {
+      if (!first) sb.append(", ");
+      sb.append("prodDedicatedConsumption:");
+      if (this.prodDedicatedConsumption == null) {
+        sb.append("null");
+      } else {
+        sb.append(this.prodDedicatedConsumption);
+      }
+      first = false;
+    }
+    if (isSetNonProdDedicatedConsumption()) {
+      if (!first) sb.append(", ");
+      sb.append("nonProdDedicatedConsumption:");
+      if (this.nonProdDedicatedConsumption == null) {
+        sb.append("null");
+      } else {
+        sb.append(this.nonProdDedicatedConsumption);
+      }
+      first = false;
+    }
+    sb.append(")");
+    return sb.toString();
+  }
+
+  public void validate() throws org.apache.thrift.TException {
+    // check for required fields
+    // check for sub-struct validity
+    if (quota != null) {
+      quota.validate();
+    }
+    if (prodSharedConsumption != null) {
+      prodSharedConsumption.validate();
+    }
+    if (nonProdSharedConsumption != null) {
+      nonProdSharedConsumption.validate();
+    }
+    if (prodDedicatedConsumption != null) {
+      prodDedicatedConsumption.validate();
+    }
+    if (nonProdDedicatedConsumption != null) {
+      nonProdDedicatedConsumption.validate();
+    }
+  }
+
+  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+    try {
+      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
+    } catch (org.apache.thrift.TException te) {
+      throw new java.io.IOException(te);
+    }
+  }
+
+  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+    try {
+      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
+    } catch (org.apache.thrift.TException te) {
+      throw new java.io.IOException(te);
+    }
+  }
+
+  private static class GetQuotaResultStandardSchemeFactory implements SchemeFactory {
+    public GetQuotaResultStandardScheme getScheme() {
+      return new GetQuotaResultStandardScheme();
+    }
+  }
+
+  private static class GetQuotaResultStandardScheme extends StandardScheme<GetQuotaResult> {
+
+    public void read(org.apache.thrift.protocol.TProtocol iprot, GetQuotaResult 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: // QUOTA
+            if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
+              struct.quota = new ResourceAggregate();
+              struct.quota.read(iprot);
+              struct.setQuotaIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 2: // PROD_SHARED_CONSUMPTION
+            if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
+              struct.prodSharedConsumption = new ResourceAggregate();
+              struct.prodSharedConsumption.read(iprot);
+              struct.setProdSharedConsumptionIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 3: // NON_PROD_SHARED_CONSUMPTION
+            if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
+              struct.nonProdSharedConsumption = new ResourceAggregate();
+              struct.nonProdSharedConsumption.read(iprot);
+              struct.setNonProdSharedConsumptionIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 4: // PROD_DEDICATED_CONSUMPTION
+            if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
+              struct.prodDedicatedConsumption = new ResourceAggregate();
+              struct.prodDedicatedConsumption.read(iprot);
+              struct.setProdDedicatedConsumptionIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 5: // NON_PROD_DEDICATED_CONSUMPTION
+            if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
+              struct.nonProdDedicatedConsumption = new ResourceAggregate();
+              struct.nonProdDedicatedConsumption.read(iprot);
+              struct.setNonProdDedicatedConsumptionIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          default:
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+        }
+        iprot.readFieldEnd();
+      }
+      iprot.readStructEnd();
+
+      // check for required fields of primitive type, which can't be checked in the validate method
+      struct.validate();
+    }
+
+    public void write(org.apache.thrift.protocol.TProtocol oprot, GetQuotaResult struct) throws org.apache.thrift.TException {
+      struct.validate();
+
+      oprot.writeStructBegin(STRUCT_DESC);
+      if (struct.quota != null) {
+        oprot.writeFieldBegin(QUOTA_FIELD_DESC);
+        struct.quota.write(oprot);
+        oprot.writeFieldEnd();
+      }
+      if (struct.prodSharedConsumption != null) {
+        if (struct.isSetProdSharedConsumption()) {
+          oprot.writeFieldBegin(PROD_SHARED_CONSUMPTION_FIELD_DESC);
+          struct.prodSharedConsumption.write(oprot);
+          oprot.writeFieldEnd();
+        }
+      }
+      if (struct.nonProdSharedConsumption != null) {
+        if (struct.isSetNonProdSharedConsumption()) {
+          oprot.writeFieldBegin(NON_PROD_SHARED_CONSUMPTION_FIELD_DESC);
+          struct.nonProdSharedConsumption.write(oprot);
+          oprot.writeFieldEnd();
+        }
+      }
+      if (struct.prodDedicatedConsumption != null) {
+        if (struct.isSetProdDedicatedConsumption()) {
+          oprot.writeFieldBegin(PROD_DEDICATED_CONSUMPTION_FIELD_DESC);
+          struct.prodDedicatedConsumption.write(oprot);
+          oprot.writeFieldEnd();
+        }
+      }
+      if (struct.nonProdDedicatedConsumption != null) {
+        if (struct.isSetNonProdDedicatedConsumption()) {
+          oprot.writeFieldBegin(NON_PROD_DEDICATED_CONSUMPTION_FIELD_DESC);
+          struct.nonProdDedicatedConsumption.write(oprot);
+          oprot.writeFieldEnd();
+        }
+      }
+      oprot.writeFieldStop();
+      oprot.writeStructEnd();
+    }
+
+  }
+
+  private static class GetQuotaResultTupleSchemeFactory implements SchemeFactory {
+    public GetQuotaResultTupleScheme getScheme() {
+      return new GetQuotaResultTupleScheme();
+    }
+  }
+
+  private static class GetQuotaResultTupleScheme extends TupleScheme<GetQuotaResult> {
+
+    @Override
+    public void write(org.apache.thrift.protocol.TProtocol prot, GetQuotaResult struct) throws org.apache.thrift.TException {
+      TTupleProtocol oprot = (TTupleProtocol) prot;
+      BitSet optionals = new BitSet();
+      if (struct.isSetQuota()) {
+        optionals.set(0);
+      }
+      if (struct.isSetProdSharedConsumption()) {
+        optionals.set(1);
+      }
+      if (struct.isSetNonProdSharedConsumption()) {
+        optionals.set(2);
+      }
+      if (struct.isSetProdDedicatedConsumption()) {
+        optionals.set(3);
+      }
+      if (struct.isSetNonProdDedicatedConsumption()) {
+        optionals.set(4);
+      }
+      oprot.writeBitSet(optionals, 5);
+      if (struct.isSetQuota()) {
+        struct.quota.write(oprot);
+      }
+      if (struct.isSetProdSharedConsumption()) {
+        struct.prodSharedConsumption.write(oprot);
+      }
+      if (struct.isSetNonProdSharedConsumption()) {
+        struct.nonProdSharedConsumption.write(oprot);
+      }
+      if (struct.isSetProdDedicatedConsumption()) {
+        struct.prodDedicatedConsumption.write(oprot);
+      }
+      if (struct.isSetNonProdDedicatedConsumption()) {
+        struct.nonProdDedicatedConsumption.write(oprot);
+      }
+    }
+
+    @Override
+    public void read(org.apache.thrift.protocol.TProtocol prot, GetQuotaResult struct) throws org.apache.thrift.TException {
+      TTupleProtocol iprot = (TTupleProtocol) prot;
+      BitSet incoming = iprot.readBitSet(5);
+      if (incoming.get(0)) {
+        struct.quota = new ResourceAggregate();
+        struct.quota.read(iprot);
+        struct.setQuotaIsSet(true);
+      }
+      if (incoming.get(1)) {
+        struct.prodSharedConsumption = new ResourceAggregate();
+        struct.prodSharedConsumption.read(iprot);
+        struct.setProdSharedConsumptionIsSet(true);
+      }
+      if (incoming.get(2)) {
+        struct.nonProdSharedConsumption = new ResourceAggregate();
+        struct.nonProdSharedConsumption.read(iprot);
+        struct.setNonProdSharedConsumptionIsSet(true);
+      }
+      if (incoming.get(3)) {
+        struct.prodDedicatedConsumption = new ResourceAggregate();
+        struct.prodDedicatedConsumption.read(iprot);
+        struct.setProdDedicatedConsumptionIsSet(true);
+      }
+      if (incoming.get(4)) {
+        struct.nonProdDedicatedConsumption = new ResourceAggregate();
+        struct.nonProdDedicatedConsumption.read(iprot);
+        struct.setNonProdDedicatedConsumptionIsSet(true);
+      }
+    }
+  }
+
+}
+

http://git-wip-us.apache.org/repos/asf/airavata/blob/0f781b2e/modules/cloud/aurora-client/src/main/java/org/apache/airavata/cloud/aurora/client/sdk/GetTierConfigResult.java
----------------------------------------------------------------------
diff --git a/modules/cloud/aurora-client/src/main/java/org/apache/airavata/cloud/aurora/client/sdk/GetTierConfigResult.java b/modules/cloud/aurora-client/src/main/java/org/apache/airavata/cloud/aurora/client/sdk/GetTierConfigResult.java
new file mode 100644
index 0000000..9da9ecd
--- /dev/null
+++ b/modules/cloud/aurora-client/src/main/java/org/apache/airavata/cloud/aurora/client/sdk/GetTierConfigResult.java
@@ -0,0 +1,584 @@
+/**
+ * Autogenerated by Thrift Compiler (0.9.3)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ *  @generated
+ */
+package org.apache.airavata.cloud.aurora.client.sdk;
+
+import org.apache.thrift.scheme.IScheme;
+import org.apache.thrift.scheme.SchemeFactory;
+import org.apache.thrift.scheme.StandardScheme;
+
+import org.apache.thrift.scheme.TupleScheme;
+import org.apache.thrift.protocol.TTupleProtocol;
+import org.apache.thrift.protocol.TProtocolException;
+import org.apache.thrift.EncodingUtils;
+import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
+import java.util.List;
+import java.util.ArrayList;
+import java.util.Map;
+import java.util.HashMap;
+import java.util.EnumMap;
+import java.util.Set;
+import java.util.HashSet;
+import java.util.EnumSet;
+import java.util.Collections;
+import java.util.BitSet;
+import java.nio.ByteBuffer;
+import java.util.Arrays;
+import javax.annotation.Generated;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+/**
+ * Result of the getTierConfigResult call.
+ */
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-10-21")
+public class GetTierConfigResult implements org.apache.thrift.TBase<GetTierConfigResult, GetTierConfigResult._Fields>, java.io.Serializable, Cloneable, Comparable<GetTierConfigResult> {
+  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetTierConfigResult");
+
+  private static final org.apache.thrift.protocol.TField DEFAULT_TIER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("defaultTierName", org.apache.thrift.protocol.TType.STRING, (short)1);
+  private static final org.apache.thrift.protocol.TField TIERS_FIELD_DESC = new org.apache.thrift.protocol.TField("tiers", org.apache.thrift.protocol.TType.SET, (short)2);
+
+  private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+  static {
+    schemes.put(StandardScheme.class, new GetTierConfigResultStandardSchemeFactory());
+    schemes.put(TupleScheme.class, new GetTierConfigResultTupleSchemeFactory());
+  }
+
+  /**
+   * Name of the default tier.
+   */
+  public String defaultTierName; // required
+  /**
+   * Set of tier configurations.
+   */
+  public Set<TierConfig> tiers; // required
+
+  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
+  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+    /**
+     * Name of the default tier.
+     */
+    DEFAULT_TIER_NAME((short)1, "defaultTierName"),
+    /**
+     * Set of tier configurations.
+     */
+    TIERS((short)2, "tiers");
+
+    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: // DEFAULT_TIER_NAME
+          return DEFAULT_TIER_NAME;
+        case 2: // TIERS
+          return TIERS;
+        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.DEFAULT_TIER_NAME, new org.apache.thrift.meta_data.FieldMetaData("defaultTierName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+    tmpMap.put(_Fields.TIERS, new org.apache.thrift.meta_data.FieldMetaData("tiers", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, 
+            new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TierConfig.class))));
+    metaDataMap = Collections.unmodifiableMap(tmpMap);
+    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetTierConfigResult.class, metaDataMap);
+  }
+
+  public GetTierConfigResult() {
+  }
+
+  public GetTierConfigResult(
+    String defaultTierName,
+    Set<TierConfig> tiers)
+  {
+    this();
+    this.defaultTierName = defaultTierName;
+    this.tiers = tiers;
+  }
+
+  /**
+   * Performs a deep copy on <i>other</i>.
+   */
+  public GetTierConfigResult(GetTierConfigResult other) {
+    if (other.isSetDefaultTierName()) {
+      this.defaultTierName = other.defaultTierName;
+    }
+    if (other.isSetTiers()) {
+      Set<TierConfig> __this__tiers = new HashSet<TierConfig>(other.tiers.size());
+      for (TierConfig other_element : other.tiers) {
+        __this__tiers.add(new TierConfig(other_element));
+      }
+      this.tiers = __this__tiers;
+    }
+  }
+
+  public GetTierConfigResult deepCopy() {
+    return new GetTierConfigResult(this);
+  }
+
+  @Override
+  public void clear() {
+    this.defaultTierName = null;
+    this.tiers = null;
+  }
+
+  /**
+   * Name of the default tier.
+   */
+  public String getDefaultTierName() {
+    return this.defaultTierName;
+  }
+
+  /**
+   * Name of the default tier.
+   */
+  public GetTierConfigResult setDefaultTierName(String defaultTierName) {
+    this.defaultTierName = defaultTierName;
+    return this;
+  }
+
+  public void unsetDefaultTierName() {
+    this.defaultTierName = null;
+  }
+
+  /** Returns true if field defaultTierName is set (has been assigned a value) and false otherwise */
+  public boolean isSetDefaultTierName() {
+    return this.defaultTierName != null;
+  }
+
+  public void setDefaultTierNameIsSet(boolean value) {
+    if (!value) {
+      this.defaultTierName = null;
+    }
+  }
+
+  public int getTiersSize() {
+    return (this.tiers == null) ? 0 : this.tiers.size();
+  }
+
+  public java.util.Iterator<TierConfig> getTiersIterator() {
+    return (this.tiers == null) ? null : this.tiers.iterator();
+  }
+
+  public void addToTiers(TierConfig elem) {
+    if (this.tiers == null) {
+      this.tiers = new HashSet<TierConfig>();
+    }
+    this.tiers.add(elem);
+  }
+
+  /**
+   * Set of tier configurations.
+   */
+  public Set<TierConfig> getTiers() {
+    return this.tiers;
+  }
+
+  /**
+   * Set of tier configurations.
+   */
+  public GetTierConfigResult setTiers(Set<TierConfig> tiers) {
+    this.tiers = tiers;
+    return this;
+  }
+
+  public void unsetTiers() {
+    this.tiers = null;
+  }
+
+  /** Returns true if field tiers is set (has been assigned a value) and false otherwise */
+  public boolean isSetTiers() {
+    return this.tiers != null;
+  }
+
+  public void setTiersIsSet(boolean value) {
+    if (!value) {
+      this.tiers = null;
+    }
+  }
+
+  public void setFieldValue(_Fields field, Object value) {
+    switch (field) {
+    case DEFAULT_TIER_NAME:
+      if (value == null) {
+        unsetDefaultTierName();
+      } else {
+        setDefaultTierName((String)value);
+      }
+      break;
+
+    case TIERS:
+      if (value == null) {
+        unsetTiers();
+      } else {
+        setTiers((Set<TierConfig>)value);
+      }
+      break;
+
+    }
+  }
+
+  public Object getFieldValue(_Fields field) {
+    switch (field) {
+    case DEFAULT_TIER_NAME:
+      return getDefaultTierName();
+
+    case TIERS:
+      return getTiers();
+
+    }
+    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 DEFAULT_TIER_NAME:
+      return isSetDefaultTierName();
+    case TIERS:
+      return isSetTiers();
+    }
+    throw new IllegalStateException();
+  }
+
+  @Override
+  public boolean equals(Object that) {
+    if (that == null)
+      return false;
+    if (that instanceof GetTierConfigResult)
+      return this.equals((GetTierConfigResult)that);
+    return false;
+  }
+
+  public boolean equals(GetTierConfigResult that) {
+    if (that == null)
+      return false;
+
+    boolean this_present_defaultTierName = true && this.isSetDefaultTierName();
+    boolean that_present_defaultTierName = true && that.isSetDefaultTierName();
+    if (this_present_defaultTierName || that_present_defaultTierName) {
+      if (!(this_present_defaultTierName && that_present_defaultTierName))
+        return false;
+      if (!this.defaultTierName.equals(that.defaultTierName))
+        return false;
+    }
+
+    boolean this_present_tiers = true && this.isSetTiers();
+    boolean that_present_tiers = true && that.isSetTiers();
+    if (this_present_tiers || that_present_tiers) {
+      if (!(this_present_tiers && that_present_tiers))
+        return false;
+      if (!this.tiers.equals(that.tiers))
+        return false;
+    }
+
+    return true;
+  }
+
+  @Override
+  public int hashCode() {
+    List<Object> list = new ArrayList<Object>();
+
+    boolean present_defaultTierName = true && (isSetDefaultTierName());
+    list.add(present_defaultTierName);
+    if (present_defaultTierName)
+      list.add(defaultTierName);
+
+    boolean present_tiers = true && (isSetTiers());
+    list.add(present_tiers);
+    if (present_tiers)
+      list.add(tiers);
+
+    return list.hashCode();
+  }
+
+  @Override
+  public int compareTo(GetTierConfigResult other) {
+    if (!getClass().equals(other.getClass())) {
+      return getClass().getName().compareTo(other.getClass().getName());
+    }
+
+    int lastComparison = 0;
+
+    lastComparison = Boolean.valueOf(isSetDefaultTierName()).compareTo(other.isSetDefaultTierName());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetDefaultTierName()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.defaultTierName, other.defaultTierName);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetTiers()).compareTo(other.isSetTiers());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetTiers()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tiers, other.tiers);
+      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("GetTierConfigResult(");
+    boolean first = true;
+
+    sb.append("defaultTierName:");
+    if (this.defaultTierName == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.defaultTierName);
+    }
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("tiers:");
+    if (this.tiers == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.tiers);
+    }
+    first = false;
+    sb.append(")");
+    return sb.toString();
+  }
+
+  public void validate() throws org.apache.thrift.TException {
+    // check for required fields
+    // check for sub-struct validity
+  }
+
+  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+    try {
+      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
+    } catch (org.apache.thrift.TException te) {
+      throw new java.io.IOException(te);
+    }
+  }
+
+  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+    try {
+      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 GetTierConfigResultStandardSchemeFactory implements SchemeFactory {
+    public GetTierConfigResultStandardScheme getScheme() {
+      return new GetTierConfigResultStandardScheme();
+    }
+  }
+
+  private static class GetTierConfigResultStandardScheme extends StandardScheme<GetTierConfigResult> {
+
+    public void read(org.apache.thrift.protocol.TProtocol iprot, GetTierConfigResult 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: // DEFAULT_TIER_NAME
+            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+              struct.defaultTierName = iprot.readString();
+              struct.setDefaultTierNameIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 2: // TIERS
+            if (schemeField.type == org.apache.thrift.protocol.TType.SET) {
+              {
+                org.apache.thrift.protocol.TSet _set384 = iprot.readSetBegin();
+                struct.tiers = new HashSet<TierConfig>(2*_set384.size);
+                TierConfig _elem385;
+                for (int _i386 = 0; _i386 < _set384.size; ++_i386)
+                {
+                  _elem385 = new TierConfig();
+                  _elem385.read(iprot);
+                  struct.tiers.add(_elem385);
+                }
+                iprot.readSetEnd();
+              }
+              struct.setTiersIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          default:
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+        }
+        iprot.readFieldEnd();
+      }
+      iprot.readStructEnd();
+
+      // check for required fields of primitive type, which can't be checked in the validate method
+      struct.validate();
+    }
+
+    public void write(org.apache.thrift.protocol.TProtocol oprot, GetTierConfigResult struct) throws org.apache.thrift.TException {
+      struct.validate();
+
+      oprot.writeStructBegin(STRUCT_DESC);
+      if (struct.defaultTierName != null) {
+        oprot.writeFieldBegin(DEFAULT_TIER_NAME_FIELD_DESC);
+        oprot.writeString(struct.defaultTierName);
+        oprot.writeFieldEnd();
+      }
+      if (struct.tiers != null) {
+        oprot.writeFieldBegin(TIERS_FIELD_DESC);
+        {
+          oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, struct.tiers.size()));
+          for (TierConfig _iter387 : struct.tiers)
+          {
+            _iter387.write(oprot);
+          }
+          oprot.writeSetEnd();
+        }
+        oprot.writeFieldEnd();
+      }
+      oprot.writeFieldStop();
+      oprot.writeStructEnd();
+    }
+
+  }
+
+  private static class GetTierConfigResultTupleSchemeFactory implements SchemeFactory {
+    public GetTierConfigResultTupleScheme getScheme() {
+      return new GetTierConfigResultTupleScheme();
+    }
+  }
+
+  private static class GetTierConfigResultTupleScheme extends TupleScheme<GetTierConfigResult> {
+
+    @Override
+    public void write(org.apache.thrift.protocol.TProtocol prot, GetTierConfigResult struct) throws org.apache.thrift.TException {
+      TTupleProtocol oprot = (TTupleProtocol) prot;
+      BitSet optionals = new BitSet();
+      if (struct.isSetDefaultTierName()) {
+        optionals.set(0);
+      }
+      if (struct.isSetTiers()) {
+        optionals.set(1);
+      }
+      oprot.writeBitSet(optionals, 2);
+      if (struct.isSetDefaultTierName()) {
+        oprot.writeString(struct.defaultTierName);
+      }
+      if (struct.isSetTiers()) {
+        {
+          oprot.writeI32(struct.tiers.size());
+          for (TierConfig _iter388 : struct.tiers)
+          {
+            _iter388.write(oprot);
+          }
+        }
+      }
+    }
+
+    @Override
+    public void read(org.apache.thrift.protocol.TProtocol prot, GetTierConfigResult struct) throws org.apache.thrift.TException {
+      TTupleProtocol iprot = (TTupleProtocol) prot;
+      BitSet incoming = iprot.readBitSet(2);
+      if (incoming.get(0)) {
+        struct.defaultTierName = iprot.readString();
+        struct.setDefaultTierNameIsSet(true);
+      }
+      if (incoming.get(1)) {
+        {
+          org.apache.thrift.protocol.TSet _set389 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+          struct.tiers = new HashSet<TierConfig>(2*_set389.size);
+          TierConfig _elem390;
+          for (int _i391 = 0; _i391 < _set389.size; ++_i391)
+          {
+            _elem390 = new TierConfig();
+            _elem390.read(iprot);
+            struct.tiers.add(_elem390);
+          }
+        }
+        struct.setTiersIsSet(true);
+      }
+    }
+  }
+
+}
+

http://git-wip-us.apache.org/repos/asf/airavata/blob/0f781b2e/modules/cloud/aurora-client/src/main/java/org/apache/airavata/cloud/aurora/client/sdk/HostAttributes.java
----------------------------------------------------------------------
diff --git a/modules/cloud/aurora-client/src/main/java/org/apache/airavata/cloud/aurora/client/sdk/HostAttributes.java b/modules/cloud/aurora-client/src/main/java/org/apache/airavata/cloud/aurora/client/sdk/HostAttributes.java
new file mode 100644
index 0000000..9f81579
--- /dev/null
+++ b/modules/cloud/aurora-client/src/main/java/org/apache/airavata/cloud/aurora/client/sdk/HostAttributes.java
@@ -0,0 +1,791 @@
+/**
+ * Autogenerated by Thrift Compiler (0.9.3)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ *  @generated
+ */
+package org.apache.airavata.cloud.aurora.client.sdk;
+
+import org.apache.thrift.scheme.IScheme;
+import org.apache.thrift.scheme.SchemeFactory;
+import org.apache.thrift.scheme.StandardScheme;
+
+import org.apache.thrift.scheme.TupleScheme;
+import org.apache.thrift.protocol.TTupleProtocol;
+import org.apache.thrift.protocol.TProtocolException;
+import org.apache.thrift.EncodingUtils;
+import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
+import java.util.List;
+import java.util.ArrayList;
+import java.util.Map;
+import java.util.HashMap;
+import java.util.EnumMap;
+import java.util.Set;
+import java.util.HashSet;
+import java.util.EnumSet;
+import java.util.Collections;
+import java.util.BitSet;
+import java.nio.ByteBuffer;
+import java.util.Arrays;
+import javax.annotation.Generated;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+/**
+ * The attributes assigned to a host.
+ */
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-10-21")
+public class HostAttributes implements org.apache.thrift.TBase<HostAttributes, HostAttributes._Fields>, java.io.Serializable, Cloneable, Comparable<HostAttributes> {
+  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("HostAttributes");
+
+  private static final org.apache.thrift.protocol.TField HOST_FIELD_DESC = new org.apache.thrift.protocol.TField("host", org.apache.thrift.protocol.TType.STRING, (short)1);
+  private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.SET, (short)2);
+  private static final org.apache.thrift.protocol.TField MODE_FIELD_DESC = new org.apache.thrift.protocol.TField("mode", org.apache.thrift.protocol.TType.I32, (short)3);
+  private static final org.apache.thrift.protocol.TField SLAVE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("slaveId", org.apache.thrift.protocol.TType.STRING, (short)4);
+
+  private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+  static {
+    schemes.put(StandardScheme.class, new HostAttributesStandardSchemeFactory());
+    schemes.put(TupleScheme.class, new HostAttributesTupleSchemeFactory());
+  }
+
+  public String host; // required
+  public Set<Attribute> attributes; // required
+  /**
+   * 
+   * @see MaintenanceMode
+   */
+  public MaintenanceMode mode; // optional
+  public String slaveId; // optional
+
+  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
+  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+    HOST((short)1, "host"),
+    ATTRIBUTES((short)2, "attributes"),
+    /**
+     * 
+     * @see MaintenanceMode
+     */
+    MODE((short)3, "mode"),
+    SLAVE_ID((short)4, "slaveId");
+
+    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+
+    static {
+      for (_Fields field : EnumSet.allOf(_Fields.class)) {
+        byName.put(field.getFieldName(), field);
+      }
+    }
+
+    /**
+     * Find the _Fields constant that matches fieldId, or null if its not found.
+     */
+    public static _Fields findByThriftId(int fieldId) {
+      switch(fieldId) {
+        case 1: // HOST
+          return HOST;
+        case 2: // ATTRIBUTES
+          return ATTRIBUTES;
+        case 3: // MODE
+          return MODE;
+        case 4: // SLAVE_ID
+          return SLAVE_ID;
+        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 _Fields optionals[] = {_Fields.MODE,_Fields.SLAVE_ID};
+  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+  static {
+    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+    tmpMap.put(_Fields.HOST, new org.apache.thrift.meta_data.FieldMetaData("host", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+    tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, 
+            new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Attribute.class))));
+    tmpMap.put(_Fields.MODE, new org.apache.thrift.meta_data.FieldMetaData("mode", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
+        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, MaintenanceMode.class)));
+    tmpMap.put(_Fields.SLAVE_ID, new org.apache.thrift.meta_data.FieldMetaData("slaveId", 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(HostAttributes.class, metaDataMap);
+  }
+
+  public HostAttributes() {
+  }
+
+  public HostAttributes(
+    String host,
+    Set<Attribute> attributes)
+  {
+    this();
+    this.host = host;
+    this.attributes = attributes;
+  }
+
+  /**
+   * Performs a deep copy on <i>other</i>.
+   */
+  public HostAttributes(HostAttributes other) {
+    if (other.isSetHost()) {
+      this.host = other.host;
+    }
+    if (other.isSetAttributes()) {
+      Set<Attribute> __this__attributes = new HashSet<Attribute>(other.attributes.size());
+      for (Attribute other_element : other.attributes) {
+        __this__attributes.add(new Attribute(other_element));
+      }
+      this.attributes = __this__attributes;
+    }
+    if (other.isSetMode()) {
+      this.mode = other.mode;
+    }
+    if (other.isSetSlaveId()) {
+      this.slaveId = other.slaveId;
+    }
+  }
+
+  public HostAttributes deepCopy() {
+    return new HostAttributes(this);
+  }
+
+  @Override
+  public void clear() {
+    this.host = null;
+    this.attributes = null;
+    this.mode = null;
+    this.slaveId = null;
+  }
+
+  public String getHost() {
+    return this.host;
+  }
+
+  public HostAttributes setHost(String host) {
+    this.host = host;
+    return this;
+  }
+
+  public void unsetHost() {
+    this.host = null;
+  }
+
+  /** Returns true if field host is set (has been assigned a value) and false otherwise */
+  public boolean isSetHost() {
+    return this.host != null;
+  }
+
+  public void setHostIsSet(boolean value) {
+    if (!value) {
+      this.host = null;
+    }
+  }
+
+  public int getAttributesSize() {
+    return (this.attributes == null) ? 0 : this.attributes.size();
+  }
+
+  public java.util.Iterator<Attribute> getAttributesIterator() {
+    return (this.attributes == null) ? null : this.attributes.iterator();
+  }
+
+  public void addToAttributes(Attribute elem) {
+    if (this.attributes == null) {
+      this.attributes = new HashSet<Attribute>();
+    }
+    this.attributes.add(elem);
+  }
+
+  public Set<Attribute> getAttributes() {
+    return this.attributes;
+  }
+
+  public HostAttributes setAttributes(Set<Attribute> attributes) {
+    this.attributes = attributes;
+    return this;
+  }
+
+  public void unsetAttributes() {
+    this.attributes = null;
+  }
+
+  /** Returns true if field attributes is set (has been assigned a value) and false otherwise */
+  public boolean isSetAttributes() {
+    return this.attributes != null;
+  }
+
+  public void setAttributesIsSet(boolean value) {
+    if (!value) {
+      this.attributes = null;
+    }
+  }
+
+  /**
+   * 
+   * @see MaintenanceMode
+   */
+  public MaintenanceMode getMode() {
+    return this.mode;
+  }
+
+  /**
+   * 
+   * @see MaintenanceMode
+   */
+  public HostAttributes setMode(MaintenanceMode mode) {
+    this.mode = mode;
+    return this;
+  }
+
+  public void unsetMode() {
+    this.mode = null;
+  }
+
+  /** Returns true if field mode is set (has been assigned a value) and false otherwise */
+  public boolean isSetMode() {
+    return this.mode != null;
+  }
+
+  public void setModeIsSet(boolean value) {
+    if (!value) {
+      this.mode = null;
+    }
+  }
+
+  public String getSlaveId() {
+    return this.slaveId;
+  }
+
+  public HostAttributes setSlaveId(String slaveId) {
+    this.slaveId = slaveId;
+    return this;
+  }
+
+  public void unsetSlaveId() {
+    this.slaveId = null;
+  }
+
+  /** Returns true if field slaveId is set (has been assigned a value) and false otherwise */
+  public boolean isSetSlaveId() {
+    return this.slaveId != null;
+  }
+
+  public void setSlaveIdIsSet(boolean value) {
+    if (!value) {
+      this.slaveId = null;
+    }
+  }
+
+  public void setFieldValue(_Fields field, Object value) {
+    switch (field) {
+    case HOST:
+      if (value == null) {
+        unsetHost();
+      } else {
+        setHost((String)value);
+      }
+      break;
+
+    case ATTRIBUTES:
+      if (value == null) {
+        unsetAttributes();
+      } else {
+        setAttributes((Set<Attribute>)value);
+      }
+      break;
+
+    case MODE:
+      if (value == null) {
+        unsetMode();
+      } else {
+        setMode((MaintenanceMode)value);
+      }
+      break;
+
+    case SLAVE_ID:
+      if (value == null) {
+        unsetSlaveId();
+      } else {
+        setSlaveId((String)value);
+      }
+      break;
+
+    }
+  }
+
+  public Object getFieldValue(_Fields field) {
+    switch (field) {
+    case HOST:
+      return getHost();
+
+    case ATTRIBUTES:
+      return getAttributes();
+
+    case MODE:
+      return getMode();
+
+    case SLAVE_ID:
+      return getSlaveId();
+
+    }
+    throw new IllegalStateException();
+  }
+
+  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+  public boolean isSet(_Fields field) {
+    if (field == null) {
+      throw new IllegalArgumentException();
+    }
+
+    switch (field) {
+    case HOST:
+      return isSetHost();
+    case ATTRIBUTES:
+      return isSetAttributes();
+    case MODE:
+      return isSetMode();
+    case SLAVE_ID:
+      return isSetSlaveId();
+    }
+    throw new IllegalStateException();
+  }
+
+  @Override
+  public boolean equals(Object that) {
+    if (that == null)
+      return false;
+    if (that instanceof HostAttributes)
+      return this.equals((HostAttributes)that);
+    return false;
+  }
+
+  public boolean equals(HostAttributes that) {
+    if (that == null)
+      return false;
+
+    boolean this_present_host = true && this.isSetHost();
+    boolean that_present_host = true && that.isSetHost();
+    if (this_present_host || that_present_host) {
+      if (!(this_present_host && that_present_host))
+        return false;
+      if (!this.host.equals(that.host))
+        return false;
+    }
+
+    boolean this_present_attributes = true && this.isSetAttributes();
+    boolean that_present_attributes = true && that.isSetAttributes();
+    if (this_present_attributes || that_present_attributes) {
+      if (!(this_present_attributes && that_present_attributes))
+        return false;
+      if (!this.attributes.equals(that.attributes))
+        return false;
+    }
+
+    boolean this_present_mode = true && this.isSetMode();
+    boolean that_present_mode = true && that.isSetMode();
+    if (this_present_mode || that_present_mode) {
+      if (!(this_present_mode && that_present_mode))
+        return false;
+      if (!this.mode.equals(that.mode))
+        return false;
+    }
+
+    boolean this_present_slaveId = true && this.isSetSlaveId();
+    boolean that_present_slaveId = true && that.isSetSlaveId();
+    if (this_present_slaveId || that_present_slaveId) {
+      if (!(this_present_slaveId && that_present_slaveId))
+        return false;
+      if (!this.slaveId.equals(that.slaveId))
+        return false;
+    }
+
+    return true;
+  }
+
+  @Override
+  public int hashCode() {
+    List<Object> list = new ArrayList<Object>();
+
+    boolean present_host = true && (isSetHost());
+    list.add(present_host);
+    if (present_host)
+      list.add(host);
+
+    boolean present_attributes = true && (isSetAttributes());
+    list.add(present_attributes);
+    if (present_attributes)
+      list.add(attributes);
+
+    boolean present_mode = true && (isSetMode());
+    list.add(present_mode);
+    if (present_mode)
+      list.add(mode.getValue());
+
+    boolean present_slaveId = true && (isSetSlaveId());
+    list.add(present_slaveId);
+    if (present_slaveId)
+      list.add(slaveId);
+
+    return list.hashCode();
+  }
+
+  @Override
+  public int compareTo(HostAttributes other) {
+    if (!getClass().equals(other.getClass())) {
+      return getClass().getName().compareTo(other.getClass().getName());
+    }
+
+    int lastComparison = 0;
+
+    lastComparison = Boolean.valueOf(isSetHost()).compareTo(other.isSetHost());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetHost()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.host, other.host);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetAttributes()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, other.attributes);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetMode()).compareTo(other.isSetMode());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetMode()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mode, other.mode);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetSlaveId()).compareTo(other.isSetSlaveId());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetSlaveId()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.slaveId, other.slaveId);
+      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("HostAttributes(");
+    boolean first = true;
+
+    sb.append("host:");
+    if (this.host == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.host);
+    }
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("attributes:");
+    if (this.attributes == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.attributes);
+    }
+    first = false;
+    if (isSetMode()) {
+      if (!first) sb.append(", ");
+      sb.append("mode:");
+      if (this.mode == null) {
+        sb.append("null");
+      } else {
+        sb.append(this.mode);
+      }
+      first = false;
+    }
+    if (isSetSlaveId()) {
+      if (!first) sb.append(", ");
+      sb.append("slaveId:");
+      if (this.slaveId == null) {
+        sb.append("null");
+      } else {
+        sb.append(this.slaveId);
+      }
+      first = false;
+    }
+    sb.append(")");
+    return sb.toString();
+  }
+
+  public void validate() throws org.apache.thrift.TException {
+    // check for required fields
+    // check for sub-struct validity
+  }
+
+  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+    try {
+      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
+    } catch (org.apache.thrift.TException te) {
+      throw new java.io.IOException(te);
+    }
+  }
+
+  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+    try {
+      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 HostAttributesStandardSchemeFactory implements SchemeFactory {
+    public HostAttributesStandardScheme getScheme() {
+      return new HostAttributesStandardScheme();
+    }
+  }
+
+  private static class HostAttributesStandardScheme extends StandardScheme<HostAttributes> {
+
+    public void read(org.apache.thrift.protocol.TProtocol iprot, HostAttributes struct) throws org.apache.thrift.TException {
+      org.apache.thrift.protocol.TField schemeField;
+      iprot.readStructBegin();
+      while (true)
+      {
+        schemeField = iprot.readFieldBegin();
+        if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
+          break;
+        }
+        switch (schemeField.id) {
+          case 1: // HOST
+            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+              struct.host = iprot.readString();
+              struct.setHostIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 2: // ATTRIBUTES
+            if (schemeField.type == org.apache.thrift.protocol.TType.SET) {
+              {
+                org.apache.thrift.protocol.TSet _set8 = iprot.readSetBegin();
+                struct.attributes = new HashSet<Attribute>(2*_set8.size);
+                Attribute _elem9;
+                for (int _i10 = 0; _i10 < _set8.size; ++_i10)
+                {
+                  _elem9 = new Attribute();
+                  _elem9.read(iprot);
+                  struct.attributes.add(_elem9);
+                }
+                iprot.readSetEnd();
+              }
+              struct.setAttributesIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 3: // MODE
+            if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
+              struct.mode = org.apache.airavata.cloud.aurora.client.sdk.MaintenanceMode.findByValue(iprot.readI32());
+              struct.setModeIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 4: // SLAVE_ID
+            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+              struct.slaveId = iprot.readString();
+              struct.setSlaveIdIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          default:
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+        }
+        iprot.readFieldEnd();
+      }
+      iprot.readStructEnd();
+
+      // check for required fields of primitive type, which can't be checked in the validate method
+      struct.validate();
+    }
+
+    public void write(org.apache.thrift.protocol.TProtocol oprot, HostAttributes struct) throws org.apache.thrift.TException {
+      struct.validate();
+
+      oprot.writeStructBegin(STRUCT_DESC);
+      if (struct.host != null) {
+        oprot.writeFieldBegin(HOST_FIELD_DESC);
+        oprot.writeString(struct.host);
+        oprot.writeFieldEnd();
+      }
+      if (struct.attributes != null) {
+        oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
+        {
+          oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, struct.attributes.size()));
+          for (Attribute _iter11 : struct.attributes)
+          {
+            _iter11.write(oprot);
+          }
+          oprot.writeSetEnd();
+        }
+        oprot.writeFieldEnd();
+      }
+      if (struct.mode != null) {
+        if (struct.isSetMode()) {
+          oprot.writeFieldBegin(MODE_FIELD_DESC);
+          oprot.writeI32(struct.mode.getValue());
+          oprot.writeFieldEnd();
+        }
+      }
+      if (struct.slaveId != null) {
+        if (struct.isSetSlaveId()) {
+          oprot.writeFieldBegin(SLAVE_ID_FIELD_DESC);
+          oprot.writeString(struct.slaveId);
+          oprot.writeFieldEnd();
+        }
+      }
+      oprot.writeFieldStop();
+      oprot.writeStructEnd();
+    }
+
+  }
+
+  private static class HostAttributesTupleSchemeFactory implements SchemeFactory {
+    public HostAttributesTupleScheme getScheme() {
+      return new HostAttributesTupleScheme();
+    }
+  }
+
+  private static class HostAttributesTupleScheme extends TupleScheme<HostAttributes> {
+
+    @Override
+    public void write(org.apache.thrift.protocol.TProtocol prot, HostAttributes struct) throws org.apache.thrift.TException {
+      TTupleProtocol oprot = (TTupleProtocol) prot;
+      BitSet optionals = new BitSet();
+      if (struct.isSetHost()) {
+        optionals.set(0);
+      }
+      if (struct.isSetAttributes()) {
+        optionals.set(1);
+      }
+      if (struct.isSetMode()) {
+        optionals.set(2);
+      }
+      if (struct.isSetSlaveId()) {
+        optionals.set(3);
+      }
+      oprot.writeBitSet(optionals, 4);
+      if (struct.isSetHost()) {
+        oprot.writeString(struct.host);
+      }
+      if (struct.isSetAttributes()) {
+        {
+          oprot.writeI32(struct.attributes.size());
+          for (Attribute _iter12 : struct.attributes)
+          {
+            _iter12.write(oprot);
+          }
+        }
+      }
+      if (struct.isSetMode()) {
+        oprot.writeI32(struct.mode.getValue());
+      }
+      if (struct.isSetSlaveId()) {
+        oprot.writeString(struct.slaveId);
+      }
+    }
+
+    @Override
+    public void read(org.apache.thrift.protocol.TProtocol prot, HostAttributes struct) throws org.apache.thrift.TException {
+      TTupleProtocol iprot = (TTupleProtocol) prot;
+      BitSet incoming = iprot.readBitSet(4);
+      if (incoming.get(0)) {
+        struct.host = iprot.readString();
+        struct.setHostIsSet(true);
+      }
+      if (incoming.get(1)) {
+        {
+          org.apache.thrift.protocol.TSet _set13 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+          struct.attributes = new HashSet<Attribute>(2*_set13.size);
+          Attribute _elem14;
+          for (int _i15 = 0; _i15 < _set13.size; ++_i15)
+          {
+            _elem14 = new Attribute();
+            _elem14.read(iprot);
+            struct.attributes.add(_elem14);
+          }
+        }
+        struct.setAttributesIsSet(true);
+      }
+      if (incoming.get(2)) {
+        struct.mode = org.apache.airavata.cloud.aurora.client.sdk.MaintenanceMode.findByValue(iprot.readI32());
+        struct.setModeIsSet(true);
+      }
+      if (incoming.get(3)) {
+        struct.slaveId = iprot.readString();
+        struct.setSlaveIdIsSet(true);
+      }
+    }
+  }
+
+}
+


Mime
View raw message