http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/488b772f/modules/cloud/aurora-client/src/main/java/org/apache/airavata/cloud/aurora/client/sdk/InstanceKey.java
----------------------------------------------------------------------
diff --git 
a/modules/cloud/aurora-client/src/main/java/org/apache/airavata/cloud/aurora/client/sdk/InstanceKey.java
 
b/modules/cloud/aurora-client/src/main/java/org/apache/airavata/cloud/aurora/client/sdk/InstanceKey.java
deleted file mode 100644
index ac30491..0000000
--- 
a/modules/cloud/aurora-client/src/main/java/org/apache/airavata/cloud/aurora/client/sdk/InstanceKey.java
+++ /dev/null
@@ -1,552 +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.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"})
-/**
- * A unique identifier for the active task within a job.
- */
-@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = 
"2016-10-21")
-public class InstanceKey implements org.apache.thrift.TBase<InstanceKey, 
InstanceKey._Fields>, java.io.Serializable, Cloneable, Comparable<InstanceKey> {
-  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new 
org.apache.thrift.protocol.TStruct("InstanceKey");
-
-  private static final org.apache.thrift.protocol.TField JOB_KEY_FIELD_DESC = 
new org.apache.thrift.protocol.TField("jobKey", 
org.apache.thrift.protocol.TType.STRUCT, (short)1);
-  private static final org.apache.thrift.protocol.TField 
INSTANCE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("instanceId", 
org.apache.thrift.protocol.TType.I32, (short)2);
-
-  private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = 
new HashMap<Class<? extends IScheme>, SchemeFactory>();
-  static {
-    schemes.put(StandardScheme.class, new InstanceKeyStandardSchemeFactory());
-    schemes.put(TupleScheme.class, new InstanceKeyTupleSchemeFactory());
-  }
-
-  /**
-   * Key identifying the job.
-   */
-  public JobKey jobKey; // required
-  /**
-   * Unique instance ID for the active task in a job.
-   */
-  public int instanceId; // 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 {
-    /**
-     * Key identifying the job.
-     */
-    JOB_KEY((short)1, "jobKey"),
-    /**
-     * Unique instance ID for the active task in a job.
-     */
-    INSTANCE_ID((short)2, "instanceId");
-
-    private static final Map<String, _Fields> byName = new HashMap<String, 
_Fields>();
-
-    static {
-      for (_Fields field : EnumSet.allOf(_Fields.class)) {
-        byName.put(field.getFieldName(), field);
-      }
-    }
-
-    /**
-     * Find the _Fields constant that matches fieldId, or null if its not 
found.
-     */
-    public static _Fields findByThriftId(int fieldId) {
-      switch(fieldId) {
-        case 1: // JOB_KEY
-          return JOB_KEY;
-        case 2: // INSTANCE_ID
-          return INSTANCE_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 int __INSTANCEID_ISSET_ID = 0;
-  private byte __isset_bitfield = 0;
-  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> 
metaDataMap;
-  static {
-    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new 
EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-    tmpMap.put(_Fields.JOB_KEY, new 
org.apache.thrift.meta_data.FieldMetaData("jobKey", 
org.apache.thrift.TFieldRequirementType.DEFAULT, 
-        new 
org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT,
 JobKey.class)));
-    tmpMap.put(_Fields.INSTANCE_ID, new 
org.apache.thrift.meta_data.FieldMetaData("instanceId", 
org.apache.thrift.TFieldRequirementType.DEFAULT, 
-        new 
org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
-    metaDataMap = Collections.unmodifiableMap(tmpMap);
-    
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(InstanceKey.class,
 metaDataMap);
-  }
-
-  public InstanceKey() {
-  }
-
-  public InstanceKey(
-    JobKey jobKey,
-    int instanceId)
-  {
-    this();
-    this.jobKey = jobKey;
-    this.instanceId = instanceId;
-    setInstanceIdIsSet(true);
-  }
-
-  /**
-   * Performs a deep copy on <i>other</i>.
-   */
-  public InstanceKey(InstanceKey other) {
-    __isset_bitfield = other.__isset_bitfield;
-    if (other.isSetJobKey()) {
-      this.jobKey = new JobKey(other.jobKey);
-    }
-    this.instanceId = other.instanceId;
-  }
-
-  public InstanceKey deepCopy() {
-    return new InstanceKey(this);
-  }
-
-  @Override
-  public void clear() {
-    this.jobKey = null;
-    setInstanceIdIsSet(false);
-    this.instanceId = 0;
-  }
-
-  /**
-   * Key identifying the job.
-   */
-  public JobKey getJobKey() {
-    return this.jobKey;
-  }
-
-  /**
-   * Key identifying the job.
-   */
-  public InstanceKey setJobKey(JobKey jobKey) {
-    this.jobKey = jobKey;
-    return this;
-  }
-
-  public void unsetJobKey() {
-    this.jobKey = null;
-  }
-
-  /** Returns true if field jobKey is set (has been assigned a value) and 
false otherwise */
-  public boolean isSetJobKey() {
-    return this.jobKey != null;
-  }
-
-  public void setJobKeyIsSet(boolean value) {
-    if (!value) {
-      this.jobKey = null;
-    }
-  }
-
-  /**
-   * Unique instance ID for the active task in a job.
-   */
-  public int getInstanceId() {
-    return this.instanceId;
-  }
-
-  /**
-   * Unique instance ID for the active task in a job.
-   */
-  public InstanceKey setInstanceId(int instanceId) {
-    this.instanceId = instanceId;
-    setInstanceIdIsSet(true);
-    return this;
-  }
-
-  public void unsetInstanceId() {
-    __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, 
__INSTANCEID_ISSET_ID);
-  }
-
-  /** Returns true if field instanceId is set (has been assigned a value) and 
false otherwise */
-  public boolean isSetInstanceId() {
-    return EncodingUtils.testBit(__isset_bitfield, __INSTANCEID_ISSET_ID);
-  }
-
-  public void setInstanceIdIsSet(boolean value) {
-    __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, 
__INSTANCEID_ISSET_ID, value);
-  }
-
-  public void setFieldValue(_Fields field, Object value) {
-    switch (field) {
-    case JOB_KEY:
-      if (value == null) {
-        unsetJobKey();
-      } else {
-        setJobKey((JobKey)value);
-      }
-      break;
-
-    case INSTANCE_ID:
-      if (value == null) {
-        unsetInstanceId();
-      } else {
-        setInstanceId((Integer)value);
-      }
-      break;
-
-    }
-  }
-
-  public Object getFieldValue(_Fields field) {
-    switch (field) {
-    case JOB_KEY:
-      return getJobKey();
-
-    case INSTANCE_ID:
-      return getInstanceId();
-
-    }
-    throw new IllegalStateException();
-  }
-
-  /** Returns true if field corresponding to fieldID is set (has been assigned 
a value) and false otherwise */
-  public boolean isSet(_Fields field) {
-    if (field == null) {
-      throw new IllegalArgumentException();
-    }
-
-    switch (field) {
-    case JOB_KEY:
-      return isSetJobKey();
-    case INSTANCE_ID:
-      return isSetInstanceId();
-    }
-    throw new IllegalStateException();
-  }
-
-  @Override
-  public boolean equals(Object that) {
-    if (that == null)
-      return false;
-    if (that instanceof InstanceKey)
-      return this.equals((InstanceKey)that);
-    return false;
-  }
-
-  public boolean equals(InstanceKey that) {
-    if (that == null)
-      return false;
-
-    boolean this_present_jobKey = true && this.isSetJobKey();
-    boolean that_present_jobKey = true && that.isSetJobKey();
-    if (this_present_jobKey || that_present_jobKey) {
-      if (!(this_present_jobKey && that_present_jobKey))
-        return false;
-      if (!this.jobKey.equals(that.jobKey))
-        return false;
-    }
-
-    boolean this_present_instanceId = true;
-    boolean that_present_instanceId = true;
-    if (this_present_instanceId || that_present_instanceId) {
-      if (!(this_present_instanceId && that_present_instanceId))
-        return false;
-      if (this.instanceId != that.instanceId)
-        return false;
-    }
-
-    return true;
-  }
-
-  @Override
-  public int hashCode() {
-    List<Object> list = new ArrayList<Object>();
-
-    boolean present_jobKey = true && (isSetJobKey());
-    list.add(present_jobKey);
-    if (present_jobKey)
-      list.add(jobKey);
-
-    boolean present_instanceId = true;
-    list.add(present_instanceId);
-    if (present_instanceId)
-      list.add(instanceId);
-
-    return list.hashCode();
-  }
-
-  @Override
-  public int compareTo(InstanceKey other) {
-    if (!getClass().equals(other.getClass())) {
-      return getClass().getName().compareTo(other.getClass().getName());
-    }
-
-    int lastComparison = 0;
-
-    lastComparison = 
Boolean.valueOf(isSetJobKey()).compareTo(other.isSetJobKey());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetJobKey()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.jobKey, 
other.jobKey);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    lastComparison = 
Boolean.valueOf(isSetInstanceId()).compareTo(other.isSetInstanceId());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetInstanceId()) {
-      lastComparison = 
org.apache.thrift.TBaseHelper.compareTo(this.instanceId, other.instanceId);
-      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("InstanceKey(");
-    boolean first = true;
-
-    sb.append("jobKey:");
-    if (this.jobKey == null) {
-      sb.append("null");
-    } else {
-      sb.append(this.jobKey);
-    }
-    first = false;
-    if (!first) sb.append(", ");
-    sb.append("instanceId:");
-    sb.append(this.instanceId);
-    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 (jobKey != null) {
-      jobKey.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 {
-      // 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 InstanceKeyStandardSchemeFactory implements 
SchemeFactory {
-    public InstanceKeyStandardScheme getScheme() {
-      return new InstanceKeyStandardScheme();
-    }
-  }
-
-  private static class InstanceKeyStandardScheme extends 
StandardScheme<InstanceKey> {
-
-    public void read(org.apache.thrift.protocol.TProtocol iprot, InstanceKey 
struct) throws org.apache.thrift.TException {
-      org.apache.thrift.protocol.TField schemeField;
-      iprot.readStructBegin();
-      while (true)
-      {
-        schemeField = iprot.readFieldBegin();
-        if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
-          break;
-        }
-        switch (schemeField.id) {
-          case 1: // JOB_KEY
-            if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
-              struct.jobKey = new JobKey();
-              struct.jobKey.read(iprot);
-              struct.setJobKeyIsSet(true);
-            } else { 
-              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, 
schemeField.type);
-            }
-            break;
-          case 2: // INSTANCE_ID
-            if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
-              struct.instanceId = iprot.readI32();
-              struct.setInstanceIdIsSet(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, InstanceKey 
struct) throws org.apache.thrift.TException {
-      struct.validate();
-
-      oprot.writeStructBegin(STRUCT_DESC);
-      if (struct.jobKey != null) {
-        oprot.writeFieldBegin(JOB_KEY_FIELD_DESC);
-        struct.jobKey.write(oprot);
-        oprot.writeFieldEnd();
-      }
-      oprot.writeFieldBegin(INSTANCE_ID_FIELD_DESC);
-      oprot.writeI32(struct.instanceId);
-      oprot.writeFieldEnd();
-      oprot.writeFieldStop();
-      oprot.writeStructEnd();
-    }
-
-  }
-
-  private static class InstanceKeyTupleSchemeFactory implements SchemeFactory {
-    public InstanceKeyTupleScheme getScheme() {
-      return new InstanceKeyTupleScheme();
-    }
-  }
-
-  private static class InstanceKeyTupleScheme extends TupleScheme<InstanceKey> 
{
-
-    @Override
-    public void write(org.apache.thrift.protocol.TProtocol prot, InstanceKey 
struct) throws org.apache.thrift.TException {
-      TTupleProtocol oprot = (TTupleProtocol) prot;
-      BitSet optionals = new BitSet();
-      if (struct.isSetJobKey()) {
-        optionals.set(0);
-      }
-      if (struct.isSetInstanceId()) {
-        optionals.set(1);
-      }
-      oprot.writeBitSet(optionals, 2);
-      if (struct.isSetJobKey()) {
-        struct.jobKey.write(oprot);
-      }
-      if (struct.isSetInstanceId()) {
-        oprot.writeI32(struct.instanceId);
-      }
-    }
-
-    @Override
-    public void read(org.apache.thrift.protocol.TProtocol prot, InstanceKey 
struct) throws org.apache.thrift.TException {
-      TTupleProtocol iprot = (TTupleProtocol) prot;
-      BitSet incoming = iprot.readBitSet(2);
-      if (incoming.get(0)) {
-        struct.jobKey = new JobKey();
-        struct.jobKey.read(iprot);
-        struct.setJobKeyIsSet(true);
-      }
-      if (incoming.get(1)) {
-        struct.instanceId = iprot.readI32();
-        struct.setInstanceIdIsSet(true);
-      }
-    }
-  }
-
-}
-

http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/488b772f/modules/cloud/aurora-client/src/main/java/org/apache/airavata/cloud/aurora/client/sdk/InstanceTaskConfig.java
----------------------------------------------------------------------
diff --git 
a/modules/cloud/aurora-client/src/main/java/org/apache/airavata/cloud/aurora/client/sdk/InstanceTaskConfig.java
 
b/modules/cloud/aurora-client/src/main/java/org/apache/airavata/cloud/aurora/client/sdk/InstanceTaskConfig.java
deleted file mode 100644
index 34c940a..0000000
--- 
a/modules/cloud/aurora-client/src/main/java/org/apache/airavata/cloud/aurora/client/sdk/InstanceTaskConfig.java
+++ /dev/null
@@ -1,608 +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.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"})
-/**
- * Maps instance IDs to TaskConfigs it.
- */
-@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = 
"2016-10-21")
-public class InstanceTaskConfig implements 
org.apache.thrift.TBase<InstanceTaskConfig, InstanceTaskConfig._Fields>, 
java.io.Serializable, Cloneable, Comparable<InstanceTaskConfig> {
-  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new 
org.apache.thrift.protocol.TStruct("InstanceTaskConfig");
-
-  private static final org.apache.thrift.protocol.TField TASK_FIELD_DESC = new 
org.apache.thrift.protocol.TField("task", 
org.apache.thrift.protocol.TType.STRUCT, (short)1);
-  private static final org.apache.thrift.protocol.TField INSTANCES_FIELD_DESC 
= new org.apache.thrift.protocol.TField("instances", 
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 
InstanceTaskConfigStandardSchemeFactory());
-    schemes.put(TupleScheme.class, new InstanceTaskConfigTupleSchemeFactory());
-  }
-
-  /**
-   * A TaskConfig associated with instances.
-   */
-  public TaskConfig task; // required
-  /**
-   * Instances associated with the TaskConfig.
-   */
-  public Set<Range> instances; // 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 {
-    /**
-     * A TaskConfig associated with instances.
-     */
-    TASK((short)1, "task"),
-    /**
-     * Instances associated with the TaskConfig.
-     */
-    INSTANCES((short)2, "instances");
-
-    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: // TASK
-          return TASK;
-        case 2: // INSTANCES
-          return INSTANCES;
-        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.TASK, new 
org.apache.thrift.meta_data.FieldMetaData("task", 
org.apache.thrift.TFieldRequirementType.DEFAULT, 
-        new 
org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT,
 TaskConfig.class)));
-    tmpMap.put(_Fields.INSTANCES, new 
org.apache.thrift.meta_data.FieldMetaData("instances", 
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,
 Range.class))));
-    metaDataMap = Collections.unmodifiableMap(tmpMap);
-    
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(InstanceTaskConfig.class,
 metaDataMap);
-  }
-
-  public InstanceTaskConfig() {
-  }
-
-  public InstanceTaskConfig(
-    TaskConfig task,
-    Set<Range> instances)
-  {
-    this();
-    this.task = task;
-    this.instances = instances;
-  }
-
-  /**
-   * Performs a deep copy on <i>other</i>.
-   */
-  public InstanceTaskConfig(InstanceTaskConfig other) {
-    if (other.isSetTask()) {
-      this.task = new TaskConfig(other.task);
-    }
-    if (other.isSetInstances()) {
-      Set<Range> __this__instances = new 
HashSet<Range>(other.instances.size());
-      for (Range other_element : other.instances) {
-        __this__instances.add(new Range(other_element));
-      }
-      this.instances = __this__instances;
-    }
-  }
-
-  public InstanceTaskConfig deepCopy() {
-    return new InstanceTaskConfig(this);
-  }
-
-  @Override
-  public void clear() {
-    this.task = null;
-    this.instances = null;
-  }
-
-  /**
-   * A TaskConfig associated with instances.
-   */
-  public TaskConfig getTask() {
-    return this.task;
-  }
-
-  /**
-   * A TaskConfig associated with instances.
-   */
-  public InstanceTaskConfig setTask(TaskConfig task) {
-    this.task = task;
-    return this;
-  }
-
-  public void unsetTask() {
-    this.task = null;
-  }
-
-  /** Returns true if field task is set (has been assigned a value) and false 
otherwise */
-  public boolean isSetTask() {
-    return this.task != null;
-  }
-
-  public void setTaskIsSet(boolean value) {
-    if (!value) {
-      this.task = null;
-    }
-  }
-
-  public int getInstancesSize() {
-    return (this.instances == null) ? 0 : this.instances.size();
-  }
-
-  public java.util.Iterator<Range> getInstancesIterator() {
-    return (this.instances == null) ? null : this.instances.iterator();
-  }
-
-  public void addToInstances(Range elem) {
-    if (this.instances == null) {
-      this.instances = new HashSet<Range>();
-    }
-    this.instances.add(elem);
-  }
-
-  /**
-   * Instances associated with the TaskConfig.
-   */
-  public Set<Range> getInstances() {
-    return this.instances;
-  }
-
-  /**
-   * Instances associated with the TaskConfig.
-   */
-  public InstanceTaskConfig setInstances(Set<Range> instances) {
-    this.instances = instances;
-    return this;
-  }
-
-  public void unsetInstances() {
-    this.instances = null;
-  }
-
-  /** Returns true if field instances is set (has been assigned a value) and 
false otherwise */
-  public boolean isSetInstances() {
-    return this.instances != null;
-  }
-
-  public void setInstancesIsSet(boolean value) {
-    if (!value) {
-      this.instances = null;
-    }
-  }
-
-  public void setFieldValue(_Fields field, Object value) {
-    switch (field) {
-    case TASK:
-      if (value == null) {
-        unsetTask();
-      } else {
-        setTask((TaskConfig)value);
-      }
-      break;
-
-    case INSTANCES:
-      if (value == null) {
-        unsetInstances();
-      } else {
-        setInstances((Set<Range>)value);
-      }
-      break;
-
-    }
-  }
-
-  public Object getFieldValue(_Fields field) {
-    switch (field) {
-    case TASK:
-      return getTask();
-
-    case INSTANCES:
-      return getInstances();
-
-    }
-    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 TASK:
-      return isSetTask();
-    case INSTANCES:
-      return isSetInstances();
-    }
-    throw new IllegalStateException();
-  }
-
-  @Override
-  public boolean equals(Object that) {
-    if (that == null)
-      return false;
-    if (that instanceof InstanceTaskConfig)
-      return this.equals((InstanceTaskConfig)that);
-    return false;
-  }
-
-  public boolean equals(InstanceTaskConfig that) {
-    if (that == null)
-      return false;
-
-    boolean this_present_task = true && this.isSetTask();
-    boolean that_present_task = true && that.isSetTask();
-    if (this_present_task || that_present_task) {
-      if (!(this_present_task && that_present_task))
-        return false;
-      if (!this.task.equals(that.task))
-        return false;
-    }
-
-    boolean this_present_instances = true && this.isSetInstances();
-    boolean that_present_instances = true && that.isSetInstances();
-    if (this_present_instances || that_present_instances) {
-      if (!(this_present_instances && that_present_instances))
-        return false;
-      if (!this.instances.equals(that.instances))
-        return false;
-    }
-
-    return true;
-  }
-
-  @Override
-  public int hashCode() {
-    List<Object> list = new ArrayList<Object>();
-
-    boolean present_task = true && (isSetTask());
-    list.add(present_task);
-    if (present_task)
-      list.add(task);
-
-    boolean present_instances = true && (isSetInstances());
-    list.add(present_instances);
-    if (present_instances)
-      list.add(instances);
-
-    return list.hashCode();
-  }
-
-  @Override
-  public int compareTo(InstanceTaskConfig other) {
-    if (!getClass().equals(other.getClass())) {
-      return getClass().getName().compareTo(other.getClass().getName());
-    }
-
-    int lastComparison = 0;
-
-    lastComparison = Boolean.valueOf(isSetTask()).compareTo(other.isSetTask());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetTask()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.task, 
other.task);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    lastComparison = 
Boolean.valueOf(isSetInstances()).compareTo(other.isSetInstances());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetInstances()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.instances, 
other.instances);
-      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("InstanceTaskConfig(");
-    boolean first = true;
-
-    sb.append("task:");
-    if (this.task == null) {
-      sb.append("null");
-    } else {
-      sb.append(this.task);
-    }
-    first = false;
-    if (!first) sb.append(", ");
-    sb.append("instances:");
-    if (this.instances == null) {
-      sb.append("null");
-    } else {
-      sb.append(this.instances);
-    }
-    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 (task != null) {
-      task.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 InstanceTaskConfigStandardSchemeFactory implements 
SchemeFactory {
-    public InstanceTaskConfigStandardScheme getScheme() {
-      return new InstanceTaskConfigStandardScheme();
-    }
-  }
-
-  private static class InstanceTaskConfigStandardScheme extends 
StandardScheme<InstanceTaskConfig> {
-
-    public void read(org.apache.thrift.protocol.TProtocol iprot, 
InstanceTaskConfig 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: // TASK
-            if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
-              struct.task = new TaskConfig();
-              struct.task.read(iprot);
-              struct.setTaskIsSet(true);
-            } else { 
-              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, 
schemeField.type);
-            }
-            break;
-          case 2: // INSTANCES
-            if (schemeField.type == org.apache.thrift.protocol.TType.SET) {
-              {
-                org.apache.thrift.protocol.TSet _set198 = iprot.readSetBegin();
-                struct.instances = new HashSet<Range>(2*_set198.size);
-                Range _elem199;
-                for (int _i200 = 0; _i200 < _set198.size; ++_i200)
-                {
-                  _elem199 = new Range();
-                  _elem199.read(iprot);
-                  struct.instances.add(_elem199);
-                }
-                iprot.readSetEnd();
-              }
-              struct.setInstancesIsSet(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, 
InstanceTaskConfig struct) throws org.apache.thrift.TException {
-      struct.validate();
-
-      oprot.writeStructBegin(STRUCT_DESC);
-      if (struct.task != null) {
-        oprot.writeFieldBegin(TASK_FIELD_DESC);
-        struct.task.write(oprot);
-        oprot.writeFieldEnd();
-      }
-      if (struct.instances != null) {
-        oprot.writeFieldBegin(INSTANCES_FIELD_DESC);
-        {
-          oprot.writeSetBegin(new 
org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, 
struct.instances.size()));
-          for (Range _iter201 : struct.instances)
-          {
-            _iter201.write(oprot);
-          }
-          oprot.writeSetEnd();
-        }
-        oprot.writeFieldEnd();
-      }
-      oprot.writeFieldStop();
-      oprot.writeStructEnd();
-    }
-
-  }
-
-  private static class InstanceTaskConfigTupleSchemeFactory implements 
SchemeFactory {
-    public InstanceTaskConfigTupleScheme getScheme() {
-      return new InstanceTaskConfigTupleScheme();
-    }
-  }
-
-  private static class InstanceTaskConfigTupleScheme extends 
TupleScheme<InstanceTaskConfig> {
-
-    @Override
-    public void write(org.apache.thrift.protocol.TProtocol prot, 
InstanceTaskConfig struct) throws org.apache.thrift.TException {
-      TTupleProtocol oprot = (TTupleProtocol) prot;
-      BitSet optionals = new BitSet();
-      if (struct.isSetTask()) {
-        optionals.set(0);
-      }
-      if (struct.isSetInstances()) {
-        optionals.set(1);
-      }
-      oprot.writeBitSet(optionals, 2);
-      if (struct.isSetTask()) {
-        struct.task.write(oprot);
-      }
-      if (struct.isSetInstances()) {
-        {
-          oprot.writeI32(struct.instances.size());
-          for (Range _iter202 : struct.instances)
-          {
-            _iter202.write(oprot);
-          }
-        }
-      }
-    }
-
-    @Override
-    public void read(org.apache.thrift.protocol.TProtocol prot, 
InstanceTaskConfig struct) throws org.apache.thrift.TException {
-      TTupleProtocol iprot = (TTupleProtocol) prot;
-      BitSet incoming = iprot.readBitSet(2);
-      if (incoming.get(0)) {
-        struct.task = new TaskConfig();
-        struct.task.read(iprot);
-        struct.setTaskIsSet(true);
-      }
-      if (incoming.get(1)) {
-        {
-          org.apache.thrift.protocol.TSet _set203 = new 
org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, 
iprot.readI32());
-          struct.instances = new HashSet<Range>(2*_set203.size);
-          Range _elem204;
-          for (int _i205 = 0; _i205 < _set203.size; ++_i205)
-          {
-            _elem204 = new Range();
-            _elem204.read(iprot);
-            struct.instances.add(_elem204);
-          }
-        }
-        struct.setInstancesIsSet(true);
-      }
-    }
-  }
-
-}
-

http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/488b772f/modules/cloud/aurora-client/src/main/java/org/apache/airavata/cloud/aurora/client/sdk/JobConfigRewrite.java
----------------------------------------------------------------------
diff --git 
a/modules/cloud/aurora-client/src/main/java/org/apache/airavata/cloud/aurora/client/sdk/JobConfigRewrite.java
 
b/modules/cloud/aurora-client/src/main/java/org/apache/airavata/cloud/aurora/client/sdk/JobConfigRewrite.java
deleted file mode 100644
index 69da241..0000000
--- 
a/modules/cloud/aurora-client/src/main/java/org/apache/airavata/cloud/aurora/client/sdk/JobConfigRewrite.java
+++ /dev/null
@@ -1,556 +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.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 JobConfigRewrite implements 
org.apache.thrift.TBase<JobConfigRewrite, JobConfigRewrite._Fields>, 
java.io.Serializable, Cloneable, Comparable<JobConfigRewrite> {
-  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new 
org.apache.thrift.protocol.TStruct("JobConfigRewrite");
-
-  private static final org.apache.thrift.protocol.TField OLD_JOB_FIELD_DESC = 
new org.apache.thrift.protocol.TField("oldJob", 
org.apache.thrift.protocol.TType.STRUCT, (short)1);
-  private static final org.apache.thrift.protocol.TField 
REWRITTEN_JOB_FIELD_DESC = new 
org.apache.thrift.protocol.TField("rewrittenJob", 
org.apache.thrift.protocol.TType.STRUCT, (short)2);
-
-  private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = 
new HashMap<Class<? extends IScheme>, SchemeFactory>();
-  static {
-    schemes.put(StandardScheme.class, new 
JobConfigRewriteStandardSchemeFactory());
-    schemes.put(TupleScheme.class, new JobConfigRewriteTupleSchemeFactory());
-  }
-
-  /**
-   * The original job configuration.
-   */
-  public JobConfiguration oldJob; // required
-  /**
-   * The rewritten job configuration.
-   */
-  public JobConfiguration rewrittenJob; // 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 {
-    /**
-     * The original job configuration.
-     */
-    OLD_JOB((short)1, "oldJob"),
-    /**
-     * The rewritten job configuration.
-     */
-    REWRITTEN_JOB((short)2, "rewrittenJob");
-
-    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: // OLD_JOB
-          return OLD_JOB;
-        case 2: // REWRITTEN_JOB
-          return REWRITTEN_JOB;
-        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.OLD_JOB, new 
org.apache.thrift.meta_data.FieldMetaData("oldJob", 
org.apache.thrift.TFieldRequirementType.DEFAULT, 
-        new 
org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT,
 JobConfiguration.class)));
-    tmpMap.put(_Fields.REWRITTEN_JOB, new 
org.apache.thrift.meta_data.FieldMetaData("rewrittenJob", 
org.apache.thrift.TFieldRequirementType.DEFAULT, 
-        new 
org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT,
 JobConfiguration.class)));
-    metaDataMap = Collections.unmodifiableMap(tmpMap);
-    
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(JobConfigRewrite.class,
 metaDataMap);
-  }
-
-  public JobConfigRewrite() {
-  }
-
-  public JobConfigRewrite(
-    JobConfiguration oldJob,
-    JobConfiguration rewrittenJob)
-  {
-    this();
-    this.oldJob = oldJob;
-    this.rewrittenJob = rewrittenJob;
-  }
-
-  /**
-   * Performs a deep copy on <i>other</i>.
-   */
-  public JobConfigRewrite(JobConfigRewrite other) {
-    if (other.isSetOldJob()) {
-      this.oldJob = new JobConfiguration(other.oldJob);
-    }
-    if (other.isSetRewrittenJob()) {
-      this.rewrittenJob = new JobConfiguration(other.rewrittenJob);
-    }
-  }
-
-  public JobConfigRewrite deepCopy() {
-    return new JobConfigRewrite(this);
-  }
-
-  @Override
-  public void clear() {
-    this.oldJob = null;
-    this.rewrittenJob = null;
-  }
-
-  /**
-   * The original job configuration.
-   */
-  public JobConfiguration getOldJob() {
-    return this.oldJob;
-  }
-
-  /**
-   * The original job configuration.
-   */
-  public JobConfigRewrite setOldJob(JobConfiguration oldJob) {
-    this.oldJob = oldJob;
-    return this;
-  }
-
-  public void unsetOldJob() {
-    this.oldJob = null;
-  }
-
-  /** Returns true if field oldJob is set (has been assigned a value) and 
false otherwise */
-  public boolean isSetOldJob() {
-    return this.oldJob != null;
-  }
-
-  public void setOldJobIsSet(boolean value) {
-    if (!value) {
-      this.oldJob = null;
-    }
-  }
-
-  /**
-   * The rewritten job configuration.
-   */
-  public JobConfiguration getRewrittenJob() {
-    return this.rewrittenJob;
-  }
-
-  /**
-   * The rewritten job configuration.
-   */
-  public JobConfigRewrite setRewrittenJob(JobConfiguration rewrittenJob) {
-    this.rewrittenJob = rewrittenJob;
-    return this;
-  }
-
-  public void unsetRewrittenJob() {
-    this.rewrittenJob = null;
-  }
-
-  /** Returns true if field rewrittenJob is set (has been assigned a value) 
and false otherwise */
-  public boolean isSetRewrittenJob() {
-    return this.rewrittenJob != null;
-  }
-
-  public void setRewrittenJobIsSet(boolean value) {
-    if (!value) {
-      this.rewrittenJob = null;
-    }
-  }
-
-  public void setFieldValue(_Fields field, Object value) {
-    switch (field) {
-    case OLD_JOB:
-      if (value == null) {
-        unsetOldJob();
-      } else {
-        setOldJob((JobConfiguration)value);
-      }
-      break;
-
-    case REWRITTEN_JOB:
-      if (value == null) {
-        unsetRewrittenJob();
-      } else {
-        setRewrittenJob((JobConfiguration)value);
-      }
-      break;
-
-    }
-  }
-
-  public Object getFieldValue(_Fields field) {
-    switch (field) {
-    case OLD_JOB:
-      return getOldJob();
-
-    case REWRITTEN_JOB:
-      return getRewrittenJob();
-
-    }
-    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 OLD_JOB:
-      return isSetOldJob();
-    case REWRITTEN_JOB:
-      return isSetRewrittenJob();
-    }
-    throw new IllegalStateException();
-  }
-
-  @Override
-  public boolean equals(Object that) {
-    if (that == null)
-      return false;
-    if (that instanceof JobConfigRewrite)
-      return this.equals((JobConfigRewrite)that);
-    return false;
-  }
-
-  public boolean equals(JobConfigRewrite that) {
-    if (that == null)
-      return false;
-
-    boolean this_present_oldJob = true && this.isSetOldJob();
-    boolean that_present_oldJob = true && that.isSetOldJob();
-    if (this_present_oldJob || that_present_oldJob) {
-      if (!(this_present_oldJob && that_present_oldJob))
-        return false;
-      if (!this.oldJob.equals(that.oldJob))
-        return false;
-    }
-
-    boolean this_present_rewrittenJob = true && this.isSetRewrittenJob();
-    boolean that_present_rewrittenJob = true && that.isSetRewrittenJob();
-    if (this_present_rewrittenJob || that_present_rewrittenJob) {
-      if (!(this_present_rewrittenJob && that_present_rewrittenJob))
-        return false;
-      if (!this.rewrittenJob.equals(that.rewrittenJob))
-        return false;
-    }
-
-    return true;
-  }
-
-  @Override
-  public int hashCode() {
-    List<Object> list = new ArrayList<Object>();
-
-    boolean present_oldJob = true && (isSetOldJob());
-    list.add(present_oldJob);
-    if (present_oldJob)
-      list.add(oldJob);
-
-    boolean present_rewrittenJob = true && (isSetRewrittenJob());
-    list.add(present_rewrittenJob);
-    if (present_rewrittenJob)
-      list.add(rewrittenJob);
-
-    return list.hashCode();
-  }
-
-  @Override
-  public int compareTo(JobConfigRewrite other) {
-    if (!getClass().equals(other.getClass())) {
-      return getClass().getName().compareTo(other.getClass().getName());
-    }
-
-    int lastComparison = 0;
-
-    lastComparison = 
Boolean.valueOf(isSetOldJob()).compareTo(other.isSetOldJob());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetOldJob()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.oldJob, 
other.oldJob);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    lastComparison = 
Boolean.valueOf(isSetRewrittenJob()).compareTo(other.isSetRewrittenJob());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetRewrittenJob()) {
-      lastComparison = 
org.apache.thrift.TBaseHelper.compareTo(this.rewrittenJob, other.rewrittenJob);
-      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("JobConfigRewrite(");
-    boolean first = true;
-
-    sb.append("oldJob:");
-    if (this.oldJob == null) {
-      sb.append("null");
-    } else {
-      sb.append(this.oldJob);
-    }
-    first = false;
-    if (!first) sb.append(", ");
-    sb.append("rewrittenJob:");
-    if (this.rewrittenJob == null) {
-      sb.append("null");
-    } else {
-      sb.append(this.rewrittenJob);
-    }
-    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 (oldJob != null) {
-      oldJob.validate();
-    }
-    if (rewrittenJob != null) {
-      rewrittenJob.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 JobConfigRewriteStandardSchemeFactory implements 
SchemeFactory {
-    public JobConfigRewriteStandardScheme getScheme() {
-      return new JobConfigRewriteStandardScheme();
-    }
-  }
-
-  private static class JobConfigRewriteStandardScheme extends 
StandardScheme<JobConfigRewrite> {
-
-    public void read(org.apache.thrift.protocol.TProtocol iprot, 
JobConfigRewrite 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: // OLD_JOB
-            if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
-              struct.oldJob = new JobConfiguration();
-              struct.oldJob.read(iprot);
-              struct.setOldJobIsSet(true);
-            } else { 
-              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, 
schemeField.type);
-            }
-            break;
-          case 2: // REWRITTEN_JOB
-            if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
-              struct.rewrittenJob = new JobConfiguration();
-              struct.rewrittenJob.read(iprot);
-              struct.setRewrittenJobIsSet(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, 
JobConfigRewrite struct) throws org.apache.thrift.TException {
-      struct.validate();
-
-      oprot.writeStructBegin(STRUCT_DESC);
-      if (struct.oldJob != null) {
-        oprot.writeFieldBegin(OLD_JOB_FIELD_DESC);
-        struct.oldJob.write(oprot);
-        oprot.writeFieldEnd();
-      }
-      if (struct.rewrittenJob != null) {
-        oprot.writeFieldBegin(REWRITTEN_JOB_FIELD_DESC);
-        struct.rewrittenJob.write(oprot);
-        oprot.writeFieldEnd();
-      }
-      oprot.writeFieldStop();
-      oprot.writeStructEnd();
-    }
-
-  }
-
-  private static class JobConfigRewriteTupleSchemeFactory implements 
SchemeFactory {
-    public JobConfigRewriteTupleScheme getScheme() {
-      return new JobConfigRewriteTupleScheme();
-    }
-  }
-
-  private static class JobConfigRewriteTupleScheme extends 
TupleScheme<JobConfigRewrite> {
-
-    @Override
-    public void write(org.apache.thrift.protocol.TProtocol prot, 
JobConfigRewrite struct) throws org.apache.thrift.TException {
-      TTupleProtocol oprot = (TTupleProtocol) prot;
-      BitSet optionals = new BitSet();
-      if (struct.isSetOldJob()) {
-        optionals.set(0);
-      }
-      if (struct.isSetRewrittenJob()) {
-        optionals.set(1);
-      }
-      oprot.writeBitSet(optionals, 2);
-      if (struct.isSetOldJob()) {
-        struct.oldJob.write(oprot);
-      }
-      if (struct.isSetRewrittenJob()) {
-        struct.rewrittenJob.write(oprot);
-      }
-    }
-
-    @Override
-    public void read(org.apache.thrift.protocol.TProtocol prot, 
JobConfigRewrite struct) throws org.apache.thrift.TException {
-      TTupleProtocol iprot = (TTupleProtocol) prot;
-      BitSet incoming = iprot.readBitSet(2);
-      if (incoming.get(0)) {
-        struct.oldJob = new JobConfiguration();
-        struct.oldJob.read(iprot);
-        struct.setOldJobIsSet(true);
-      }
-      if (incoming.get(1)) {
-        struct.rewrittenJob = new JobConfiguration();
-        struct.rewrittenJob.read(iprot);
-        struct.setRewrittenJobIsSet(true);
-      }
-    }
-  }
-
-}
-

Reply via email to