airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shame...@apache.org
Subject [15/16] airavata git commit: Merge develop branch to master and regernerated all thrift source files
Date Fri, 04 Dec 2015 21:25:02 GMT
http://git-wip-us.apache.org/repos/asf/airavata/blob/fc277b0a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/storageresource/StorageResourceDescription.java
----------------------------------------------------------------------
diff --cc airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/storageresource/StorageResourceDescription.java
index 0000000,fc31112..0f391cb
mode 000000,100644..100644
--- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/storageresource/StorageResourceDescription.java
+++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/storageresource/StorageResourceDescription.java
@@@ -1,0 -1,900 +1,900 @@@
+ /**
+  * 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.2)
+  *
+  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+  *  @generated
+  */
+ package org.apache.airavata.model.appcatalog.storageresource;
+ 
+ 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"})
+ /**
+  * Storage Resource Description
+  * 
+  * storageResourceId: Airavata Internal Unique Identifier to distinguish Compute Resource.
+  * 
+  * hostName:
+  *   Fully Qualified Host Name.
+  * 
+  * storageResourceDescription:
+  *  A user friendly description of the resource.
+  * 
+  * 
+  * DataMovementProtocol:
+  *  Option to specify a prefered data movement mechanism of the available options.
+  * 
+  * 
+  */
 -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-12-3")
++@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-12-4")
+ public class StorageResourceDescription implements org.apache.thrift.TBase<StorageResourceDescription, StorageResourceDescription._Fields>, java.io.Serializable, Cloneable, Comparable<StorageResourceDescription> {
+   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("StorageResourceDescription");
+ 
+   private static final org.apache.thrift.protocol.TField STORAGE_RESOURCE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("storageResourceId", org.apache.thrift.protocol.TType.STRING, (short)1);
+   private static final org.apache.thrift.protocol.TField HOST_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("hostName", org.apache.thrift.protocol.TType.STRING, (short)2);
+   private static final org.apache.thrift.protocol.TField STORAGE_RESOURCE_DESCRIPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("storageResourceDescription", org.apache.thrift.protocol.TType.STRING, (short)3);
+   private static final org.apache.thrift.protocol.TField ENABLED_FIELD_DESC = new org.apache.thrift.protocol.TField("enabled", org.apache.thrift.protocol.TType.BOOL, (short)4);
+   private static final org.apache.thrift.protocol.TField DATA_MOVEMENT_INTERFACES_FIELD_DESC = new org.apache.thrift.protocol.TField("dataMovementInterfaces", org.apache.thrift.protocol.TType.LIST, (short)5);
+ 
+   private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+   static {
+     schemes.put(StandardScheme.class, new StorageResourceDescriptionStandardSchemeFactory());
+     schemes.put(TupleScheme.class, new StorageResourceDescriptionTupleSchemeFactory());
+   }
+ 
+   private String storageResourceId; // required
+   private String hostName; // required
+   private String storageResourceDescription; // optional
+   private boolean enabled; // optional
+   private List<org.apache.airavata.model.data.movement.DataMovementInterface> dataMovementInterfaces; // 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 {
+     STORAGE_RESOURCE_ID((short)1, "storageResourceId"),
+     HOST_NAME((short)2, "hostName"),
+     STORAGE_RESOURCE_DESCRIPTION((short)3, "storageResourceDescription"),
+     ENABLED((short)4, "enabled"),
+     DATA_MOVEMENT_INTERFACES((short)5, "dataMovementInterfaces");
+ 
+     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: // STORAGE_RESOURCE_ID
+           return STORAGE_RESOURCE_ID;
+         case 2: // HOST_NAME
+           return HOST_NAME;
+         case 3: // STORAGE_RESOURCE_DESCRIPTION
+           return STORAGE_RESOURCE_DESCRIPTION;
+         case 4: // ENABLED
+           return ENABLED;
+         case 5: // DATA_MOVEMENT_INTERFACES
+           return DATA_MOVEMENT_INTERFACES;
+         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 __ENABLED_ISSET_ID = 0;
+   private byte __isset_bitfield = 0;
+   private static final _Fields optionals[] = {_Fields.STORAGE_RESOURCE_DESCRIPTION,_Fields.ENABLED,_Fields.DATA_MOVEMENT_INTERFACES};
+   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.STORAGE_RESOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("storageResourceId", org.apache.thrift.TFieldRequirementType.REQUIRED, 
+         new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+     tmpMap.put(_Fields.HOST_NAME, new org.apache.thrift.meta_data.FieldMetaData("hostName", org.apache.thrift.TFieldRequirementType.REQUIRED, 
+         new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+     tmpMap.put(_Fields.STORAGE_RESOURCE_DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("storageResourceDescription", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
+         new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+     tmpMap.put(_Fields.ENABLED, new org.apache.thrift.meta_data.FieldMetaData("enabled", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
+         new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
+     tmpMap.put(_Fields.DATA_MOVEMENT_INTERFACES, new org.apache.thrift.meta_data.FieldMetaData("dataMovementInterfaces", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
+         new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
+             new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.airavata.model.data.movement.DataMovementInterface.class))));
+     metaDataMap = Collections.unmodifiableMap(tmpMap);
+     org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(StorageResourceDescription.class, metaDataMap);
+   }
+ 
+   public StorageResourceDescription() {
+     this.storageResourceId = "DO_NOT_SET_AT_CLIENTS";
+ 
+   }
+ 
+   public StorageResourceDescription(
+     String storageResourceId,
+     String hostName)
+   {
+     this();
+     this.storageResourceId = storageResourceId;
+     this.hostName = hostName;
+   }
+ 
+   /**
+    * Performs a deep copy on <i>other</i>.
+    */
+   public StorageResourceDescription(StorageResourceDescription other) {
+     __isset_bitfield = other.__isset_bitfield;
+     if (other.isSetStorageResourceId()) {
+       this.storageResourceId = other.storageResourceId;
+     }
+     if (other.isSetHostName()) {
+       this.hostName = other.hostName;
+     }
+     if (other.isSetStorageResourceDescription()) {
+       this.storageResourceDescription = other.storageResourceDescription;
+     }
+     this.enabled = other.enabled;
+     if (other.isSetDataMovementInterfaces()) {
+       List<org.apache.airavata.model.data.movement.DataMovementInterface> __this__dataMovementInterfaces = new ArrayList<org.apache.airavata.model.data.movement.DataMovementInterface>(other.dataMovementInterfaces.size());
+       for (org.apache.airavata.model.data.movement.DataMovementInterface other_element : other.dataMovementInterfaces) {
+         __this__dataMovementInterfaces.add(new org.apache.airavata.model.data.movement.DataMovementInterface(other_element));
+       }
+       this.dataMovementInterfaces = __this__dataMovementInterfaces;
+     }
+   }
+ 
+   public StorageResourceDescription deepCopy() {
+     return new StorageResourceDescription(this);
+   }
+ 
+   @Override
+   public void clear() {
+     this.storageResourceId = "DO_NOT_SET_AT_CLIENTS";
+ 
+     this.hostName = null;
+     this.storageResourceDescription = null;
+     setEnabledIsSet(false);
+     this.enabled = false;
+     this.dataMovementInterfaces = null;
+   }
+ 
+   public String getStorageResourceId() {
+     return this.storageResourceId;
+   }
+ 
+   public void setStorageResourceId(String storageResourceId) {
+     this.storageResourceId = storageResourceId;
+   }
+ 
+   public void unsetStorageResourceId() {
+     this.storageResourceId = null;
+   }
+ 
+   /** Returns true if field storageResourceId is set (has been assigned a value) and false otherwise */
+   public boolean isSetStorageResourceId() {
+     return this.storageResourceId != null;
+   }
+ 
+   public void setStorageResourceIdIsSet(boolean value) {
+     if (!value) {
+       this.storageResourceId = null;
+     }
+   }
+ 
+   public String getHostName() {
+     return this.hostName;
+   }
+ 
+   public void setHostName(String hostName) {
+     this.hostName = hostName;
+   }
+ 
+   public void unsetHostName() {
+     this.hostName = null;
+   }
+ 
+   /** Returns true if field hostName is set (has been assigned a value) and false otherwise */
+   public boolean isSetHostName() {
+     return this.hostName != null;
+   }
+ 
+   public void setHostNameIsSet(boolean value) {
+     if (!value) {
+       this.hostName = null;
+     }
+   }
+ 
+   public String getStorageResourceDescription() {
+     return this.storageResourceDescription;
+   }
+ 
+   public void setStorageResourceDescription(String storageResourceDescription) {
+     this.storageResourceDescription = storageResourceDescription;
+   }
+ 
+   public void unsetStorageResourceDescription() {
+     this.storageResourceDescription = null;
+   }
+ 
+   /** Returns true if field storageResourceDescription is set (has been assigned a value) and false otherwise */
+   public boolean isSetStorageResourceDescription() {
+     return this.storageResourceDescription != null;
+   }
+ 
+   public void setStorageResourceDescriptionIsSet(boolean value) {
+     if (!value) {
+       this.storageResourceDescription = null;
+     }
+   }
+ 
+   public boolean isEnabled() {
+     return this.enabled;
+   }
+ 
+   public void setEnabled(boolean enabled) {
+     this.enabled = enabled;
+     setEnabledIsSet(true);
+   }
+ 
+   public void unsetEnabled() {
+     __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ENABLED_ISSET_ID);
+   }
+ 
+   /** Returns true if field enabled is set (has been assigned a value) and false otherwise */
+   public boolean isSetEnabled() {
+     return EncodingUtils.testBit(__isset_bitfield, __ENABLED_ISSET_ID);
+   }
+ 
+   public void setEnabledIsSet(boolean value) {
+     __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ENABLED_ISSET_ID, value);
+   }
+ 
+   public int getDataMovementInterfacesSize() {
+     return (this.dataMovementInterfaces == null) ? 0 : this.dataMovementInterfaces.size();
+   }
+ 
+   public java.util.Iterator<org.apache.airavata.model.data.movement.DataMovementInterface> getDataMovementInterfacesIterator() {
+     return (this.dataMovementInterfaces == null) ? null : this.dataMovementInterfaces.iterator();
+   }
+ 
+   public void addToDataMovementInterfaces(org.apache.airavata.model.data.movement.DataMovementInterface elem) {
+     if (this.dataMovementInterfaces == null) {
+       this.dataMovementInterfaces = new ArrayList<org.apache.airavata.model.data.movement.DataMovementInterface>();
+     }
+     this.dataMovementInterfaces.add(elem);
+   }
+ 
+   public List<org.apache.airavata.model.data.movement.DataMovementInterface> getDataMovementInterfaces() {
+     return this.dataMovementInterfaces;
+   }
+ 
+   public void setDataMovementInterfaces(List<org.apache.airavata.model.data.movement.DataMovementInterface> dataMovementInterfaces) {
+     this.dataMovementInterfaces = dataMovementInterfaces;
+   }
+ 
+   public void unsetDataMovementInterfaces() {
+     this.dataMovementInterfaces = null;
+   }
+ 
+   /** Returns true if field dataMovementInterfaces is set (has been assigned a value) and false otherwise */
+   public boolean isSetDataMovementInterfaces() {
+     return this.dataMovementInterfaces != null;
+   }
+ 
+   public void setDataMovementInterfacesIsSet(boolean value) {
+     if (!value) {
+       this.dataMovementInterfaces = null;
+     }
+   }
+ 
+   public void setFieldValue(_Fields field, Object value) {
+     switch (field) {
+     case STORAGE_RESOURCE_ID:
+       if (value == null) {
+         unsetStorageResourceId();
+       } else {
+         setStorageResourceId((String)value);
+       }
+       break;
+ 
+     case HOST_NAME:
+       if (value == null) {
+         unsetHostName();
+       } else {
+         setHostName((String)value);
+       }
+       break;
+ 
+     case STORAGE_RESOURCE_DESCRIPTION:
+       if (value == null) {
+         unsetStorageResourceDescription();
+       } else {
+         setStorageResourceDescription((String)value);
+       }
+       break;
+ 
+     case ENABLED:
+       if (value == null) {
+         unsetEnabled();
+       } else {
+         setEnabled((Boolean)value);
+       }
+       break;
+ 
+     case DATA_MOVEMENT_INTERFACES:
+       if (value == null) {
+         unsetDataMovementInterfaces();
+       } else {
+         setDataMovementInterfaces((List<org.apache.airavata.model.data.movement.DataMovementInterface>)value);
+       }
+       break;
+ 
+     }
+   }
+ 
+   public Object getFieldValue(_Fields field) {
+     switch (field) {
+     case STORAGE_RESOURCE_ID:
+       return getStorageResourceId();
+ 
+     case HOST_NAME:
+       return getHostName();
+ 
+     case STORAGE_RESOURCE_DESCRIPTION:
+       return getStorageResourceDescription();
+ 
+     case ENABLED:
+       return Boolean.valueOf(isEnabled());
+ 
+     case DATA_MOVEMENT_INTERFACES:
+       return getDataMovementInterfaces();
+ 
+     }
+     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 STORAGE_RESOURCE_ID:
+       return isSetStorageResourceId();
+     case HOST_NAME:
+       return isSetHostName();
+     case STORAGE_RESOURCE_DESCRIPTION:
+       return isSetStorageResourceDescription();
+     case ENABLED:
+       return isSetEnabled();
+     case DATA_MOVEMENT_INTERFACES:
+       return isSetDataMovementInterfaces();
+     }
+     throw new IllegalStateException();
+   }
+ 
+   @Override
+   public boolean equals(Object that) {
+     if (that == null)
+       return false;
+     if (that instanceof StorageResourceDescription)
+       return this.equals((StorageResourceDescription)that);
+     return false;
+   }
+ 
+   public boolean equals(StorageResourceDescription that) {
+     if (that == null)
+       return false;
+ 
+     boolean this_present_storageResourceId = true && this.isSetStorageResourceId();
+     boolean that_present_storageResourceId = true && that.isSetStorageResourceId();
+     if (this_present_storageResourceId || that_present_storageResourceId) {
+       if (!(this_present_storageResourceId && that_present_storageResourceId))
+         return false;
+       if (!this.storageResourceId.equals(that.storageResourceId))
+         return false;
+     }
+ 
+     boolean this_present_hostName = true && this.isSetHostName();
+     boolean that_present_hostName = true && that.isSetHostName();
+     if (this_present_hostName || that_present_hostName) {
+       if (!(this_present_hostName && that_present_hostName))
+         return false;
+       if (!this.hostName.equals(that.hostName))
+         return false;
+     }
+ 
+     boolean this_present_storageResourceDescription = true && this.isSetStorageResourceDescription();
+     boolean that_present_storageResourceDescription = true && that.isSetStorageResourceDescription();
+     if (this_present_storageResourceDescription || that_present_storageResourceDescription) {
+       if (!(this_present_storageResourceDescription && that_present_storageResourceDescription))
+         return false;
+       if (!this.storageResourceDescription.equals(that.storageResourceDescription))
+         return false;
+     }
+ 
+     boolean this_present_enabled = true && this.isSetEnabled();
+     boolean that_present_enabled = true && that.isSetEnabled();
+     if (this_present_enabled || that_present_enabled) {
+       if (!(this_present_enabled && that_present_enabled))
+         return false;
+       if (this.enabled != that.enabled)
+         return false;
+     }
+ 
+     boolean this_present_dataMovementInterfaces = true && this.isSetDataMovementInterfaces();
+     boolean that_present_dataMovementInterfaces = true && that.isSetDataMovementInterfaces();
+     if (this_present_dataMovementInterfaces || that_present_dataMovementInterfaces) {
+       if (!(this_present_dataMovementInterfaces && that_present_dataMovementInterfaces))
+         return false;
+       if (!this.dataMovementInterfaces.equals(that.dataMovementInterfaces))
+         return false;
+     }
+ 
+     return true;
+   }
+ 
+   @Override
+   public int hashCode() {
+     List<Object> list = new ArrayList<Object>();
+ 
+     boolean present_storageResourceId = true && (isSetStorageResourceId());
+     list.add(present_storageResourceId);
+     if (present_storageResourceId)
+       list.add(storageResourceId);
+ 
+     boolean present_hostName = true && (isSetHostName());
+     list.add(present_hostName);
+     if (present_hostName)
+       list.add(hostName);
+ 
+     boolean present_storageResourceDescription = true && (isSetStorageResourceDescription());
+     list.add(present_storageResourceDescription);
+     if (present_storageResourceDescription)
+       list.add(storageResourceDescription);
+ 
+     boolean present_enabled = true && (isSetEnabled());
+     list.add(present_enabled);
+     if (present_enabled)
+       list.add(enabled);
+ 
+     boolean present_dataMovementInterfaces = true && (isSetDataMovementInterfaces());
+     list.add(present_dataMovementInterfaces);
+     if (present_dataMovementInterfaces)
+       list.add(dataMovementInterfaces);
+ 
+     return list.hashCode();
+   }
+ 
+   @Override
+   public int compareTo(StorageResourceDescription other) {
+     if (!getClass().equals(other.getClass())) {
+       return getClass().getName().compareTo(other.getClass().getName());
+     }
+ 
+     int lastComparison = 0;
+ 
+     lastComparison = Boolean.valueOf(isSetStorageResourceId()).compareTo(other.isSetStorageResourceId());
+     if (lastComparison != 0) {
+       return lastComparison;
+     }
+     if (isSetStorageResourceId()) {
+       lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.storageResourceId, other.storageResourceId);
+       if (lastComparison != 0) {
+         return lastComparison;
+       }
+     }
+     lastComparison = Boolean.valueOf(isSetHostName()).compareTo(other.isSetHostName());
+     if (lastComparison != 0) {
+       return lastComparison;
+     }
+     if (isSetHostName()) {
+       lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hostName, other.hostName);
+       if (lastComparison != 0) {
+         return lastComparison;
+       }
+     }
+     lastComparison = Boolean.valueOf(isSetStorageResourceDescription()).compareTo(other.isSetStorageResourceDescription());
+     if (lastComparison != 0) {
+       return lastComparison;
+     }
+     if (isSetStorageResourceDescription()) {
+       lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.storageResourceDescription, other.storageResourceDescription);
+       if (lastComparison != 0) {
+         return lastComparison;
+       }
+     }
+     lastComparison = Boolean.valueOf(isSetEnabled()).compareTo(other.isSetEnabled());
+     if (lastComparison != 0) {
+       return lastComparison;
+     }
+     if (isSetEnabled()) {
+       lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.enabled, other.enabled);
+       if (lastComparison != 0) {
+         return lastComparison;
+       }
+     }
+     lastComparison = Boolean.valueOf(isSetDataMovementInterfaces()).compareTo(other.isSetDataMovementInterfaces());
+     if (lastComparison != 0) {
+       return lastComparison;
+     }
+     if (isSetDataMovementInterfaces()) {
+       lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dataMovementInterfaces, other.dataMovementInterfaces);
+       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("StorageResourceDescription(");
+     boolean first = true;
+ 
+     sb.append("storageResourceId:");
+     if (this.storageResourceId == null) {
+       sb.append("null");
+     } else {
+       sb.append(this.storageResourceId);
+     }
+     first = false;
+     if (!first) sb.append(", ");
+     sb.append("hostName:");
+     if (this.hostName == null) {
+       sb.append("null");
+     } else {
+       sb.append(this.hostName);
+     }
+     first = false;
+     if (isSetStorageResourceDescription()) {
+       if (!first) sb.append(", ");
+       sb.append("storageResourceDescription:");
+       if (this.storageResourceDescription == null) {
+         sb.append("null");
+       } else {
+         sb.append(this.storageResourceDescription);
+       }
+       first = false;
+     }
+     if (isSetEnabled()) {
+       if (!first) sb.append(", ");
+       sb.append("enabled:");
+       sb.append(this.enabled);
+       first = false;
+     }
+     if (isSetDataMovementInterfaces()) {
+       if (!first) sb.append(", ");
+       sb.append("dataMovementInterfaces:");
+       if (this.dataMovementInterfaces == null) {
+         sb.append("null");
+       } else {
+         sb.append(this.dataMovementInterfaces);
+       }
+       first = false;
+     }
+     sb.append(")");
+     return sb.toString();
+   }
+ 
+   public void validate() throws org.apache.thrift.TException {
+     // check for required fields
+     if (!isSetStorageResourceId()) {
+       throw new org.apache.thrift.protocol.TProtocolException("Required field 'storageResourceId' is unset! Struct:" + toString());
+     }
+ 
+     if (!isSetHostName()) {
+       throw new org.apache.thrift.protocol.TProtocolException("Required field 'hostName' is unset! Struct:" + toString());
+     }
+ 
+     // check for sub-struct validity
+   }
+ 
+   private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+     try {
+       write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
+     } catch (org.apache.thrift.TException te) {
+       throw new java.io.IOException(te);
+     }
+   }
+ 
+   private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+     try {
+       // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
+       __isset_bitfield = 0;
+       read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
+     } catch (org.apache.thrift.TException te) {
+       throw new java.io.IOException(te);
+     }
+   }
+ 
+   private static class StorageResourceDescriptionStandardSchemeFactory implements SchemeFactory {
+     public StorageResourceDescriptionStandardScheme getScheme() {
+       return new StorageResourceDescriptionStandardScheme();
+     }
+   }
+ 
+   private static class StorageResourceDescriptionStandardScheme extends StandardScheme<StorageResourceDescription> {
+ 
+     public void read(org.apache.thrift.protocol.TProtocol iprot, StorageResourceDescription 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: // STORAGE_RESOURCE_ID
+             if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+               struct.storageResourceId = iprot.readString();
+               struct.setStorageResourceIdIsSet(true);
+             } else { 
+               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+             }
+             break;
+           case 2: // HOST_NAME
+             if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+               struct.hostName = iprot.readString();
+               struct.setHostNameIsSet(true);
+             } else { 
+               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+             }
+             break;
+           case 3: // STORAGE_RESOURCE_DESCRIPTION
+             if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+               struct.storageResourceDescription = iprot.readString();
+               struct.setStorageResourceDescriptionIsSet(true);
+             } else { 
+               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+             }
+             break;
+           case 4: // ENABLED
+             if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
+               struct.enabled = iprot.readBool();
+               struct.setEnabledIsSet(true);
+             } else { 
+               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+             }
+             break;
+           case 5: // DATA_MOVEMENT_INTERFACES
+             if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
+               {
+                 org.apache.thrift.protocol.TList _list0 = iprot.readListBegin();
+                 struct.dataMovementInterfaces = new ArrayList<org.apache.airavata.model.data.movement.DataMovementInterface>(_list0.size);
+                 org.apache.airavata.model.data.movement.DataMovementInterface _elem1;
+                 for (int _i2 = 0; _i2 < _list0.size; ++_i2)
+                 {
+                   _elem1 = new org.apache.airavata.model.data.movement.DataMovementInterface();
+                   _elem1.read(iprot);
+                   struct.dataMovementInterfaces.add(_elem1);
+                 }
+                 iprot.readListEnd();
+               }
+               struct.setDataMovementInterfacesIsSet(true);
+             } else { 
+               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+             }
+             break;
+           default:
+             org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+         }
+         iprot.readFieldEnd();
+       }
+       iprot.readStructEnd();
+       struct.validate();
+     }
+ 
+     public void write(org.apache.thrift.protocol.TProtocol oprot, StorageResourceDescription struct) throws org.apache.thrift.TException {
+       struct.validate();
+ 
+       oprot.writeStructBegin(STRUCT_DESC);
+       if (struct.storageResourceId != null) {
+         oprot.writeFieldBegin(STORAGE_RESOURCE_ID_FIELD_DESC);
+         oprot.writeString(struct.storageResourceId);
+         oprot.writeFieldEnd();
+       }
+       if (struct.hostName != null) {
+         oprot.writeFieldBegin(HOST_NAME_FIELD_DESC);
+         oprot.writeString(struct.hostName);
+         oprot.writeFieldEnd();
+       }
+       if (struct.storageResourceDescription != null) {
+         if (struct.isSetStorageResourceDescription()) {
+           oprot.writeFieldBegin(STORAGE_RESOURCE_DESCRIPTION_FIELD_DESC);
+           oprot.writeString(struct.storageResourceDescription);
+           oprot.writeFieldEnd();
+         }
+       }
+       if (struct.isSetEnabled()) {
+         oprot.writeFieldBegin(ENABLED_FIELD_DESC);
+         oprot.writeBool(struct.enabled);
+         oprot.writeFieldEnd();
+       }
+       if (struct.dataMovementInterfaces != null) {
+         if (struct.isSetDataMovementInterfaces()) {
+           oprot.writeFieldBegin(DATA_MOVEMENT_INTERFACES_FIELD_DESC);
+           {
+             oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.dataMovementInterfaces.size()));
+             for (org.apache.airavata.model.data.movement.DataMovementInterface _iter3 : struct.dataMovementInterfaces)
+             {
+               _iter3.write(oprot);
+             }
+             oprot.writeListEnd();
+           }
+           oprot.writeFieldEnd();
+         }
+       }
+       oprot.writeFieldStop();
+       oprot.writeStructEnd();
+     }
+ 
+   }
+ 
+   private static class StorageResourceDescriptionTupleSchemeFactory implements SchemeFactory {
+     public StorageResourceDescriptionTupleScheme getScheme() {
+       return new StorageResourceDescriptionTupleScheme();
+     }
+   }
+ 
+   private static class StorageResourceDescriptionTupleScheme extends TupleScheme<StorageResourceDescription> {
+ 
+     @Override
+     public void write(org.apache.thrift.protocol.TProtocol prot, StorageResourceDescription struct) throws org.apache.thrift.TException {
+       TTupleProtocol oprot = (TTupleProtocol) prot;
+       oprot.writeString(struct.storageResourceId);
+       oprot.writeString(struct.hostName);
+       BitSet optionals = new BitSet();
+       if (struct.isSetStorageResourceDescription()) {
+         optionals.set(0);
+       }
+       if (struct.isSetEnabled()) {
+         optionals.set(1);
+       }
+       if (struct.isSetDataMovementInterfaces()) {
+         optionals.set(2);
+       }
+       oprot.writeBitSet(optionals, 3);
+       if (struct.isSetStorageResourceDescription()) {
+         oprot.writeString(struct.storageResourceDescription);
+       }
+       if (struct.isSetEnabled()) {
+         oprot.writeBool(struct.enabled);
+       }
+       if (struct.isSetDataMovementInterfaces()) {
+         {
+           oprot.writeI32(struct.dataMovementInterfaces.size());
+           for (org.apache.airavata.model.data.movement.DataMovementInterface _iter4 : struct.dataMovementInterfaces)
+           {
+             _iter4.write(oprot);
+           }
+         }
+       }
+     }
+ 
+     @Override
+     public void read(org.apache.thrift.protocol.TProtocol prot, StorageResourceDescription struct) throws org.apache.thrift.TException {
+       TTupleProtocol iprot = (TTupleProtocol) prot;
+       struct.storageResourceId = iprot.readString();
+       struct.setStorageResourceIdIsSet(true);
+       struct.hostName = iprot.readString();
+       struct.setHostNameIsSet(true);
+       BitSet incoming = iprot.readBitSet(3);
+       if (incoming.get(0)) {
+         struct.storageResourceDescription = iprot.readString();
+         struct.setStorageResourceDescriptionIsSet(true);
+       }
+       if (incoming.get(1)) {
+         struct.enabled = iprot.readBool();
+         struct.setEnabledIsSet(true);
+       }
+       if (incoming.get(2)) {
+         {
+           org.apache.thrift.protocol.TList _list5 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+           struct.dataMovementInterfaces = new ArrayList<org.apache.airavata.model.data.movement.DataMovementInterface>(_list5.size);
+           org.apache.airavata.model.data.movement.DataMovementInterface _elem6;
+           for (int _i7 = 0; _i7 < _list5.size; ++_i7)
+           {
+             _elem6 = new org.apache.airavata.model.data.movement.DataMovementInterface();
+             _elem6.read(iprot);
+             struct.dataMovementInterfaces.add(_elem6);
+           }
+         }
+         struct.setDataMovementInterfacesIsSet(true);
+       }
+     }
+   }
+ 
+ }
+ 

http://git-wip-us.apache.org/repos/asf/airavata/blob/fc277b0a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/io/InputDataObjectType.java
----------------------------------------------------------------------
diff --cc airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/io/InputDataObjectType.java
index a14b94c,c5c4423..3e558fa
--- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/io/InputDataObjectType.java
+++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/io/InputDataObjectType.java
@@@ -77,7 -77,7 +77,7 @@@ import org.slf4j.LoggerFactory
   *   Any metadat. This is typically ignore by Airavata and is used by gateways for application configuration.
   * 
   */
- @Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-11-25")
 -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-12-3")
++@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-12-4")
  public class InputDataObjectType implements org.apache.thrift.TBase<InputDataObjectType, InputDataObjectType._Fields>, java.io.Serializable, Cloneable, Comparable<InputDataObjectType> {
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("InputDataObjectType");
  

http://git-wip-us.apache.org/repos/asf/airavata/blob/fc277b0a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/io/OutputDataObjectType.java
----------------------------------------------------------------------
diff --cc airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/io/OutputDataObjectType.java
index afafcd4,a9fa333..5b6b5c1
--- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/io/OutputDataObjectType.java
+++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/io/OutputDataObjectType.java
@@@ -77,7 -77,7 +77,7 @@@ import org.slf4j.LoggerFactory
   *   Any metadat. This is typically ignore by Airavata and is used by gateways for application configuration.
   * 
   */
- @Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-11-25")
 -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-12-3")
++@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-12-4")
  public class OutputDataObjectType implements org.apache.thrift.TBase<OutputDataObjectType, OutputDataObjectType._Fields>, java.io.Serializable, Cloneable, Comparable<OutputDataObjectType> {
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("OutputDataObjectType");
  

http://git-wip-us.apache.org/repos/asf/airavata/blob/fc277b0a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/commons/ErrorModel.java
----------------------------------------------------------------------
diff --cc airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/commons/ErrorModel.java
index 6a1e67b,5f6ad35..cb05fb8
--- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/commons/ErrorModel.java
+++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/commons/ErrorModel.java
@@@ -51,7 -51,7 +51,7 @@@ import org.slf4j.Logger
  import org.slf4j.LoggerFactory;
  
  @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
- @Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-11-25")
 -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-12-3")
++@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-12-4")
  public class ErrorModel implements org.apache.thrift.TBase<ErrorModel, ErrorModel._Fields>, java.io.Serializable, Cloneable, Comparable<ErrorModel> {
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ErrorModel");
  

http://git-wip-us.apache.org/repos/asf/airavata/blob/fc277b0a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/commons/ValidationResults.java
----------------------------------------------------------------------
diff --cc airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/commons/ValidationResults.java
index 6dca773,0c6dd12..ad5508f
--- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/commons/ValidationResults.java
+++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/commons/ValidationResults.java
@@@ -51,7 -51,7 +51,7 @@@ import org.slf4j.Logger
  import org.slf4j.LoggerFactory;
  
  @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
- @Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-11-25")
 -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-12-3")
++@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-12-4")
  public class ValidationResults implements org.apache.thrift.TBase<ValidationResults, ValidationResults._Fields>, java.io.Serializable, Cloneable, Comparable<ValidationResults> {
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ValidationResults");
  

http://git-wip-us.apache.org/repos/asf/airavata/blob/fc277b0a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/commons/ValidatorResult.java
----------------------------------------------------------------------
diff --cc airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/commons/ValidatorResult.java
index a9a369f,a65534d..a72b4cd
--- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/commons/ValidatorResult.java
+++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/commons/ValidatorResult.java
@@@ -58,7 -58,7 +58,7 @@@ import org.slf4j.LoggerFactory
   * during the experiment launch operation
   * 
   */
- @Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-11-25")
 -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-12-3")
++@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-12-4")
  public class ValidatorResult implements org.apache.thrift.TBase<ValidatorResult, ValidatorResult._Fields>, java.io.Serializable, Cloneable, Comparable<ValidatorResult> {
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ValidatorResult");
  

http://git-wip-us.apache.org/repos/asf/airavata/blob/fc277b0a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/data/movement/DataMovementInterface.java
----------------------------------------------------------------------
diff --cc airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/data/movement/DataMovementInterface.java
index 0000000,caee0a4..b38b590
mode 000000,100644..100644
--- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/data/movement/DataMovementInterface.java
+++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/data/movement/DataMovementInterface.java
@@@ -1,0 -1,630 +1,630 @@@
+ /**
+  * 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.2)
+  *
+  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+  *  @generated
+  */
+ package org.apache.airavata.model.data.movement;
+ 
+ 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"})
+ /**
+  * Data Movement Interfaces
+  * 
+  * dataMovementInterfaceId: The Data Movement Interface has to be previously registered and referenced here.
+  * 
+  * priorityOrder:
+  *  For resources with multiple interfaces, the priority order should be selected.
+  *   Lower the numerical number, higher the priority
+  * 
+  */
 -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-12-3")
++@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-12-4")
+ public class DataMovementInterface implements org.apache.thrift.TBase<DataMovementInterface, DataMovementInterface._Fields>, java.io.Serializable, Cloneable, Comparable<DataMovementInterface> {
+   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("DataMovementInterface");
+ 
+   private static final org.apache.thrift.protocol.TField DATA_MOVEMENT_INTERFACE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("dataMovementInterfaceId", org.apache.thrift.protocol.TType.STRING, (short)1);
+   private static final org.apache.thrift.protocol.TField DATA_MOVEMENT_PROTOCOL_FIELD_DESC = new org.apache.thrift.protocol.TField("dataMovementProtocol", org.apache.thrift.protocol.TType.I32, (short)2);
+   private static final org.apache.thrift.protocol.TField PRIORITY_ORDER_FIELD_DESC = new org.apache.thrift.protocol.TField("priorityOrder", org.apache.thrift.protocol.TType.I32, (short)3);
+ 
+   private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+   static {
+     schemes.put(StandardScheme.class, new DataMovementInterfaceStandardSchemeFactory());
+     schemes.put(TupleScheme.class, new DataMovementInterfaceTupleSchemeFactory());
+   }
+ 
+   private String dataMovementInterfaceId; // required
+   private DataMovementProtocol dataMovementProtocol; // required
+   private int priorityOrder; // 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 {
+     DATA_MOVEMENT_INTERFACE_ID((short)1, "dataMovementInterfaceId"),
+     /**
+      * 
+      * @see DataMovementProtocol
+      */
+     DATA_MOVEMENT_PROTOCOL((short)2, "dataMovementProtocol"),
+     PRIORITY_ORDER((short)3, "priorityOrder");
+ 
+     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: // DATA_MOVEMENT_INTERFACE_ID
+           return DATA_MOVEMENT_INTERFACE_ID;
+         case 2: // DATA_MOVEMENT_PROTOCOL
+           return DATA_MOVEMENT_PROTOCOL;
+         case 3: // PRIORITY_ORDER
+           return PRIORITY_ORDER;
+         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 __PRIORITYORDER_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.DATA_MOVEMENT_INTERFACE_ID, new org.apache.thrift.meta_data.FieldMetaData("dataMovementInterfaceId", org.apache.thrift.TFieldRequirementType.REQUIRED, 
+         new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+     tmpMap.put(_Fields.DATA_MOVEMENT_PROTOCOL, new org.apache.thrift.meta_data.FieldMetaData("dataMovementProtocol", org.apache.thrift.TFieldRequirementType.REQUIRED, 
+         new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DataMovementProtocol.class)));
+     tmpMap.put(_Fields.PRIORITY_ORDER, new org.apache.thrift.meta_data.FieldMetaData("priorityOrder", org.apache.thrift.TFieldRequirementType.REQUIRED, 
+         new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
+     metaDataMap = Collections.unmodifiableMap(tmpMap);
+     org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(DataMovementInterface.class, metaDataMap);
+   }
+ 
+   public DataMovementInterface() {
+     this.priorityOrder = 0;
+ 
+   }
+ 
+   public DataMovementInterface(
+     String dataMovementInterfaceId,
+     DataMovementProtocol dataMovementProtocol,
+     int priorityOrder)
+   {
+     this();
+     this.dataMovementInterfaceId = dataMovementInterfaceId;
+     this.dataMovementProtocol = dataMovementProtocol;
+     this.priorityOrder = priorityOrder;
+     setPriorityOrderIsSet(true);
+   }
+ 
+   /**
+    * Performs a deep copy on <i>other</i>.
+    */
+   public DataMovementInterface(DataMovementInterface other) {
+     __isset_bitfield = other.__isset_bitfield;
+     if (other.isSetDataMovementInterfaceId()) {
+       this.dataMovementInterfaceId = other.dataMovementInterfaceId;
+     }
+     if (other.isSetDataMovementProtocol()) {
+       this.dataMovementProtocol = other.dataMovementProtocol;
+     }
+     this.priorityOrder = other.priorityOrder;
+   }
+ 
+   public DataMovementInterface deepCopy() {
+     return new DataMovementInterface(this);
+   }
+ 
+   @Override
+   public void clear() {
+     this.dataMovementInterfaceId = null;
+     this.dataMovementProtocol = null;
+     this.priorityOrder = 0;
+ 
+   }
+ 
+   public String getDataMovementInterfaceId() {
+     return this.dataMovementInterfaceId;
+   }
+ 
+   public void setDataMovementInterfaceId(String dataMovementInterfaceId) {
+     this.dataMovementInterfaceId = dataMovementInterfaceId;
+   }
+ 
+   public void unsetDataMovementInterfaceId() {
+     this.dataMovementInterfaceId = null;
+   }
+ 
+   /** Returns true if field dataMovementInterfaceId is set (has been assigned a value) and false otherwise */
+   public boolean isSetDataMovementInterfaceId() {
+     return this.dataMovementInterfaceId != null;
+   }
+ 
+   public void setDataMovementInterfaceIdIsSet(boolean value) {
+     if (!value) {
+       this.dataMovementInterfaceId = null;
+     }
+   }
+ 
+   /**
+    * 
+    * @see DataMovementProtocol
+    */
+   public DataMovementProtocol getDataMovementProtocol() {
+     return this.dataMovementProtocol;
+   }
+ 
+   /**
+    * 
+    * @see DataMovementProtocol
+    */
+   public void setDataMovementProtocol(DataMovementProtocol dataMovementProtocol) {
+     this.dataMovementProtocol = dataMovementProtocol;
+   }
+ 
+   public void unsetDataMovementProtocol() {
+     this.dataMovementProtocol = null;
+   }
+ 
+   /** Returns true if field dataMovementProtocol is set (has been assigned a value) and false otherwise */
+   public boolean isSetDataMovementProtocol() {
+     return this.dataMovementProtocol != null;
+   }
+ 
+   public void setDataMovementProtocolIsSet(boolean value) {
+     if (!value) {
+       this.dataMovementProtocol = null;
+     }
+   }
+ 
+   public int getPriorityOrder() {
+     return this.priorityOrder;
+   }
+ 
+   public void setPriorityOrder(int priorityOrder) {
+     this.priorityOrder = priorityOrder;
+     setPriorityOrderIsSet(true);
+   }
+ 
+   public void unsetPriorityOrder() {
+     __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __PRIORITYORDER_ISSET_ID);
+   }
+ 
+   /** Returns true if field priorityOrder is set (has been assigned a value) and false otherwise */
+   public boolean isSetPriorityOrder() {
+     return EncodingUtils.testBit(__isset_bitfield, __PRIORITYORDER_ISSET_ID);
+   }
+ 
+   public void setPriorityOrderIsSet(boolean value) {
+     __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __PRIORITYORDER_ISSET_ID, value);
+   }
+ 
+   public void setFieldValue(_Fields field, Object value) {
+     switch (field) {
+     case DATA_MOVEMENT_INTERFACE_ID:
+       if (value == null) {
+         unsetDataMovementInterfaceId();
+       } else {
+         setDataMovementInterfaceId((String)value);
+       }
+       break;
+ 
+     case DATA_MOVEMENT_PROTOCOL:
+       if (value == null) {
+         unsetDataMovementProtocol();
+       } else {
+         setDataMovementProtocol((DataMovementProtocol)value);
+       }
+       break;
+ 
+     case PRIORITY_ORDER:
+       if (value == null) {
+         unsetPriorityOrder();
+       } else {
+         setPriorityOrder((Integer)value);
+       }
+       break;
+ 
+     }
+   }
+ 
+   public Object getFieldValue(_Fields field) {
+     switch (field) {
+     case DATA_MOVEMENT_INTERFACE_ID:
+       return getDataMovementInterfaceId();
+ 
+     case DATA_MOVEMENT_PROTOCOL:
+       return getDataMovementProtocol();
+ 
+     case PRIORITY_ORDER:
+       return Integer.valueOf(getPriorityOrder());
+ 
+     }
+     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 DATA_MOVEMENT_INTERFACE_ID:
+       return isSetDataMovementInterfaceId();
+     case DATA_MOVEMENT_PROTOCOL:
+       return isSetDataMovementProtocol();
+     case PRIORITY_ORDER:
+       return isSetPriorityOrder();
+     }
+     throw new IllegalStateException();
+   }
+ 
+   @Override
+   public boolean equals(Object that) {
+     if (that == null)
+       return false;
+     if (that instanceof DataMovementInterface)
+       return this.equals((DataMovementInterface)that);
+     return false;
+   }
+ 
+   public boolean equals(DataMovementInterface that) {
+     if (that == null)
+       return false;
+ 
+     boolean this_present_dataMovementInterfaceId = true && this.isSetDataMovementInterfaceId();
+     boolean that_present_dataMovementInterfaceId = true && that.isSetDataMovementInterfaceId();
+     if (this_present_dataMovementInterfaceId || that_present_dataMovementInterfaceId) {
+       if (!(this_present_dataMovementInterfaceId && that_present_dataMovementInterfaceId))
+         return false;
+       if (!this.dataMovementInterfaceId.equals(that.dataMovementInterfaceId))
+         return false;
+     }
+ 
+     boolean this_present_dataMovementProtocol = true && this.isSetDataMovementProtocol();
+     boolean that_present_dataMovementProtocol = true && that.isSetDataMovementProtocol();
+     if (this_present_dataMovementProtocol || that_present_dataMovementProtocol) {
+       if (!(this_present_dataMovementProtocol && that_present_dataMovementProtocol))
+         return false;
+       if (!this.dataMovementProtocol.equals(that.dataMovementProtocol))
+         return false;
+     }
+ 
+     boolean this_present_priorityOrder = true;
+     boolean that_present_priorityOrder = true;
+     if (this_present_priorityOrder || that_present_priorityOrder) {
+       if (!(this_present_priorityOrder && that_present_priorityOrder))
+         return false;
+       if (this.priorityOrder != that.priorityOrder)
+         return false;
+     }
+ 
+     return true;
+   }
+ 
+   @Override
+   public int hashCode() {
+     List<Object> list = new ArrayList<Object>();
+ 
+     boolean present_dataMovementInterfaceId = true && (isSetDataMovementInterfaceId());
+     list.add(present_dataMovementInterfaceId);
+     if (present_dataMovementInterfaceId)
+       list.add(dataMovementInterfaceId);
+ 
+     boolean present_dataMovementProtocol = true && (isSetDataMovementProtocol());
+     list.add(present_dataMovementProtocol);
+     if (present_dataMovementProtocol)
+       list.add(dataMovementProtocol.getValue());
+ 
+     boolean present_priorityOrder = true;
+     list.add(present_priorityOrder);
+     if (present_priorityOrder)
+       list.add(priorityOrder);
+ 
+     return list.hashCode();
+   }
+ 
+   @Override
+   public int compareTo(DataMovementInterface other) {
+     if (!getClass().equals(other.getClass())) {
+       return getClass().getName().compareTo(other.getClass().getName());
+     }
+ 
+     int lastComparison = 0;
+ 
+     lastComparison = Boolean.valueOf(isSetDataMovementInterfaceId()).compareTo(other.isSetDataMovementInterfaceId());
+     if (lastComparison != 0) {
+       return lastComparison;
+     }
+     if (isSetDataMovementInterfaceId()) {
+       lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dataMovementInterfaceId, other.dataMovementInterfaceId);
+       if (lastComparison != 0) {
+         return lastComparison;
+       }
+     }
+     lastComparison = Boolean.valueOf(isSetDataMovementProtocol()).compareTo(other.isSetDataMovementProtocol());
+     if (lastComparison != 0) {
+       return lastComparison;
+     }
+     if (isSetDataMovementProtocol()) {
+       lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dataMovementProtocol, other.dataMovementProtocol);
+       if (lastComparison != 0) {
+         return lastComparison;
+       }
+     }
+     lastComparison = Boolean.valueOf(isSetPriorityOrder()).compareTo(other.isSetPriorityOrder());
+     if (lastComparison != 0) {
+       return lastComparison;
+     }
+     if (isSetPriorityOrder()) {
+       lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.priorityOrder, other.priorityOrder);
+       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("DataMovementInterface(");
+     boolean first = true;
+ 
+     sb.append("dataMovementInterfaceId:");
+     if (this.dataMovementInterfaceId == null) {
+       sb.append("null");
+     } else {
+       sb.append(this.dataMovementInterfaceId);
+     }
+     first = false;
+     if (!first) sb.append(", ");
+     sb.append("dataMovementProtocol:");
+     if (this.dataMovementProtocol == null) {
+       sb.append("null");
+     } else {
+       sb.append(this.dataMovementProtocol);
+     }
+     first = false;
+     if (!first) sb.append(", ");
+     sb.append("priorityOrder:");
+     sb.append(this.priorityOrder);
+     first = false;
+     sb.append(")");
+     return sb.toString();
+   }
+ 
+   public void validate() throws org.apache.thrift.TException {
+     // check for required fields
+     if (!isSetDataMovementInterfaceId()) {
+       throw new org.apache.thrift.protocol.TProtocolException("Required field 'dataMovementInterfaceId' is unset! Struct:" + toString());
+     }
+ 
+     if (!isSetDataMovementProtocol()) {
+       throw new org.apache.thrift.protocol.TProtocolException("Required field 'dataMovementProtocol' is unset! Struct:" + toString());
+     }
+ 
+     if (!isSetPriorityOrder()) {
+       throw new org.apache.thrift.protocol.TProtocolException("Required field 'priorityOrder' is unset! Struct:" + toString());
+     }
+ 
+     // check for sub-struct validity
+   }
+ 
+   private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+     try {
+       write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
+     } catch (org.apache.thrift.TException te) {
+       throw new java.io.IOException(te);
+     }
+   }
+ 
+   private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+     try {
+       // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
+       __isset_bitfield = 0;
+       read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
+     } catch (org.apache.thrift.TException te) {
+       throw new java.io.IOException(te);
+     }
+   }
+ 
+   private static class DataMovementInterfaceStandardSchemeFactory implements SchemeFactory {
+     public DataMovementInterfaceStandardScheme getScheme() {
+       return new DataMovementInterfaceStandardScheme();
+     }
+   }
+ 
+   private static class DataMovementInterfaceStandardScheme extends StandardScheme<DataMovementInterface> {
+ 
+     public void read(org.apache.thrift.protocol.TProtocol iprot, DataMovementInterface 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: // DATA_MOVEMENT_INTERFACE_ID
+             if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+               struct.dataMovementInterfaceId = iprot.readString();
+               struct.setDataMovementInterfaceIdIsSet(true);
+             } else { 
+               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+             }
+             break;
+           case 2: // DATA_MOVEMENT_PROTOCOL
+             if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
+               struct.dataMovementProtocol = org.apache.airavata.model.data.movement.DataMovementProtocol.findByValue(iprot.readI32());
+               struct.setDataMovementProtocolIsSet(true);
+             } else { 
+               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+             }
+             break;
+           case 3: // PRIORITY_ORDER
+             if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
+               struct.priorityOrder = iprot.readI32();
+               struct.setPriorityOrderIsSet(true);
+             } else { 
+               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+             }
+             break;
+           default:
+             org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+         }
+         iprot.readFieldEnd();
+       }
+       iprot.readStructEnd();
+       struct.validate();
+     }
+ 
+     public void write(org.apache.thrift.protocol.TProtocol oprot, DataMovementInterface struct) throws org.apache.thrift.TException {
+       struct.validate();
+ 
+       oprot.writeStructBegin(STRUCT_DESC);
+       if (struct.dataMovementInterfaceId != null) {
+         oprot.writeFieldBegin(DATA_MOVEMENT_INTERFACE_ID_FIELD_DESC);
+         oprot.writeString(struct.dataMovementInterfaceId);
+         oprot.writeFieldEnd();
+       }
+       if (struct.dataMovementProtocol != null) {
+         oprot.writeFieldBegin(DATA_MOVEMENT_PROTOCOL_FIELD_DESC);
+         oprot.writeI32(struct.dataMovementProtocol.getValue());
+         oprot.writeFieldEnd();
+       }
+       oprot.writeFieldBegin(PRIORITY_ORDER_FIELD_DESC);
+       oprot.writeI32(struct.priorityOrder);
+       oprot.writeFieldEnd();
+       oprot.writeFieldStop();
+       oprot.writeStructEnd();
+     }
+ 
+   }
+ 
+   private static class DataMovementInterfaceTupleSchemeFactory implements SchemeFactory {
+     public DataMovementInterfaceTupleScheme getScheme() {
+       return new DataMovementInterfaceTupleScheme();
+     }
+   }
+ 
+   private static class DataMovementInterfaceTupleScheme extends TupleScheme<DataMovementInterface> {
+ 
+     @Override
+     public void write(org.apache.thrift.protocol.TProtocol prot, DataMovementInterface struct) throws org.apache.thrift.TException {
+       TTupleProtocol oprot = (TTupleProtocol) prot;
+       oprot.writeString(struct.dataMovementInterfaceId);
+       oprot.writeI32(struct.dataMovementProtocol.getValue());
+       oprot.writeI32(struct.priorityOrder);
+     }
+ 
+     @Override
+     public void read(org.apache.thrift.protocol.TProtocol prot, DataMovementInterface struct) throws org.apache.thrift.TException {
+       TTupleProtocol iprot = (TTupleProtocol) prot;
+       struct.dataMovementInterfaceId = iprot.readString();
+       struct.setDataMovementInterfaceIdIsSet(true);
+       struct.dataMovementProtocol = org.apache.airavata.model.data.movement.DataMovementProtocol.findByValue(iprot.readI32());
+       struct.setDataMovementProtocolIsSet(true);
+       struct.priorityOrder = iprot.readI32();
+       struct.setPriorityOrderIsSet(true);
+     }
+   }
+ 
+ }
+ 


Mime
View raw message