http://git-wip-us.apache.org/repos/asf/airavata/blob/39fba1f5/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/experiment/ExperimentStatistics.java ---------------------------------------------------------------------- diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/experiment/ExperimentStatistics.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/experiment/ExperimentStatistics.java index 03aa46a..54e7c2a 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/experiment/ExperimentStatistics.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/experiment/ExperimentStatistics.java @@ -16,42 +16,15 @@ */ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.10.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.airavata.model.experiment; -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)") +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) [email protected](value = "Autogenerated by Thrift Compiler (0.10.0)") public class ExperimentStatistics implements org.apache.thrift.TBase<ExperimentStatistics, ExperimentStatistics._Fields>, java.io.Serializable, Cloneable, Comparable<ExperimentStatistics> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ExperimentStatistics"); @@ -68,11 +41,8 @@ public class ExperimentStatistics implements org.apache.thrift.TBase<ExperimentS private static final org.apache.thrift.protocol.TField CREATED_EXPERIMENTS_FIELD_DESC = new org.apache.thrift.protocol.TField("createdExperiments", org.apache.thrift.protocol.TType.LIST, (short)11); private static final org.apache.thrift.protocol.TField RUNNING_EXPERIMENTS_FIELD_DESC = new org.apache.thrift.protocol.TField("runningExperiments", org.apache.thrift.protocol.TType.LIST, (short)12); - private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new ExperimentStatisticsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new ExperimentStatisticsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new ExperimentStatisticsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new ExperimentStatisticsTupleSchemeFactory(); private int allExperimentCount; // required private int completedExperimentCount; // required @@ -80,12 +50,12 @@ public class ExperimentStatistics implements org.apache.thrift.TBase<ExperimentS private int failedExperimentCount; // required private int createdExperimentCount; // required private int runningExperimentCount; // required - private List<ExperimentSummaryModel> allExperiments; // required - private List<ExperimentSummaryModel> completedExperiments; // optional - private List<ExperimentSummaryModel> failedExperiments; // optional - private List<ExperimentSummaryModel> cancelledExperiments; // optional - private List<ExperimentSummaryModel> createdExperiments; // optional - private List<ExperimentSummaryModel> runningExperiments; // optional + private java.util.List<ExperimentSummaryModel> allExperiments; // required + private java.util.List<ExperimentSummaryModel> completedExperiments; // optional + private java.util.List<ExperimentSummaryModel> failedExperiments; // optional + private java.util.List<ExperimentSummaryModel> cancelledExperiments; // optional + private java.util.List<ExperimentSummaryModel> createdExperiments; // optional + private java.util.List<ExperimentSummaryModel> runningExperiments; // 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 { @@ -102,10 +72,10 @@ public class ExperimentStatistics implements org.apache.thrift.TBase<ExperimentS CREATED_EXPERIMENTS((short)11, "createdExperiments"), RUNNING_EXPERIMENTS((short)12, "runningExperiments"); - private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); + private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -150,21 +120,21 @@ public class ExperimentStatistics implements org.apache.thrift.TBase<ExperimentS */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -173,7 +143,7 @@ public class ExperimentStatistics implements org.apache.thrift.TBase<ExperimentS return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -187,9 +157,9 @@ public class ExperimentStatistics implements org.apache.thrift.TBase<ExperimentS private static final int __RUNNINGEXPERIMENTCOUNT_ISSET_ID = 5; private byte __isset_bitfield = 0; private static final _Fields optionals[] = {_Fields.CANCELLED_EXPERIMENT_COUNT,_Fields.COMPLETED_EXPERIMENTS,_Fields.FAILED_EXPERIMENTS,_Fields.CANCELLED_EXPERIMENTS,_Fields.CREATED_EXPERIMENTS,_Fields.RUNNING_EXPERIMENTS}; - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.ALL_EXPERIMENT_COUNT, new org.apache.thrift.meta_data.FieldMetaData("allExperimentCount", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); tmpMap.put(_Fields.COMPLETED_EXPERIMENT_COUNT, new org.apache.thrift.meta_data.FieldMetaData("completedExperimentCount", org.apache.thrift.TFieldRequirementType.REQUIRED, @@ -220,7 +190,7 @@ public class ExperimentStatistics implements org.apache.thrift.TBase<ExperimentS tmpMap.put(_Fields.RUNNING_EXPERIMENTS, new org.apache.thrift.meta_data.FieldMetaData("runningExperiments", 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, ExperimentSummaryModel.class)))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(ExperimentStatistics.class, metaDataMap); } @@ -233,7 +203,7 @@ public class ExperimentStatistics implements org.apache.thrift.TBase<ExperimentS int failedExperimentCount, int createdExperimentCount, int runningExperimentCount, - List<ExperimentSummaryModel> allExperiments) + java.util.List<ExperimentSummaryModel> allExperiments) { this(); this.allExperimentCount = allExperimentCount; @@ -261,42 +231,42 @@ public class ExperimentStatistics implements org.apache.thrift.TBase<ExperimentS this.createdExperimentCount = other.createdExperimentCount; this.runningExperimentCount = other.runningExperimentCount; if (other.isSetAllExperiments()) { - List<ExperimentSummaryModel> __this__allExperiments = new ArrayList<ExperimentSummaryModel>(other.allExperiments.size()); + java.util.List<ExperimentSummaryModel> __this__allExperiments = new java.util.ArrayList<ExperimentSummaryModel>(other.allExperiments.size()); for (ExperimentSummaryModel other_element : other.allExperiments) { __this__allExperiments.add(new ExperimentSummaryModel(other_element)); } this.allExperiments = __this__allExperiments; } if (other.isSetCompletedExperiments()) { - List<ExperimentSummaryModel> __this__completedExperiments = new ArrayList<ExperimentSummaryModel>(other.completedExperiments.size()); + java.util.List<ExperimentSummaryModel> __this__completedExperiments = new java.util.ArrayList<ExperimentSummaryModel>(other.completedExperiments.size()); for (ExperimentSummaryModel other_element : other.completedExperiments) { __this__completedExperiments.add(new ExperimentSummaryModel(other_element)); } this.completedExperiments = __this__completedExperiments; } if (other.isSetFailedExperiments()) { - List<ExperimentSummaryModel> __this__failedExperiments = new ArrayList<ExperimentSummaryModel>(other.failedExperiments.size()); + java.util.List<ExperimentSummaryModel> __this__failedExperiments = new java.util.ArrayList<ExperimentSummaryModel>(other.failedExperiments.size()); for (ExperimentSummaryModel other_element : other.failedExperiments) { __this__failedExperiments.add(new ExperimentSummaryModel(other_element)); } this.failedExperiments = __this__failedExperiments; } if (other.isSetCancelledExperiments()) { - List<ExperimentSummaryModel> __this__cancelledExperiments = new ArrayList<ExperimentSummaryModel>(other.cancelledExperiments.size()); + java.util.List<ExperimentSummaryModel> __this__cancelledExperiments = new java.util.ArrayList<ExperimentSummaryModel>(other.cancelledExperiments.size()); for (ExperimentSummaryModel other_element : other.cancelledExperiments) { __this__cancelledExperiments.add(new ExperimentSummaryModel(other_element)); } this.cancelledExperiments = __this__cancelledExperiments; } if (other.isSetCreatedExperiments()) { - List<ExperimentSummaryModel> __this__createdExperiments = new ArrayList<ExperimentSummaryModel>(other.createdExperiments.size()); + java.util.List<ExperimentSummaryModel> __this__createdExperiments = new java.util.ArrayList<ExperimentSummaryModel>(other.createdExperiments.size()); for (ExperimentSummaryModel other_element : other.createdExperiments) { __this__createdExperiments.add(new ExperimentSummaryModel(other_element)); } this.createdExperiments = __this__createdExperiments; } if (other.isSetRunningExperiments()) { - List<ExperimentSummaryModel> __this__runningExperiments = new ArrayList<ExperimentSummaryModel>(other.runningExperiments.size()); + java.util.List<ExperimentSummaryModel> __this__runningExperiments = new java.util.ArrayList<ExperimentSummaryModel>(other.runningExperiments.size()); for (ExperimentSummaryModel other_element : other.runningExperiments) { __this__runningExperiments.add(new ExperimentSummaryModel(other_element)); } @@ -340,16 +310,16 @@ public class ExperimentStatistics implements org.apache.thrift.TBase<ExperimentS } public void unsetAllExperimentCount() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ALLEXPERIMENTCOUNT_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __ALLEXPERIMENTCOUNT_ISSET_ID); } /** Returns true if field allExperimentCount is set (has been assigned a value) and false otherwise */ public boolean isSetAllExperimentCount() { - return EncodingUtils.testBit(__isset_bitfield, __ALLEXPERIMENTCOUNT_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __ALLEXPERIMENTCOUNT_ISSET_ID); } public void setAllExperimentCountIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ALLEXPERIMENTCOUNT_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __ALLEXPERIMENTCOUNT_ISSET_ID, value); } public int getCompletedExperimentCount() { @@ -362,16 +332,16 @@ public class ExperimentStatistics implements org.apache.thrift.TBase<ExperimentS } public void unsetCompletedExperimentCount() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __COMPLETEDEXPERIMENTCOUNT_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __COMPLETEDEXPERIMENTCOUNT_ISSET_ID); } /** Returns true if field completedExperimentCount is set (has been assigned a value) and false otherwise */ public boolean isSetCompletedExperimentCount() { - return EncodingUtils.testBit(__isset_bitfield, __COMPLETEDEXPERIMENTCOUNT_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __COMPLETEDEXPERIMENTCOUNT_ISSET_ID); } public void setCompletedExperimentCountIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __COMPLETEDEXPERIMENTCOUNT_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __COMPLETEDEXPERIMENTCOUNT_ISSET_ID, value); } public int getCancelledExperimentCount() { @@ -384,16 +354,16 @@ public class ExperimentStatistics implements org.apache.thrift.TBase<ExperimentS } public void unsetCancelledExperimentCount() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __CANCELLEDEXPERIMENTCOUNT_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __CANCELLEDEXPERIMENTCOUNT_ISSET_ID); } /** Returns true if field cancelledExperimentCount is set (has been assigned a value) and false otherwise */ public boolean isSetCancelledExperimentCount() { - return EncodingUtils.testBit(__isset_bitfield, __CANCELLEDEXPERIMENTCOUNT_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __CANCELLEDEXPERIMENTCOUNT_ISSET_ID); } public void setCancelledExperimentCountIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __CANCELLEDEXPERIMENTCOUNT_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __CANCELLEDEXPERIMENTCOUNT_ISSET_ID, value); } public int getFailedExperimentCount() { @@ -406,16 +376,16 @@ public class ExperimentStatistics implements org.apache.thrift.TBase<ExperimentS } public void unsetFailedExperimentCount() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __FAILEDEXPERIMENTCOUNT_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __FAILEDEXPERIMENTCOUNT_ISSET_ID); } /** Returns true if field failedExperimentCount is set (has been assigned a value) and false otherwise */ public boolean isSetFailedExperimentCount() { - return EncodingUtils.testBit(__isset_bitfield, __FAILEDEXPERIMENTCOUNT_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __FAILEDEXPERIMENTCOUNT_ISSET_ID); } public void setFailedExperimentCountIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __FAILEDEXPERIMENTCOUNT_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __FAILEDEXPERIMENTCOUNT_ISSET_ID, value); } public int getCreatedExperimentCount() { @@ -428,16 +398,16 @@ public class ExperimentStatistics implements org.apache.thrift.TBase<ExperimentS } public void unsetCreatedExperimentCount() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __CREATEDEXPERIMENTCOUNT_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __CREATEDEXPERIMENTCOUNT_ISSET_ID); } /** Returns true if field createdExperimentCount is set (has been assigned a value) and false otherwise */ public boolean isSetCreatedExperimentCount() { - return EncodingUtils.testBit(__isset_bitfield, __CREATEDEXPERIMENTCOUNT_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __CREATEDEXPERIMENTCOUNT_ISSET_ID); } public void setCreatedExperimentCountIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __CREATEDEXPERIMENTCOUNT_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __CREATEDEXPERIMENTCOUNT_ISSET_ID, value); } public int getRunningExperimentCount() { @@ -450,16 +420,16 @@ public class ExperimentStatistics implements org.apache.thrift.TBase<ExperimentS } public void unsetRunningExperimentCount() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RUNNINGEXPERIMENTCOUNT_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __RUNNINGEXPERIMENTCOUNT_ISSET_ID); } /** Returns true if field runningExperimentCount is set (has been assigned a value) and false otherwise */ public boolean isSetRunningExperimentCount() { - return EncodingUtils.testBit(__isset_bitfield, __RUNNINGEXPERIMENTCOUNT_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __RUNNINGEXPERIMENTCOUNT_ISSET_ID); } public void setRunningExperimentCountIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RUNNINGEXPERIMENTCOUNT_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __RUNNINGEXPERIMENTCOUNT_ISSET_ID, value); } public int getAllExperimentsSize() { @@ -472,16 +442,16 @@ public class ExperimentStatistics implements org.apache.thrift.TBase<ExperimentS public void addToAllExperiments(ExperimentSummaryModel elem) { if (this.allExperiments == null) { - this.allExperiments = new ArrayList<ExperimentSummaryModel>(); + this.allExperiments = new java.util.ArrayList<ExperimentSummaryModel>(); } this.allExperiments.add(elem); } - public List<ExperimentSummaryModel> getAllExperiments() { + public java.util.List<ExperimentSummaryModel> getAllExperiments() { return this.allExperiments; } - public void setAllExperiments(List<ExperimentSummaryModel> allExperiments) { + public void setAllExperiments(java.util.List<ExperimentSummaryModel> allExperiments) { this.allExperiments = allExperiments; } @@ -510,16 +480,16 @@ public class ExperimentStatistics implements org.apache.thrift.TBase<ExperimentS public void addToCompletedExperiments(ExperimentSummaryModel elem) { if (this.completedExperiments == null) { - this.completedExperiments = new ArrayList<ExperimentSummaryModel>(); + this.completedExperiments = new java.util.ArrayList<ExperimentSummaryModel>(); } this.completedExperiments.add(elem); } - public List<ExperimentSummaryModel> getCompletedExperiments() { + public java.util.List<ExperimentSummaryModel> getCompletedExperiments() { return this.completedExperiments; } - public void setCompletedExperiments(List<ExperimentSummaryModel> completedExperiments) { + public void setCompletedExperiments(java.util.List<ExperimentSummaryModel> completedExperiments) { this.completedExperiments = completedExperiments; } @@ -548,16 +518,16 @@ public class ExperimentStatistics implements org.apache.thrift.TBase<ExperimentS public void addToFailedExperiments(ExperimentSummaryModel elem) { if (this.failedExperiments == null) { - this.failedExperiments = new ArrayList<ExperimentSummaryModel>(); + this.failedExperiments = new java.util.ArrayList<ExperimentSummaryModel>(); } this.failedExperiments.add(elem); } - public List<ExperimentSummaryModel> getFailedExperiments() { + public java.util.List<ExperimentSummaryModel> getFailedExperiments() { return this.failedExperiments; } - public void setFailedExperiments(List<ExperimentSummaryModel> failedExperiments) { + public void setFailedExperiments(java.util.List<ExperimentSummaryModel> failedExperiments) { this.failedExperiments = failedExperiments; } @@ -586,16 +556,16 @@ public class ExperimentStatistics implements org.apache.thrift.TBase<ExperimentS public void addToCancelledExperiments(ExperimentSummaryModel elem) { if (this.cancelledExperiments == null) { - this.cancelledExperiments = new ArrayList<ExperimentSummaryModel>(); + this.cancelledExperiments = new java.util.ArrayList<ExperimentSummaryModel>(); } this.cancelledExperiments.add(elem); } - public List<ExperimentSummaryModel> getCancelledExperiments() { + public java.util.List<ExperimentSummaryModel> getCancelledExperiments() { return this.cancelledExperiments; } - public void setCancelledExperiments(List<ExperimentSummaryModel> cancelledExperiments) { + public void setCancelledExperiments(java.util.List<ExperimentSummaryModel> cancelledExperiments) { this.cancelledExperiments = cancelledExperiments; } @@ -624,16 +594,16 @@ public class ExperimentStatistics implements org.apache.thrift.TBase<ExperimentS public void addToCreatedExperiments(ExperimentSummaryModel elem) { if (this.createdExperiments == null) { - this.createdExperiments = new ArrayList<ExperimentSummaryModel>(); + this.createdExperiments = new java.util.ArrayList<ExperimentSummaryModel>(); } this.createdExperiments.add(elem); } - public List<ExperimentSummaryModel> getCreatedExperiments() { + public java.util.List<ExperimentSummaryModel> getCreatedExperiments() { return this.createdExperiments; } - public void setCreatedExperiments(List<ExperimentSummaryModel> createdExperiments) { + public void setCreatedExperiments(java.util.List<ExperimentSummaryModel> createdExperiments) { this.createdExperiments = createdExperiments; } @@ -662,16 +632,16 @@ public class ExperimentStatistics implements org.apache.thrift.TBase<ExperimentS public void addToRunningExperiments(ExperimentSummaryModel elem) { if (this.runningExperiments == null) { - this.runningExperiments = new ArrayList<ExperimentSummaryModel>(); + this.runningExperiments = new java.util.ArrayList<ExperimentSummaryModel>(); } this.runningExperiments.add(elem); } - public List<ExperimentSummaryModel> getRunningExperiments() { + public java.util.List<ExperimentSummaryModel> getRunningExperiments() { return this.runningExperiments; } - public void setRunningExperiments(List<ExperimentSummaryModel> runningExperiments) { + public void setRunningExperiments(java.util.List<ExperimentSummaryModel> runningExperiments) { this.runningExperiments = runningExperiments; } @@ -690,13 +660,13 @@ public class ExperimentStatistics implements org.apache.thrift.TBase<ExperimentS } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, java.lang.Object value) { switch (field) { case ALL_EXPERIMENT_COUNT: if (value == null) { unsetAllExperimentCount(); } else { - setAllExperimentCount((Integer)value); + setAllExperimentCount((java.lang.Integer)value); } break; @@ -704,7 +674,7 @@ public class ExperimentStatistics implements org.apache.thrift.TBase<ExperimentS if (value == null) { unsetCompletedExperimentCount(); } else { - setCompletedExperimentCount((Integer)value); + setCompletedExperimentCount((java.lang.Integer)value); } break; @@ -712,7 +682,7 @@ public class ExperimentStatistics implements org.apache.thrift.TBase<ExperimentS if (value == null) { unsetCancelledExperimentCount(); } else { - setCancelledExperimentCount((Integer)value); + setCancelledExperimentCount((java.lang.Integer)value); } break; @@ -720,7 +690,7 @@ public class ExperimentStatistics implements org.apache.thrift.TBase<ExperimentS if (value == null) { unsetFailedExperimentCount(); } else { - setFailedExperimentCount((Integer)value); + setFailedExperimentCount((java.lang.Integer)value); } break; @@ -728,7 +698,7 @@ public class ExperimentStatistics implements org.apache.thrift.TBase<ExperimentS if (value == null) { unsetCreatedExperimentCount(); } else { - setCreatedExperimentCount((Integer)value); + setCreatedExperimentCount((java.lang.Integer)value); } break; @@ -736,7 +706,7 @@ public class ExperimentStatistics implements org.apache.thrift.TBase<ExperimentS if (value == null) { unsetRunningExperimentCount(); } else { - setRunningExperimentCount((Integer)value); + setRunningExperimentCount((java.lang.Integer)value); } break; @@ -744,7 +714,7 @@ public class ExperimentStatistics implements org.apache.thrift.TBase<ExperimentS if (value == null) { unsetAllExperiments(); } else { - setAllExperiments((List<ExperimentSummaryModel>)value); + setAllExperiments((java.util.List<ExperimentSummaryModel>)value); } break; @@ -752,7 +722,7 @@ public class ExperimentStatistics implements org.apache.thrift.TBase<ExperimentS if (value == null) { unsetCompletedExperiments(); } else { - setCompletedExperiments((List<ExperimentSummaryModel>)value); + setCompletedExperiments((java.util.List<ExperimentSummaryModel>)value); } break; @@ -760,7 +730,7 @@ public class ExperimentStatistics implements org.apache.thrift.TBase<ExperimentS if (value == null) { unsetFailedExperiments(); } else { - setFailedExperiments((List<ExperimentSummaryModel>)value); + setFailedExperiments((java.util.List<ExperimentSummaryModel>)value); } break; @@ -768,7 +738,7 @@ public class ExperimentStatistics implements org.apache.thrift.TBase<ExperimentS if (value == null) { unsetCancelledExperiments(); } else { - setCancelledExperiments((List<ExperimentSummaryModel>)value); + setCancelledExperiments((java.util.List<ExperimentSummaryModel>)value); } break; @@ -776,7 +746,7 @@ public class ExperimentStatistics implements org.apache.thrift.TBase<ExperimentS if (value == null) { unsetCreatedExperiments(); } else { - setCreatedExperiments((List<ExperimentSummaryModel>)value); + setCreatedExperiments((java.util.List<ExperimentSummaryModel>)value); } break; @@ -784,14 +754,14 @@ public class ExperimentStatistics implements org.apache.thrift.TBase<ExperimentS if (value == null) { unsetRunningExperiments(); } else { - setRunningExperiments((List<ExperimentSummaryModel>)value); + setRunningExperiments((java.util.List<ExperimentSummaryModel>)value); } break; } } - public Object getFieldValue(_Fields field) { + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case ALL_EXPERIMENT_COUNT: return getAllExperimentCount(); @@ -830,13 +800,13 @@ public class ExperimentStatistics implements org.apache.thrift.TBase<ExperimentS return getRunningExperiments(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -865,11 +835,11 @@ public class ExperimentStatistics implements org.apache.thrift.TBase<ExperimentS case RUNNING_EXPERIMENTS: return isSetRunningExperiments(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof ExperimentStatistics) @@ -880,6 +850,8 @@ public class ExperimentStatistics implements org.apache.thrift.TBase<ExperimentS public boolean equals(ExperimentStatistics that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_allExperimentCount = true; boolean that_present_allExperimentCount = true; @@ -994,69 +966,47 @@ public class ExperimentStatistics implements org.apache.thrift.TBase<ExperimentS @Override public int hashCode() { - List<Object> list = new ArrayList<Object>(); - - boolean present_allExperimentCount = true; - list.add(present_allExperimentCount); - if (present_allExperimentCount) - list.add(allExperimentCount); - - boolean present_completedExperimentCount = true; - list.add(present_completedExperimentCount); - if (present_completedExperimentCount) - list.add(completedExperimentCount); - - boolean present_cancelledExperimentCount = true && (isSetCancelledExperimentCount()); - list.add(present_cancelledExperimentCount); - if (present_cancelledExperimentCount) - list.add(cancelledExperimentCount); - - boolean present_failedExperimentCount = true; - list.add(present_failedExperimentCount); - if (present_failedExperimentCount) - list.add(failedExperimentCount); - - boolean present_createdExperimentCount = true; - list.add(present_createdExperimentCount); - if (present_createdExperimentCount) - list.add(createdExperimentCount); - - boolean present_runningExperimentCount = true; - list.add(present_runningExperimentCount); - if (present_runningExperimentCount) - list.add(runningExperimentCount); - - boolean present_allExperiments = true && (isSetAllExperiments()); - list.add(present_allExperiments); - if (present_allExperiments) - list.add(allExperiments); - - boolean present_completedExperiments = true && (isSetCompletedExperiments()); - list.add(present_completedExperiments); - if (present_completedExperiments) - list.add(completedExperiments); - - boolean present_failedExperiments = true && (isSetFailedExperiments()); - list.add(present_failedExperiments); - if (present_failedExperiments) - list.add(failedExperiments); - - boolean present_cancelledExperiments = true && (isSetCancelledExperiments()); - list.add(present_cancelledExperiments); - if (present_cancelledExperiments) - list.add(cancelledExperiments); - - boolean present_createdExperiments = true && (isSetCreatedExperiments()); - list.add(present_createdExperiments); - if (present_createdExperiments) - list.add(createdExperiments); - - boolean present_runningExperiments = true && (isSetRunningExperiments()); - list.add(present_runningExperiments); - if (present_runningExperiments) - list.add(runningExperiments); - - return list.hashCode(); + int hashCode = 1; + + hashCode = hashCode * 8191 + allExperimentCount; + + hashCode = hashCode * 8191 + completedExperimentCount; + + hashCode = hashCode * 8191 + ((isSetCancelledExperimentCount()) ? 131071 : 524287); + if (isSetCancelledExperimentCount()) + hashCode = hashCode * 8191 + cancelledExperimentCount; + + hashCode = hashCode * 8191 + failedExperimentCount; + + hashCode = hashCode * 8191 + createdExperimentCount; + + hashCode = hashCode * 8191 + runningExperimentCount; + + hashCode = hashCode * 8191 + ((isSetAllExperiments()) ? 131071 : 524287); + if (isSetAllExperiments()) + hashCode = hashCode * 8191 + allExperiments.hashCode(); + + hashCode = hashCode * 8191 + ((isSetCompletedExperiments()) ? 131071 : 524287); + if (isSetCompletedExperiments()) + hashCode = hashCode * 8191 + completedExperiments.hashCode(); + + hashCode = hashCode * 8191 + ((isSetFailedExperiments()) ? 131071 : 524287); + if (isSetFailedExperiments()) + hashCode = hashCode * 8191 + failedExperiments.hashCode(); + + hashCode = hashCode * 8191 + ((isSetCancelledExperiments()) ? 131071 : 524287); + if (isSetCancelledExperiments()) + hashCode = hashCode * 8191 + cancelledExperiments.hashCode(); + + hashCode = hashCode * 8191 + ((isSetCreatedExperiments()) ? 131071 : 524287); + if (isSetCreatedExperiments()) + hashCode = hashCode * 8191 + createdExperiments.hashCode(); + + hashCode = hashCode * 8191 + ((isSetRunningExperiments()) ? 131071 : 524287); + if (isSetRunningExperiments()) + hashCode = hashCode * 8191 + runningExperiments.hashCode(); + + return hashCode; } @Override @@ -1067,7 +1017,7 @@ public class ExperimentStatistics implements org.apache.thrift.TBase<ExperimentS int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetAllExperimentCount()).compareTo(other.isSetAllExperimentCount()); + lastComparison = java.lang.Boolean.valueOf(isSetAllExperimentCount()).compareTo(other.isSetAllExperimentCount()); if (lastComparison != 0) { return lastComparison; } @@ -1077,7 +1027,7 @@ public class ExperimentStatistics implements org.apache.thrift.TBase<ExperimentS return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCompletedExperimentCount()).compareTo(other.isSetCompletedExperimentCount()); + lastComparison = java.lang.Boolean.valueOf(isSetCompletedExperimentCount()).compareTo(other.isSetCompletedExperimentCount()); if (lastComparison != 0) { return lastComparison; } @@ -1087,7 +1037,7 @@ public class ExperimentStatistics implements org.apache.thrift.TBase<ExperimentS return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCancelledExperimentCount()).compareTo(other.isSetCancelledExperimentCount()); + lastComparison = java.lang.Boolean.valueOf(isSetCancelledExperimentCount()).compareTo(other.isSetCancelledExperimentCount()); if (lastComparison != 0) { return lastComparison; } @@ -1097,7 +1047,7 @@ public class ExperimentStatistics implements org.apache.thrift.TBase<ExperimentS return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFailedExperimentCount()).compareTo(other.isSetFailedExperimentCount()); + lastComparison = java.lang.Boolean.valueOf(isSetFailedExperimentCount()).compareTo(other.isSetFailedExperimentCount()); if (lastComparison != 0) { return lastComparison; } @@ -1107,7 +1057,7 @@ public class ExperimentStatistics implements org.apache.thrift.TBase<ExperimentS return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCreatedExperimentCount()).compareTo(other.isSetCreatedExperimentCount()); + lastComparison = java.lang.Boolean.valueOf(isSetCreatedExperimentCount()).compareTo(other.isSetCreatedExperimentCount()); if (lastComparison != 0) { return lastComparison; } @@ -1117,7 +1067,7 @@ public class ExperimentStatistics implements org.apache.thrift.TBase<ExperimentS return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRunningExperimentCount()).compareTo(other.isSetRunningExperimentCount()); + lastComparison = java.lang.Boolean.valueOf(isSetRunningExperimentCount()).compareTo(other.isSetRunningExperimentCount()); if (lastComparison != 0) { return lastComparison; } @@ -1127,7 +1077,7 @@ public class ExperimentStatistics implements org.apache.thrift.TBase<ExperimentS return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAllExperiments()).compareTo(other.isSetAllExperiments()); + lastComparison = java.lang.Boolean.valueOf(isSetAllExperiments()).compareTo(other.isSetAllExperiments()); if (lastComparison != 0) { return lastComparison; } @@ -1137,7 +1087,7 @@ public class ExperimentStatistics implements org.apache.thrift.TBase<ExperimentS return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCompletedExperiments()).compareTo(other.isSetCompletedExperiments()); + lastComparison = java.lang.Boolean.valueOf(isSetCompletedExperiments()).compareTo(other.isSetCompletedExperiments()); if (lastComparison != 0) { return lastComparison; } @@ -1147,7 +1097,7 @@ public class ExperimentStatistics implements org.apache.thrift.TBase<ExperimentS return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFailedExperiments()).compareTo(other.isSetFailedExperiments()); + lastComparison = java.lang.Boolean.valueOf(isSetFailedExperiments()).compareTo(other.isSetFailedExperiments()); if (lastComparison != 0) { return lastComparison; } @@ -1157,7 +1107,7 @@ public class ExperimentStatistics implements org.apache.thrift.TBase<ExperimentS return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCancelledExperiments()).compareTo(other.isSetCancelledExperiments()); + lastComparison = java.lang.Boolean.valueOf(isSetCancelledExperiments()).compareTo(other.isSetCancelledExperiments()); if (lastComparison != 0) { return lastComparison; } @@ -1167,7 +1117,7 @@ public class ExperimentStatistics implements org.apache.thrift.TBase<ExperimentS return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCreatedExperiments()).compareTo(other.isSetCreatedExperiments()); + lastComparison = java.lang.Boolean.valueOf(isSetCreatedExperiments()).compareTo(other.isSetCreatedExperiments()); if (lastComparison != 0) { return lastComparison; } @@ -1177,7 +1127,7 @@ public class ExperimentStatistics implements org.apache.thrift.TBase<ExperimentS return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRunningExperiments()).compareTo(other.isSetRunningExperiments()); + lastComparison = java.lang.Boolean.valueOf(isSetRunningExperiments()).compareTo(other.isSetRunningExperiments()); if (lastComparison != 0) { return lastComparison; } @@ -1195,16 +1145,16 @@ public class ExperimentStatistics implements org.apache.thrift.TBase<ExperimentS } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("ExperimentStatistics("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("ExperimentStatistics("); boolean first = true; sb.append("allExperimentCount:"); @@ -1331,7 +1281,7 @@ public class ExperimentStatistics implements org.apache.thrift.TBase<ExperimentS } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.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; @@ -1341,13 +1291,13 @@ public class ExperimentStatistics implements org.apache.thrift.TBase<ExperimentS } } - private static class ExperimentStatisticsStandardSchemeFactory implements SchemeFactory { + private static class ExperimentStatisticsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public ExperimentStatisticsStandardScheme getScheme() { return new ExperimentStatisticsStandardScheme(); } } - private static class ExperimentStatisticsStandardScheme extends StandardScheme<ExperimentStatistics> { + private static class ExperimentStatisticsStandardScheme extends org.apache.thrift.scheme.StandardScheme<ExperimentStatistics> { public void read(org.apache.thrift.protocol.TProtocol iprot, ExperimentStatistics struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -1411,7 +1361,7 @@ public class ExperimentStatistics implements org.apache.thrift.TBase<ExperimentS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list48 = iprot.readListBegin(); - struct.allExperiments = new ArrayList<ExperimentSummaryModel>(_list48.size); + struct.allExperiments = new java.util.ArrayList<ExperimentSummaryModel>(_list48.size); ExperimentSummaryModel _elem49; for (int _i50 = 0; _i50 < _list48.size; ++_i50) { @@ -1430,7 +1380,7 @@ public class ExperimentStatistics implements org.apache.thrift.TBase<ExperimentS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list51 = iprot.readListBegin(); - struct.completedExperiments = new ArrayList<ExperimentSummaryModel>(_list51.size); + struct.completedExperiments = new java.util.ArrayList<ExperimentSummaryModel>(_list51.size); ExperimentSummaryModel _elem52; for (int _i53 = 0; _i53 < _list51.size; ++_i53) { @@ -1449,7 +1399,7 @@ public class ExperimentStatistics implements org.apache.thrift.TBase<ExperimentS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list54 = iprot.readListBegin(); - struct.failedExperiments = new ArrayList<ExperimentSummaryModel>(_list54.size); + struct.failedExperiments = new java.util.ArrayList<ExperimentSummaryModel>(_list54.size); ExperimentSummaryModel _elem55; for (int _i56 = 0; _i56 < _list54.size; ++_i56) { @@ -1468,7 +1418,7 @@ public class ExperimentStatistics implements org.apache.thrift.TBase<ExperimentS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list57 = iprot.readListBegin(); - struct.cancelledExperiments = new ArrayList<ExperimentSummaryModel>(_list57.size); + struct.cancelledExperiments = new java.util.ArrayList<ExperimentSummaryModel>(_list57.size); ExperimentSummaryModel _elem58; for (int _i59 = 0; _i59 < _list57.size; ++_i59) { @@ -1487,7 +1437,7 @@ public class ExperimentStatistics implements org.apache.thrift.TBase<ExperimentS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list60 = iprot.readListBegin(); - struct.createdExperiments = new ArrayList<ExperimentSummaryModel>(_list60.size); + struct.createdExperiments = new java.util.ArrayList<ExperimentSummaryModel>(_list60.size); ExperimentSummaryModel _elem61; for (int _i62 = 0; _i62 < _list60.size; ++_i62) { @@ -1506,7 +1456,7 @@ public class ExperimentStatistics implements org.apache.thrift.TBase<ExperimentS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list63 = iprot.readListBegin(); - struct.runningExperiments = new ArrayList<ExperimentSummaryModel>(_list63.size); + struct.runningExperiments = new java.util.ArrayList<ExperimentSummaryModel>(_list63.size); ExperimentSummaryModel _elem64; for (int _i65 = 0; _i65 < _list63.size; ++_i65) { @@ -1642,17 +1592,17 @@ public class ExperimentStatistics implements org.apache.thrift.TBase<ExperimentS } - private static class ExperimentStatisticsTupleSchemeFactory implements SchemeFactory { + private static class ExperimentStatisticsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public ExperimentStatisticsTupleScheme getScheme() { return new ExperimentStatisticsTupleScheme(); } } - private static class ExperimentStatisticsTupleScheme extends TupleScheme<ExperimentStatistics> { + private static class ExperimentStatisticsTupleScheme extends org.apache.thrift.scheme.TupleScheme<ExperimentStatistics> { @Override public void write(org.apache.thrift.protocol.TProtocol prot, ExperimentStatistics struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; oprot.writeI32(struct.allExperimentCount); oprot.writeI32(struct.completedExperimentCount); oprot.writeI32(struct.failedExperimentCount); @@ -1665,7 +1615,7 @@ public class ExperimentStatistics implements org.apache.thrift.TBase<ExperimentS _iter72.write(oprot); } } - BitSet optionals = new BitSet(); + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetCancelledExperimentCount()) { optionals.set(0); } @@ -1737,7 +1687,7 @@ public class ExperimentStatistics implements org.apache.thrift.TBase<ExperimentS @Override public void read(org.apache.thrift.protocol.TProtocol prot, ExperimentStatistics struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.allExperimentCount = iprot.readI32(); struct.setAllExperimentCountIsSet(true); struct.completedExperimentCount = iprot.readI32(); @@ -1750,7 +1700,7 @@ public class ExperimentStatistics implements org.apache.thrift.TBase<ExperimentS struct.setRunningExperimentCountIsSet(true); { org.apache.thrift.protocol.TList _list78 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.allExperiments = new ArrayList<ExperimentSummaryModel>(_list78.size); + struct.allExperiments = new java.util.ArrayList<ExperimentSummaryModel>(_list78.size); ExperimentSummaryModel _elem79; for (int _i80 = 0; _i80 < _list78.size; ++_i80) { @@ -1760,7 +1710,7 @@ public class ExperimentStatistics implements org.apache.thrift.TBase<ExperimentS } } struct.setAllExperimentsIsSet(true); - BitSet incoming = iprot.readBitSet(6); + java.util.BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { struct.cancelledExperimentCount = iprot.readI32(); struct.setCancelledExperimentCountIsSet(true); @@ -1768,7 +1718,7 @@ public class ExperimentStatistics implements org.apache.thrift.TBase<ExperimentS if (incoming.get(1)) { { org.apache.thrift.protocol.TList _list81 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.completedExperiments = new ArrayList<ExperimentSummaryModel>(_list81.size); + struct.completedExperiments = new java.util.ArrayList<ExperimentSummaryModel>(_list81.size); ExperimentSummaryModel _elem82; for (int _i83 = 0; _i83 < _list81.size; ++_i83) { @@ -1782,7 +1732,7 @@ public class ExperimentStatistics implements org.apache.thrift.TBase<ExperimentS if (incoming.get(2)) { { org.apache.thrift.protocol.TList _list84 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.failedExperiments = new ArrayList<ExperimentSummaryModel>(_list84.size); + struct.failedExperiments = new java.util.ArrayList<ExperimentSummaryModel>(_list84.size); ExperimentSummaryModel _elem85; for (int _i86 = 0; _i86 < _list84.size; ++_i86) { @@ -1796,7 +1746,7 @@ public class ExperimentStatistics implements org.apache.thrift.TBase<ExperimentS if (incoming.get(3)) { { org.apache.thrift.protocol.TList _list87 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.cancelledExperiments = new ArrayList<ExperimentSummaryModel>(_list87.size); + struct.cancelledExperiments = new java.util.ArrayList<ExperimentSummaryModel>(_list87.size); ExperimentSummaryModel _elem88; for (int _i89 = 0; _i89 < _list87.size; ++_i89) { @@ -1810,7 +1760,7 @@ public class ExperimentStatistics implements org.apache.thrift.TBase<ExperimentS if (incoming.get(4)) { { org.apache.thrift.protocol.TList _list90 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.createdExperiments = new ArrayList<ExperimentSummaryModel>(_list90.size); + struct.createdExperiments = new java.util.ArrayList<ExperimentSummaryModel>(_list90.size); ExperimentSummaryModel _elem91; for (int _i92 = 0; _i92 < _list90.size; ++_i92) { @@ -1824,7 +1774,7 @@ public class ExperimentStatistics implements org.apache.thrift.TBase<ExperimentS if (incoming.get(5)) { { org.apache.thrift.protocol.TList _list93 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.runningExperiments = new ArrayList<ExperimentSummaryModel>(_list93.size); + struct.runningExperiments = new java.util.ArrayList<ExperimentSummaryModel>(_list93.size); ExperimentSummaryModel _elem94; for (int _i95 = 0; _i95 < _list93.size; ++_i95) { @@ -1838,5 +1788,8 @@ public class ExperimentStatistics implements org.apache.thrift.TBase<ExperimentS } } + private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } }
http://git-wip-us.apache.org/repos/asf/airavata/blob/39fba1f5/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/experiment/ExperimentSummaryModel.java ---------------------------------------------------------------------- diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/experiment/ExperimentSummaryModel.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/experiment/ExperimentSummaryModel.java index 62a568b..f3ce843 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/experiment/ExperimentSummaryModel.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/experiment/ExperimentSummaryModel.java @@ -16,42 +16,15 @@ */ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.10.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.airavata.model.experiment; -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)") +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) [email protected](value = "Autogenerated by Thrift Compiler (0.10.0)") public class ExperimentSummaryModel implements org.apache.thrift.TBase<ExperimentSummaryModel, ExperimentSummaryModel._Fields>, java.io.Serializable, Cloneable, Comparable<ExperimentSummaryModel> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ExperimentSummaryModel"); @@ -67,22 +40,19 @@ public class ExperimentSummaryModel implements org.apache.thrift.TBase<Experimen private static final org.apache.thrift.protocol.TField EXPERIMENT_STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("experimentStatus", org.apache.thrift.protocol.TType.STRING, (short)10); private static final org.apache.thrift.protocol.TField STATUS_UPDATE_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("statusUpdateTime", org.apache.thrift.protocol.TType.I64, (short)12); - private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new ExperimentSummaryModelStandardSchemeFactory()); - schemes.put(TupleScheme.class, new ExperimentSummaryModelTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new ExperimentSummaryModelStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new ExperimentSummaryModelTupleSchemeFactory(); - private String experimentId; // required - private String projectId; // required - private String gatewayId; // required + private java.lang.String experimentId; // required + private java.lang.String projectId; // required + private java.lang.String gatewayId; // required private long creationTime; // optional - private String userName; // required - private String name; // required - private String description; // optional - private String executionId; // optional - private String resourceHostId; // optional - private String experimentStatus; // optional + private java.lang.String userName; // required + private java.lang.String name; // required + private java.lang.String description; // optional + private java.lang.String executionId; // optional + private java.lang.String resourceHostId; // optional + private java.lang.String experimentStatus; // optional private long statusUpdateTime; // optional /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ @@ -99,10 +69,10 @@ public class ExperimentSummaryModel implements org.apache.thrift.TBase<Experimen EXPERIMENT_STATUS((short)10, "experimentStatus"), STATUS_UPDATE_TIME((short)12, "statusUpdateTime"); - private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); + private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -145,21 +115,21 @@ public class ExperimentSummaryModel implements org.apache.thrift.TBase<Experimen */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -168,7 +138,7 @@ public class ExperimentSummaryModel implements org.apache.thrift.TBase<Experimen return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -178,9 +148,9 @@ public class ExperimentSummaryModel implements org.apache.thrift.TBase<Experimen private static final int __STATUSUPDATETIME_ISSET_ID = 1; private byte __isset_bitfield = 0; private static final _Fields optionals[] = {_Fields.CREATION_TIME,_Fields.DESCRIPTION,_Fields.EXECUTION_ID,_Fields.RESOURCE_HOST_ID,_Fields.EXPERIMENT_STATUS,_Fields.STATUS_UPDATE_TIME}; - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.EXPERIMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("experimentId", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.PROJECT_ID, new org.apache.thrift.meta_data.FieldMetaData("projectId", org.apache.thrift.TFieldRequirementType.REQUIRED, @@ -203,7 +173,7 @@ public class ExperimentSummaryModel implements org.apache.thrift.TBase<Experimen new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.STATUS_UPDATE_TIME, new org.apache.thrift.meta_data.FieldMetaData("statusUpdateTime", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(ExperimentSummaryModel.class, metaDataMap); } @@ -211,11 +181,11 @@ public class ExperimentSummaryModel implements org.apache.thrift.TBase<Experimen } public ExperimentSummaryModel( - String experimentId, - String projectId, - String gatewayId, - String userName, - String name) + java.lang.String experimentId, + java.lang.String projectId, + java.lang.String gatewayId, + java.lang.String userName, + java.lang.String name) { this(); this.experimentId = experimentId; @@ -282,11 +252,11 @@ public class ExperimentSummaryModel implements org.apache.thrift.TBase<Experimen this.statusUpdateTime = 0; } - public String getExperimentId() { + public java.lang.String getExperimentId() { return this.experimentId; } - public void setExperimentId(String experimentId) { + public void setExperimentId(java.lang.String experimentId) { this.experimentId = experimentId; } @@ -305,11 +275,11 @@ public class ExperimentSummaryModel implements org.apache.thrift.TBase<Experimen } } - public String getProjectId() { + public java.lang.String getProjectId() { return this.projectId; } - public void setProjectId(String projectId) { + public void setProjectId(java.lang.String projectId) { this.projectId = projectId; } @@ -328,11 +298,11 @@ public class ExperimentSummaryModel implements org.apache.thrift.TBase<Experimen } } - public String getGatewayId() { + public java.lang.String getGatewayId() { return this.gatewayId; } - public void setGatewayId(String gatewayId) { + public void setGatewayId(java.lang.String gatewayId) { this.gatewayId = gatewayId; } @@ -361,23 +331,23 @@ public class ExperimentSummaryModel implements org.apache.thrift.TBase<Experimen } public void unsetCreationTime() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __CREATIONTIME_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __CREATIONTIME_ISSET_ID); } /** Returns true if field creationTime is set (has been assigned a value) and false otherwise */ public boolean isSetCreationTime() { - return EncodingUtils.testBit(__isset_bitfield, __CREATIONTIME_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __CREATIONTIME_ISSET_ID); } public void setCreationTimeIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __CREATIONTIME_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __CREATIONTIME_ISSET_ID, value); } - public String getUserName() { + public java.lang.String getUserName() { return this.userName; } - public void setUserName(String userName) { + public void setUserName(java.lang.String userName) { this.userName = userName; } @@ -396,11 +366,11 @@ public class ExperimentSummaryModel implements org.apache.thrift.TBase<Experimen } } - public String getName() { + public java.lang.String getName() { return this.name; } - public void setName(String name) { + public void setName(java.lang.String name) { this.name = name; } @@ -419,11 +389,11 @@ public class ExperimentSummaryModel implements org.apache.thrift.TBase<Experimen } } - public String getDescription() { + public java.lang.String getDescription() { return this.description; } - public void setDescription(String description) { + public void setDescription(java.lang.String description) { this.description = description; } @@ -442,11 +412,11 @@ public class ExperimentSummaryModel implements org.apache.thrift.TBase<Experimen } } - public String getExecutionId() { + public java.lang.String getExecutionId() { return this.executionId; } - public void setExecutionId(String executionId) { + public void setExecutionId(java.lang.String executionId) { this.executionId = executionId; } @@ -465,11 +435,11 @@ public class ExperimentSummaryModel implements org.apache.thrift.TBase<Experimen } } - public String getResourceHostId() { + public java.lang.String getResourceHostId() { return this.resourceHostId; } - public void setResourceHostId(String resourceHostId) { + public void setResourceHostId(java.lang.String resourceHostId) { this.resourceHostId = resourceHostId; } @@ -488,11 +458,11 @@ public class ExperimentSummaryModel implements org.apache.thrift.TBase<Experimen } } - public String getExperimentStatus() { + public java.lang.String getExperimentStatus() { return this.experimentStatus; } - public void setExperimentStatus(String experimentStatus) { + public void setExperimentStatus(java.lang.String experimentStatus) { this.experimentStatus = experimentStatus; } @@ -521,25 +491,25 @@ public class ExperimentSummaryModel implements org.apache.thrift.TBase<Experimen } public void unsetStatusUpdateTime() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __STATUSUPDATETIME_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __STATUSUPDATETIME_ISSET_ID); } /** Returns true if field statusUpdateTime is set (has been assigned a value) and false otherwise */ public boolean isSetStatusUpdateTime() { - return EncodingUtils.testBit(__isset_bitfield, __STATUSUPDATETIME_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __STATUSUPDATETIME_ISSET_ID); } public void setStatusUpdateTimeIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __STATUSUPDATETIME_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __STATUSUPDATETIME_ISSET_ID, value); } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, java.lang.Object value) { switch (field) { case EXPERIMENT_ID: if (value == null) { unsetExperimentId(); } else { - setExperimentId((String)value); + setExperimentId((java.lang.String)value); } break; @@ -547,7 +517,7 @@ public class ExperimentSummaryModel implements org.apache.thrift.TBase<Experimen if (value == null) { unsetProjectId(); } else { - setProjectId((String)value); + setProjectId((java.lang.String)value); } break; @@ -555,7 +525,7 @@ public class ExperimentSummaryModel implements org.apache.thrift.TBase<Experimen if (value == null) { unsetGatewayId(); } else { - setGatewayId((String)value); + setGatewayId((java.lang.String)value); } break; @@ -563,7 +533,7 @@ public class ExperimentSummaryModel implements org.apache.thrift.TBase<Experimen if (value == null) { unsetCreationTime(); } else { - setCreationTime((Long)value); + setCreationTime((java.lang.Long)value); } break; @@ -571,7 +541,7 @@ public class ExperimentSummaryModel implements org.apache.thrift.TBase<Experimen if (value == null) { unsetUserName(); } else { - setUserName((String)value); + setUserName((java.lang.String)value); } break; @@ -579,7 +549,7 @@ public class ExperimentSummaryModel implements org.apache.thrift.TBase<Experimen if (value == null) { unsetName(); } else { - setName((String)value); + setName((java.lang.String)value); } break; @@ -587,7 +557,7 @@ public class ExperimentSummaryModel implements org.apache.thrift.TBase<Experimen if (value == null) { unsetDescription(); } else { - setDescription((String)value); + setDescription((java.lang.String)value); } break; @@ -595,7 +565,7 @@ public class ExperimentSummaryModel implements org.apache.thrift.TBase<Experimen if (value == null) { unsetExecutionId(); } else { - setExecutionId((String)value); + setExecutionId((java.lang.String)value); } break; @@ -603,7 +573,7 @@ public class ExperimentSummaryModel implements org.apache.thrift.TBase<Experimen if (value == null) { unsetResourceHostId(); } else { - setResourceHostId((String)value); + setResourceHostId((java.lang.String)value); } break; @@ -611,7 +581,7 @@ public class ExperimentSummaryModel implements org.apache.thrift.TBase<Experimen if (value == null) { unsetExperimentStatus(); } else { - setExperimentStatus((String)value); + setExperimentStatus((java.lang.String)value); } break; @@ -619,14 +589,14 @@ public class ExperimentSummaryModel implements org.apache.thrift.TBase<Experimen if (value == null) { unsetStatusUpdateTime(); } else { - setStatusUpdateTime((Long)value); + setStatusUpdateTime((java.lang.Long)value); } break; } } - public Object getFieldValue(_Fields field) { + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case EXPERIMENT_ID: return getExperimentId(); @@ -662,13 +632,13 @@ public class ExperimentSummaryModel implements org.apache.thrift.TBase<Experimen return getStatusUpdateTime(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -695,11 +665,11 @@ public class ExperimentSummaryModel implements org.apache.thrift.TBase<Experimen case STATUS_UPDATE_TIME: return isSetStatusUpdateTime(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { + public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof ExperimentSummaryModel) @@ -710,6 +680,8 @@ public class ExperimentSummaryModel implements org.apache.thrift.TBase<Experimen public boolean equals(ExperimentSummaryModel that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_experimentId = true && this.isSetExperimentId(); boolean that_present_experimentId = true && that.isSetExperimentId(); @@ -815,64 +787,53 @@ public class ExperimentSummaryModel implements org.apache.thrift.TBase<Experimen @Override public int hashCode() { - List<Object> list = new ArrayList<Object>(); - - boolean present_experimentId = true && (isSetExperimentId()); - list.add(present_experimentId); - if (present_experimentId) - list.add(experimentId); - - boolean present_projectId = true && (isSetProjectId()); - list.add(present_projectId); - if (present_projectId) - list.add(projectId); - - boolean present_gatewayId = true && (isSetGatewayId()); - list.add(present_gatewayId); - if (present_gatewayId) - list.add(gatewayId); - - boolean present_creationTime = true && (isSetCreationTime()); - list.add(present_creationTime); - if (present_creationTime) - list.add(creationTime); - - boolean present_userName = true && (isSetUserName()); - list.add(present_userName); - if (present_userName) - list.add(userName); - - boolean present_name = true && (isSetName()); - list.add(present_name); - if (present_name) - list.add(name); - - boolean present_description = true && (isSetDescription()); - list.add(present_description); - if (present_description) - list.add(description); - - boolean present_executionId = true && (isSetExecutionId()); - list.add(present_executionId); - if (present_executionId) - list.add(executionId); - - boolean present_resourceHostId = true && (isSetResourceHostId()); - list.add(present_resourceHostId); - if (present_resourceHostId) - list.add(resourceHostId); - - boolean present_experimentStatus = true && (isSetExperimentStatus()); - list.add(present_experimentStatus); - if (present_experimentStatus) - list.add(experimentStatus); - - boolean present_statusUpdateTime = true && (isSetStatusUpdateTime()); - list.add(present_statusUpdateTime); - if (present_statusUpdateTime) - list.add(statusUpdateTime); - - return list.hashCode(); + int hashCode = 1; + + hashCode = hashCode * 8191 + ((isSetExperimentId()) ? 131071 : 524287); + if (isSetExperimentId()) + hashCode = hashCode * 8191 + experimentId.hashCode(); + + hashCode = hashCode * 8191 + ((isSetProjectId()) ? 131071 : 524287); + if (isSetProjectId()) + hashCode = hashCode * 8191 + projectId.hashCode(); + + hashCode = hashCode * 8191 + ((isSetGatewayId()) ? 131071 : 524287); + if (isSetGatewayId()) + hashCode = hashCode * 8191 + gatewayId.hashCode(); + + hashCode = hashCode * 8191 + ((isSetCreationTime()) ? 131071 : 524287); + if (isSetCreationTime()) + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(creationTime); + + hashCode = hashCode * 8191 + ((isSetUserName()) ? 131071 : 524287); + if (isSetUserName()) + hashCode = hashCode * 8191 + userName.hashCode(); + + hashCode = hashCode * 8191 + ((isSetName()) ? 131071 : 524287); + if (isSetName()) + hashCode = hashCode * 8191 + name.hashCode(); + + hashCode = hashCode * 8191 + ((isSetDescription()) ? 131071 : 524287); + if (isSetDescription()) + hashCode = hashCode * 8191 + description.hashCode(); + + hashCode = hashCode * 8191 + ((isSetExecutionId()) ? 131071 : 524287); + if (isSetExecutionId()) + hashCode = hashCode * 8191 + executionId.hashCode(); + + hashCode = hashCode * 8191 + ((isSetResourceHostId()) ? 131071 : 524287); + if (isSetResourceHostId()) + hashCode = hashCode * 8191 + resourceHostId.hashCode(); + + hashCode = hashCode * 8191 + ((isSetExperimentStatus()) ? 131071 : 524287); + if (isSetExperimentStatus()) + hashCode = hashCode * 8191 + experimentStatus.hashCode(); + + hashCode = hashCode * 8191 + ((isSetStatusUpdateTime()) ? 131071 : 524287); + if (isSetStatusUpdateTime()) + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(statusUpdateTime); + + return hashCode; } @Override @@ -883,7 +844,7 @@ public class ExperimentSummaryModel implements org.apache.thrift.TBase<Experimen int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetExperimentId()).compareTo(other.isSetExperimentId()); + lastComparison = java.lang.Boolean.valueOf(isSetExperimentId()).compareTo(other.isSetExperimentId()); if (lastComparison != 0) { return lastComparison; } @@ -893,7 +854,7 @@ public class ExperimentSummaryModel implements org.apache.thrift.TBase<Experimen return lastComparison; } } - lastComparison = Boolean.valueOf(isSetProjectId()).compareTo(other.isSetProjectId()); + lastComparison = java.lang.Boolean.valueOf(isSetProjectId()).compareTo(other.isSetProjectId()); if (lastComparison != 0) { return lastComparison; } @@ -903,7 +864,7 @@ public class ExperimentSummaryModel implements org.apache.thrift.TBase<Experimen return lastComparison; } } - lastComparison = Boolean.valueOf(isSetGatewayId()).compareTo(other.isSetGatewayId()); + lastComparison = java.lang.Boolean.valueOf(isSetGatewayId()).compareTo(other.isSetGatewayId()); if (lastComparison != 0) { return lastComparison; } @@ -913,7 +874,7 @@ public class ExperimentSummaryModel implements org.apache.thrift.TBase<Experimen return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCreationTime()).compareTo(other.isSetCreationTime()); + lastComparison = java.lang.Boolean.valueOf(isSetCreationTime()).compareTo(other.isSetCreationTime()); if (lastComparison != 0) { return lastComparison; } @@ -923,7 +884,7 @@ public class ExperimentSummaryModel implements org.apache.thrift.TBase<Experimen return lastComparison; } } - lastComparison = Boolean.valueOf(isSetUserName()).compareTo(other.isSetUserName()); + lastComparison = java.lang.Boolean.valueOf(isSetUserName()).compareTo(other.isSetUserName()); if (lastComparison != 0) { return lastComparison; } @@ -933,7 +894,7 @@ public class ExperimentSummaryModel implements org.apache.thrift.TBase<Experimen return lastComparison; } } - lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName()); + lastComparison = java.lang.Boolean.valueOf(isSetName()).compareTo(other.isSetName()); if (lastComparison != 0) { return lastComparison; } @@ -943,7 +904,7 @@ public class ExperimentSummaryModel implements org.apache.thrift.TBase<Experimen return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDescription()).compareTo(other.isSetDescription()); + lastComparison = java.lang.Boolean.valueOf(isSetDescription()).compareTo(other.isSetDescription()); if (lastComparison != 0) { return lastComparison; } @@ -953,7 +914,7 @@ public class ExperimentSummaryModel implements org.apache.thrift.TBase<Experimen return lastComparison; } } - lastComparison = Boolean.valueOf(isSetExecutionId()).compareTo(other.isSetExecutionId()); + lastComparison = java.lang.Boolean.valueOf(isSetExecutionId()).compareTo(other.isSetExecutionId()); if (lastComparison != 0) { return lastComparison; } @@ -963,7 +924,7 @@ public class ExperimentSummaryModel implements org.apache.thrift.TBase<Experimen return lastComparison; } } - lastComparison = Boolean.valueOf(isSetResourceHostId()).compareTo(other.isSetResourceHostId()); + lastComparison = java.lang.Boolean.valueOf(isSetResourceHostId()).compareTo(other.isSetResourceHostId()); if (lastComparison != 0) { return lastComparison; } @@ -973,7 +934,7 @@ public class ExperimentSummaryModel implements org.apache.thrift.TBase<Experimen return lastComparison; } } - lastComparison = Boolean.valueOf(isSetExperimentStatus()).compareTo(other.isSetExperimentStatus()); + lastComparison = java.lang.Boolean.valueOf(isSetExperimentStatus()).compareTo(other.isSetExperimentStatus()); if (lastComparison != 0) { return lastComparison; } @@ -983,7 +944,7 @@ public class ExperimentSummaryModel implements org.apache.thrift.TBase<Experimen return lastComparison; } } - lastComparison = Boolean.valueOf(isSetStatusUpdateTime()).compareTo(other.isSetStatusUpdateTime()); + lastComparison = java.lang.Boolean.valueOf(isSetStatusUpdateTime()).compareTo(other.isSetStatusUpdateTime()); if (lastComparison != 0) { return lastComparison; } @@ -1001,16 +962,16 @@ public class ExperimentSummaryModel implements org.apache.thrift.TBase<Experimen } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("ExperimentSummaryModel("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("ExperimentSummaryModel("); boolean first = true; sb.append("experimentId:"); @@ -1141,7 +1102,7 @@ public class ExperimentSummaryModel implements org.apache.thrift.TBase<Experimen } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.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; @@ -1151,13 +1112,13 @@ public class ExperimentSummaryModel implements org.apache.thrift.TBase<Experimen } } - private static class ExperimentSummaryModelStandardSchemeFactory implements SchemeFactory { + private static class ExperimentSummaryModelStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public ExperimentSummaryModelStandardScheme getScheme() { return new ExperimentSummaryModelStandardScheme(); } } - private static class ExperimentSummaryModelStandardScheme extends StandardScheme<ExperimentSummaryModel> { + private static class ExperimentSummaryModelStandardScheme extends org.apache.thrift.scheme.StandardScheme<ExperimentSummaryModel> { public void read(org.apache.thrift.protocol.TProtocol iprot, ExperimentSummaryModel struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -1339,23 +1300,23 @@ public class ExperimentSummaryModel implements org.apache.thrift.TBase<Experimen } - private static class ExperimentSummaryModelTupleSchemeFactory implements SchemeFactory { + private static class ExperimentSummaryModelTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public ExperimentSummaryModelTupleScheme getScheme() { return new ExperimentSummaryModelTupleScheme(); } } - private static class ExperimentSummaryModelTupleScheme extends TupleScheme<ExperimentSummaryModel> { + private static class ExperimentSummaryModelTupleScheme extends org.apache.thrift.scheme.TupleScheme<ExperimentSummaryModel> { @Override public void write(org.apache.thrift.protocol.TProtocol prot, ExperimentSummaryModel struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; oprot.writeString(struct.experimentId); oprot.writeString(struct.projectId); oprot.writeString(struct.gatewayId); oprot.writeString(struct.userName); oprot.writeString(struct.name); - BitSet optionals = new BitSet(); + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetCreationTime()) { optionals.set(0); } @@ -1397,7 +1358,7 @@ public class ExperimentSummaryModel implements org.apache.thrift.TBase<Experimen @Override public void read(org.apache.thrift.protocol.TProtocol prot, ExperimentSummaryModel struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.experimentId = iprot.readString(); struct.setExperimentIdIsSet(true); struct.projectId = iprot.readString(); @@ -1408,7 +1369,7 @@ public class ExperimentSummaryModel implements org.apache.thrift.TBase<Experimen struct.setUserNameIsSet(true); struct.name = iprot.readString(); struct.setNameIsSet(true); - BitSet incoming = iprot.readBitSet(6); + java.util.BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { struct.creationTime = iprot.readI64(); struct.setCreationTimeIsSet(true); @@ -1436,5 +1397,8 @@ public class ExperimentSummaryModel implements org.apache.thrift.TBase<Experimen } } + private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } http://git-wip-us.apache.org/repos/asf/airavata/blob/39fba1f5/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/experiment/ExperimentType.java ---------------------------------------------------------------------- diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/experiment/ExperimentType.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/experiment/ExperimentType.java index 3e0ae54..4c10281 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/experiment/ExperimentType.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/experiment/ExperimentType.java @@ -16,7 +16,7 @@ */ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.10.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated http://git-wip-us.apache.org/repos/asf/airavata/blob/39fba1f5/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/experiment/ProjectSearchFields.java ---------------------------------------------------------------------- diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/experiment/ProjectSearchFields.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/experiment/ProjectSearchFields.java index d805c78..8110ea9 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/experiment/ProjectSearchFields.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/experiment/ProjectSearchFields.java @@ -16,7 +16,7 @@ */ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.10.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated
