From d451eba3123206a2df8fb3cdc5e6236fa1c6f707 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Wed, 6 Sep 2017 13:47:36 +0200 Subject: update api --- .../org/openslx/bwlp/thrift/iface/LectureRead.java | 303 +++++++-- .../openslx/bwlp/thrift/iface/LectureWrite.java | 273 ++++++-- .../openslx/bwlp/thrift/iface/MasterServer.java | 350 +++++----- .../org/openslx/bwlp/thrift/iface/NetShare.java | 734 +++++++++++++++++++++ .../openslx/bwlp/thrift/iface/NetShareAuth.java | 48 ++ .../openslx/bwlp/thrift/iface/SatelliteServer.java | 542 +++++++-------- .../bwlp/thrift/iface/TransferInformation.java | 34 +- 7 files changed, 1694 insertions(+), 590 deletions(-) create mode 100644 src/main/java/org/openslx/bwlp/thrift/iface/NetShare.java create mode 100644 src/main/java/org/openslx/bwlp/thrift/iface/NetShareAuth.java diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/LectureRead.java b/src/main/java/org/openslx/bwlp/thrift/iface/LectureRead.java index 3c5d305..9ba4c28 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/LectureRead.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/LectureRead.java @@ -34,7 +34,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-03-02") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2017-09-06") public class LectureRead implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("LectureRead"); @@ -65,6 +65,7 @@ public class LectureRead implements org.apache.thrift.TBase, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -99,6 +100,7 @@ public class LectureRead implements org.apache.thrift.TBase networkShares; // 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 { @@ -128,7 +130,8 @@ public class LectureRead implements org.apache.thrift.TBase byName = new HashMap(); @@ -197,6 +200,8 @@ public class LectureRead implements org.apache.thrift.TBase metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -313,6 +318,9 @@ public class LectureRead implements org.apache.thrift.TBase __this__networkShares = new ArrayList(other.networkShares.size()); + for (NetShare other_element : other.networkShares) { + __this__networkShares.add(new NetShare(other_element)); + } + this.networkShares = __this__networkShares; + } } public LectureRead deepCopy() { @@ -505,6 +520,7 @@ public class LectureRead implements org.apache.thrift.TBase getNetworkSharesIterator() { + return (this.networkShares == null) ? null : this.networkShares.iterator(); + } + + public void addToNetworkShares(NetShare elem) { + if (this.networkShares == null) { + this.networkShares = new ArrayList(); + } + this.networkShares.add(elem); + } + + public List getNetworkShares() { + return this.networkShares; + } + + public LectureRead setNetworkShares(List networkShares) { + this.networkShares = networkShares; + return this; + } + + public void unsetNetworkShares() { + this.networkShares = null; + } + + /** Returns true if field networkShares is set (has been assigned a value) and false otherwise */ + public boolean isSetNetworkShares() { + return this.networkShares != null; + } + + public void setNetworkSharesIsSet(boolean value) { + if (!value) { + this.networkShares = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case LECTURE_ID: @@ -1420,6 +1475,14 @@ public class LectureRead implements org.apache.thrift.TBase)value); + } + break; + } } @@ -1506,6 +1569,9 @@ public class LectureRead implements org.apache.thrift.TBase(_list130.size); - String _elem131; - for (int _i132 = 0; _i132 < _list130.size; ++_i132) + org.apache.thrift.protocol.TList _list138 = iprot.readListBegin(); + struct.nics = new ArrayList(_list138.size); + String _elem139; + for (int _i140 = 0; _i140 < _list138.size; ++_i140) { - _elem131 = iprot.readString(); - struct.nics.add(_elem131); + _elem139 = iprot.readString(); + struct.nics.add(_elem139); } iprot.readListEnd(); } @@ -2639,13 +2741,13 @@ public class LectureRead implements org.apache.thrift.TBase(_list133.size); - String _elem134; - for (int _i135 = 0; _i135 < _list133.size; ++_i135) + org.apache.thrift.protocol.TList _list141 = iprot.readListBegin(); + struct.allowedUsers = new ArrayList(_list141.size); + String _elem142; + for (int _i143 = 0; _i143 < _list141.size; ++_i143) { - _elem134 = iprot.readString(); - struct.allowedUsers.add(_elem134); + _elem142 = iprot.readString(); + struct.allowedUsers.add(_elem142); } iprot.readListEnd(); } @@ -2657,14 +2759,14 @@ public class LectureRead implements org.apache.thrift.TBase(_list136.size); - NetRule _elem137; - for (int _i138 = 0; _i138 < _list136.size; ++_i138) + org.apache.thrift.protocol.TList _list144 = iprot.readListBegin(); + struct.networkExceptions = new ArrayList(_list144.size); + NetRule _elem145; + for (int _i146 = 0; _i146 < _list144.size; ++_i146) { - _elem137 = new NetRule(); - _elem137.read(iprot); - struct.networkExceptions.add(_elem137); + _elem145 = new NetRule(); + _elem145.read(iprot); + struct.networkExceptions.add(_elem145); } iprot.readListEnd(); } @@ -2710,13 +2812,13 @@ public class LectureRead implements org.apache.thrift.TBase(_list139.size); - int _elem140; - for (int _i141 = 0; _i141 < _list139.size; ++_i141) + org.apache.thrift.protocol.TList _list147 = iprot.readListBegin(); + struct.locationIds = new ArrayList(_list147.size); + int _elem148; + for (int _i149 = 0; _i149 < _list147.size; ++_i149) { - _elem140 = iprot.readI32(); - struct.locationIds.add(_elem140); + _elem148 = iprot.readI32(); + struct.locationIds.add(_elem148); } iprot.readListEnd(); } @@ -2749,6 +2851,25 @@ public class LectureRead implements org.apache.thrift.TBase(_list150.size); + NetShare _elem151; + for (int _i152 = 0; _i152 < _list150.size; ++_i152) + { + _elem151 = new NetShare(); + _elem151.read(iprot); + struct.networkShares.add(_elem151); + } + iprot.readListEnd(); + } + struct.setNetworkSharesIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -2816,9 +2937,9 @@ public class LectureRead implements org.apache.thrift.TBase(_list150.size); - String _elem151; - for (int _i152 = 0; _i152 < _list150.size; ++_i152) + org.apache.thrift.protocol.TList _list163 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.nics = new ArrayList(_list163.size); + String _elem164; + for (int _i165 = 0; _i165 < _list163.size; ++_i165) { - _elem151 = iprot.readString(); - struct.nics.add(_elem151); + _elem164 = iprot.readString(); + struct.nics.add(_elem164); } } struct.setNicsIsSet(true); } if (incoming.get(17)) { { - org.apache.thrift.protocol.TList _list153 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.allowedUsers = new ArrayList(_list153.size); - String _elem154; - for (int _i155 = 0; _i155 < _list153.size; ++_i155) + org.apache.thrift.protocol.TList _list166 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.allowedUsers = new ArrayList(_list166.size); + String _elem167; + for (int _i168 = 0; _i168 < _list166.size; ++_i168) { - _elem154 = iprot.readString(); - struct.allowedUsers.add(_elem154); + _elem167 = iprot.readString(); + struct.allowedUsers.add(_elem167); } } struct.setAllowedUsersIsSet(true); } if (incoming.get(18)) { { - org.apache.thrift.protocol.TList _list156 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.networkExceptions = new ArrayList(_list156.size); - NetRule _elem157; - for (int _i158 = 0; _i158 < _list156.size; ++_i158) + org.apache.thrift.protocol.TList _list169 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.networkExceptions = new ArrayList(_list169.size); + NetRule _elem170; + for (int _i171 = 0; _i171 < _list169.size; ++_i171) { - _elem157 = new NetRule(); - _elem157.read(iprot); - struct.networkExceptions.add(_elem157); + _elem170 = new NetRule(); + _elem170.read(iprot); + struct.networkExceptions.add(_elem170); } } struct.setNetworkExceptionsIsSet(true); @@ -3238,13 +3385,13 @@ public class LectureRead implements org.apache.thrift.TBase(_list159.size); - int _elem160; - for (int _i161 = 0; _i161 < _list159.size; ++_i161) + org.apache.thrift.protocol.TList _list172 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32()); + struct.locationIds = new ArrayList(_list172.size); + int _elem173; + for (int _i174 = 0; _i174 < _list172.size; ++_i174) { - _elem160 = iprot.readI32(); - struct.locationIds.add(_elem160); + _elem173 = iprot.readI32(); + struct.locationIds.add(_elem173); } } struct.setLocationIdsIsSet(true); @@ -3261,6 +3408,20 @@ public class LectureRead implements org.apache.thrift.TBase(_list175.size); + NetShare _elem176; + for (int _i177 = 0; _i177 < _list175.size; ++_i177) + { + _elem176 = new NetShare(); + _elem176.read(iprot); + struct.networkShares.add(_elem176); + } + } + struct.setNetworkSharesIsSet(true); + } } } diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/LectureWrite.java b/src/main/java/org/openslx/bwlp/thrift/iface/LectureWrite.java index 8635d41..ce42bd3 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/LectureWrite.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/LectureWrite.java @@ -34,7 +34,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-03-02") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2017-09-06") public class LectureWrite implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("LectureWrite"); @@ -57,6 +57,7 @@ public class LectureWrite implements org.apache.thrift.TBase, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -83,6 +84,7 @@ public class LectureWrite implements org.apache.thrift.TBase networkShares; // 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 { @@ -104,7 +106,8 @@ public class LectureWrite implements org.apache.thrift.TBase byName = new HashMap(); @@ -157,6 +160,8 @@ public class LectureWrite implements org.apache.thrift.TBase metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -254,6 +259,9 @@ public class LectureWrite implements org.apache.thrift.TBase __this__networkShares = new ArrayList(other.networkShares.size()); + for (NetShare other_element : other.networkShares) { + __this__networkShares.add(new NetShare(other_element)); + } + this.networkShares = __this__networkShares; + } } public LectureWrite deepCopy() { @@ -395,6 +410,7 @@ public class LectureWrite implements org.apache.thrift.TBase getNetworkSharesIterator() { + return (this.networkShares == null) ? null : this.networkShares.iterator(); + } + + public void addToNetworkShares(NetShare elem) { + if (this.networkShares == null) { + this.networkShares = new ArrayList(); + } + this.networkShares.add(elem); + } + + public List getNetworkShares() { + return this.networkShares; + } + + public LectureWrite setNetworkShares(List networkShares) { + this.networkShares = networkShares; + return this; + } + + public void unsetNetworkShares() { + this.networkShares = null; + } + + /** Returns true if field networkShares is set (has been assigned a value) and false otherwise */ + public boolean isSetNetworkShares() { + return this.networkShares != null; + } + + public void setNetworkSharesIsSet(boolean value) { + if (!value) { + this.networkShares = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case LECTURE_NAME: @@ -1073,6 +1128,14 @@ public class LectureWrite implements org.apache.thrift.TBase)value); + } + break; + } } @@ -1135,6 +1198,9 @@ public class LectureWrite implements org.apache.thrift.TBase(_list105.size); + NetShare _elem106; + for (int _i107 = 0; _i107 < _list105.size; ++_i107) + { + _elem106 = new NetShare(); + _elem106.read(iprot); + struct.networkShares.add(_elem106); + } + iprot.readListEnd(); + } + struct.setNetworkSharesIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -2119,9 +2240,9 @@ public class LectureWrite implements org.apache.thrift.TBase(_list115.size); - String _elem116; - for (int _i117 = 0; _i117 < _list115.size; ++_i117) + org.apache.thrift.protocol.TList _list120 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.nics = new ArrayList(_list120.size); + String _elem121; + for (int _i122 = 0; _i122 < _list120.size; ++_i122) { - _elem116 = iprot.readString(); - struct.nics.add(_elem116); + _elem121 = iprot.readString(); + struct.nics.add(_elem121); } } struct.setNicsIsSet(true); } if (incoming.get(9)) { { - org.apache.thrift.protocol.TList _list118 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.networkExceptions = new ArrayList(_list118.size); - NetRule _elem119; - for (int _i120 = 0; _i120 < _list118.size; ++_i120) + org.apache.thrift.protocol.TList _list123 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.networkExceptions = new ArrayList(_list123.size); + NetRule _elem124; + for (int _i125 = 0; _i125 < _list123.size; ++_i125) { - _elem119 = new NetRule(); - _elem119.read(iprot); - struct.networkExceptions.add(_elem119); + _elem124 = new NetRule(); + _elem124.read(iprot); + struct.networkExceptions.add(_elem124); } } struct.setNetworkExceptionsIsSet(true); @@ -2444,39 +2591,39 @@ public class LectureWrite implements org.apache.thrift.TBase(_list121.size); - String _elem122; - for (int _i123 = 0; _i123 < _list121.size; ++_i123) + org.apache.thrift.protocol.TList _list126 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.addAllowedUsers = new ArrayList(_list126.size); + String _elem127; + for (int _i128 = 0; _i128 < _list126.size; ++_i128) { - _elem122 = iprot.readString(); - struct.addAllowedUsers.add(_elem122); + _elem127 = iprot.readString(); + struct.addAllowedUsers.add(_elem127); } } struct.setAddAllowedUsersIsSet(true); } if (incoming.get(14)) { { - org.apache.thrift.protocol.TList _list124 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.remAllowedUsers = new ArrayList(_list124.size); - String _elem125; - for (int _i126 = 0; _i126 < _list124.size; ++_i126) + org.apache.thrift.protocol.TList _list129 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.remAllowedUsers = new ArrayList(_list129.size); + String _elem130; + for (int _i131 = 0; _i131 < _list129.size; ++_i131) { - _elem125 = iprot.readString(); - struct.remAllowedUsers.add(_elem125); + _elem130 = iprot.readString(); + struct.remAllowedUsers.add(_elem130); } } struct.setRemAllowedUsersIsSet(true); } if (incoming.get(15)) { { - org.apache.thrift.protocol.TList _list127 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32()); - struct.locationIds = new ArrayList(_list127.size); - int _elem128; - for (int _i129 = 0; _i129 < _list127.size; ++_i129) + org.apache.thrift.protocol.TList _list132 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32()); + struct.locationIds = new ArrayList(_list132.size); + int _elem133; + for (int _i134 = 0; _i134 < _list132.size; ++_i134) { - _elem128 = iprot.readI32(); - struct.locationIds.add(_elem128); + _elem133 = iprot.readI32(); + struct.locationIds.add(_elem133); } } struct.setLocationIdsIsSet(true); @@ -2493,6 +2640,20 @@ public class LectureWrite implements org.apache.thrift.TBase(_list135.size); + NetShare _elem136; + for (int _i137 = 0; _i137 < _list135.size; ++_i137) + { + _elem136 = new NetShare(); + _elem136.read(iprot); + struct.networkShares.add(_elem136); + } + } + struct.setNetworkSharesIsSet(true); + } } } diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/MasterServer.java b/src/main/java/org/openslx/bwlp/thrift/iface/MasterServer.java index 8b68c04..4733419 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/MasterServer.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/MasterServer.java @@ -34,7 +34,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-04-26") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2017-09-06") public class MasterServer { public interface Iface { @@ -8258,14 +8258,14 @@ public class MasterServer { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list290 = iprot.readListBegin(); - struct.success = new ArrayList(_list290.size); - UserInfo _elem291; - for (int _i292 = 0; _i292 < _list290.size; ++_i292) + org.apache.thrift.protocol.TList _list306 = iprot.readListBegin(); + struct.success = new ArrayList(_list306.size); + UserInfo _elem307; + for (int _i308 = 0; _i308 < _list306.size; ++_i308) { - _elem291 = new UserInfo(); - _elem291.read(iprot); - struct.success.add(_elem291); + _elem307 = new UserInfo(); + _elem307.read(iprot); + struct.success.add(_elem307); } iprot.readListEnd(); } @@ -8311,9 +8311,9 @@ public class MasterServer { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (UserInfo _iter293 : struct.success) + for (UserInfo _iter309 : struct.success) { - _iter293.write(oprot); + _iter309.write(oprot); } oprot.writeListEnd(); } @@ -8360,9 +8360,9 @@ public class MasterServer { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (UserInfo _iter294 : struct.success) + for (UserInfo _iter310 : struct.success) { - _iter294.write(oprot); + _iter310.write(oprot); } } } @@ -8380,14 +8380,14 @@ public class MasterServer { BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list295 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list295.size); - UserInfo _elem296; - for (int _i297 = 0; _i297 < _list295.size; ++_i297) + org.apache.thrift.protocol.TList _list311 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list311.size); + UserInfo _elem312; + for (int _i313 = 0; _i313 < _list311.size; ++_i313) { - _elem296 = new UserInfo(); - _elem296.read(iprot); - struct.success.add(_elem296); + _elem312 = new UserInfo(); + _elem312.read(iprot); + struct.success.add(_elem312); } } struct.setSuccessIsSet(true); @@ -9351,14 +9351,14 @@ public class MasterServer { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list298 = iprot.readListBegin(); - struct.success = new ArrayList(_list298.size); - ImageSummaryRead _elem299; - for (int _i300 = 0; _i300 < _list298.size; ++_i300) + org.apache.thrift.protocol.TList _list314 = iprot.readListBegin(); + struct.success = new ArrayList(_list314.size); + ImageSummaryRead _elem315; + for (int _i316 = 0; _i316 < _list314.size; ++_i316) { - _elem299 = new ImageSummaryRead(); - _elem299.read(iprot); - struct.success.add(_elem299); + _elem315 = new ImageSummaryRead(); + _elem315.read(iprot); + struct.success.add(_elem315); } iprot.readListEnd(); } @@ -9404,9 +9404,9 @@ public class MasterServer { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (ImageSummaryRead _iter301 : struct.success) + for (ImageSummaryRead _iter317 : struct.success) { - _iter301.write(oprot); + _iter317.write(oprot); } oprot.writeListEnd(); } @@ -9453,9 +9453,9 @@ public class MasterServer { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (ImageSummaryRead _iter302 : struct.success) + for (ImageSummaryRead _iter318 : struct.success) { - _iter302.write(oprot); + _iter318.write(oprot); } } } @@ -9473,14 +9473,14 @@ public class MasterServer { BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list303 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list303.size); - ImageSummaryRead _elem304; - for (int _i305 = 0; _i305 < _list303.size; ++_i305) + org.apache.thrift.protocol.TList _list319 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list319.size); + ImageSummaryRead _elem320; + for (int _i321 = 0; _i321 < _list319.size; ++_i321) { - _elem304 = new ImageSummaryRead(); - _elem304.read(iprot); - struct.success.add(_elem304); + _elem320 = new ImageSummaryRead(); + _elem320.read(iprot); + struct.success.add(_elem320); } } struct.setSuccessIsSet(true); @@ -17734,13 +17734,13 @@ public class MasterServer { case 3: // BLOCK_HASHES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list306 = iprot.readListBegin(); - struct.blockHashes = new ArrayList(_list306.size); - ByteBuffer _elem307; - for (int _i308 = 0; _i308 < _list306.size; ++_i308) + org.apache.thrift.protocol.TList _list322 = iprot.readListBegin(); + struct.blockHashes = new ArrayList(_list322.size); + ByteBuffer _elem323; + for (int _i324 = 0; _i324 < _list322.size; ++_i324) { - _elem307 = iprot.readBinary(); - struct.blockHashes.add(_elem307); + _elem323 = iprot.readBinary(); + struct.blockHashes.add(_elem323); } iprot.readListEnd(); } @@ -17778,9 +17778,9 @@ public class MasterServer { oprot.writeFieldBegin(BLOCK_HASHES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.blockHashes.size())); - for (ByteBuffer _iter309 : struct.blockHashes) + for (ByteBuffer _iter325 : struct.blockHashes) { - oprot.writeBinary(_iter309); + oprot.writeBinary(_iter325); } oprot.writeListEnd(); } @@ -17823,9 +17823,9 @@ public class MasterServer { if (struct.isSetBlockHashes()) { { oprot.writeI32(struct.blockHashes.size()); - for (ByteBuffer _iter310 : struct.blockHashes) + for (ByteBuffer _iter326 : struct.blockHashes) { - oprot.writeBinary(_iter310); + oprot.writeBinary(_iter326); } } } @@ -17846,13 +17846,13 @@ public class MasterServer { } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list311 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.blockHashes = new ArrayList(_list311.size); - ByteBuffer _elem312; - for (int _i313 = 0; _i313 < _list311.size; ++_i313) + org.apache.thrift.protocol.TList _list327 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.blockHashes = new ArrayList(_list327.size); + ByteBuffer _elem328; + for (int _i329 = 0; _i329 < _list327.size; ++_i329) { - _elem312 = iprot.readBinary(); - struct.blockHashes.add(_elem312); + _elem328 = iprot.readBinary(); + struct.blockHashes.add(_elem328); } } struct.setBlockHashesIsSet(true); @@ -19298,13 +19298,13 @@ public class MasterServer { case 2: // ADDRESSES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list314 = iprot.readListBegin(); - struct.addresses = new ArrayList(_list314.size); - String _elem315; - for (int _i316 = 0; _i316 < _list314.size; ++_i316) + org.apache.thrift.protocol.TList _list330 = iprot.readListBegin(); + struct.addresses = new ArrayList(_list330.size); + String _elem331; + for (int _i332 = 0; _i332 < _list330.size; ++_i332) { - _elem315 = iprot.readString(); - struct.addresses.add(_elem315); + _elem331 = iprot.readString(); + struct.addresses.add(_elem331); } iprot.readListEnd(); } @@ -19361,9 +19361,9 @@ public class MasterServer { oprot.writeFieldBegin(ADDRESSES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.addresses.size())); - for (String _iter317 : struct.addresses) + for (String _iter333 : struct.addresses) { - oprot.writeString(_iter317); + oprot.writeString(_iter333); } oprot.writeListEnd(); } @@ -19435,9 +19435,9 @@ public class MasterServer { if (struct.isSetAddresses()) { { oprot.writeI32(struct.addresses.size()); - for (String _iter318 : struct.addresses) + for (String _iter334 : struct.addresses) { - oprot.writeString(_iter318); + oprot.writeString(_iter334); } } } @@ -19466,13 +19466,13 @@ public class MasterServer { } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list319 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.addresses = new ArrayList(_list319.size); - String _elem320; - for (int _i321 = 0; _i321 < _list319.size; ++_i321) + org.apache.thrift.protocol.TList _list335 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.addresses = new ArrayList(_list335.size); + String _elem336; + for (int _i337 = 0; _i337 < _list335.size; ++_i337) { - _elem320 = iprot.readString(); - struct.addresses.add(_elem320); + _elem336 = iprot.readString(); + struct.addresses.add(_elem336); } } struct.setAddressesIsSet(true); @@ -20455,13 +20455,13 @@ public class MasterServer { case 3: // ADDRESSES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list322 = iprot.readListBegin(); - struct.addresses = new ArrayList(_list322.size); - String _elem323; - for (int _i324 = 0; _i324 < _list322.size; ++_i324) + org.apache.thrift.protocol.TList _list338 = iprot.readListBegin(); + struct.addresses = new ArrayList(_list338.size); + String _elem339; + for (int _i340 = 0; _i340 < _list338.size; ++_i340) { - _elem323 = iprot.readString(); - struct.addresses.add(_elem323); + _elem339 = iprot.readString(); + struct.addresses.add(_elem339); } iprot.readListEnd(); } @@ -20499,9 +20499,9 @@ public class MasterServer { oprot.writeFieldBegin(ADDRESSES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.addresses.size())); - for (String _iter325 : struct.addresses) + for (String _iter341 : struct.addresses) { - oprot.writeString(_iter325); + oprot.writeString(_iter341); } oprot.writeListEnd(); } @@ -20544,9 +20544,9 @@ public class MasterServer { if (struct.isSetAddresses()) { { oprot.writeI32(struct.addresses.size()); - for (String _iter326 : struct.addresses) + for (String _iter342 : struct.addresses) { - oprot.writeString(_iter326); + oprot.writeString(_iter342); } } } @@ -20566,13 +20566,13 @@ public class MasterServer { } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list327 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.addresses = new ArrayList(_list327.size); - String _elem328; - for (int _i329 = 0; _i329 < _list327.size; ++_i329) + org.apache.thrift.protocol.TList _list343 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.addresses = new ArrayList(_list343.size); + String _elem344; + for (int _i345 = 0; _i345 < _list343.size; ++_i345) { - _elem328 = iprot.readString(); - struct.addresses.add(_elem328); + _elem344 = iprot.readString(); + struct.addresses.add(_elem344); } } struct.setAddressesIsSet(true); @@ -22956,14 +22956,14 @@ public class MasterServer { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list330 = iprot.readListBegin(); - struct.success = new ArrayList(_list330.size); - Organization _elem331; - for (int _i332 = 0; _i332 < _list330.size; ++_i332) + org.apache.thrift.protocol.TList _list346 = iprot.readListBegin(); + struct.success = new ArrayList(_list346.size); + Organization _elem347; + for (int _i348 = 0; _i348 < _list346.size; ++_i348) { - _elem331 = new Organization(); - _elem331.read(iprot); - struct.success.add(_elem331); + _elem347 = new Organization(); + _elem347.read(iprot); + struct.success.add(_elem347); } iprot.readListEnd(); } @@ -23000,9 +23000,9 @@ public class MasterServer { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Organization _iter333 : struct.success) + for (Organization _iter349 : struct.success) { - _iter333.write(oprot); + _iter349.write(oprot); } oprot.writeListEnd(); } @@ -23041,9 +23041,9 @@ public class MasterServer { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Organization _iter334 : struct.success) + for (Organization _iter350 : struct.success) { - _iter334.write(oprot); + _iter350.write(oprot); } } } @@ -23058,14 +23058,14 @@ public class MasterServer { BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list335 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list335.size); - Organization _elem336; - for (int _i337 = 0; _i337 < _list335.size; ++_i337) + org.apache.thrift.protocol.TList _list351 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list351.size); + Organization _elem352; + for (int _i353 = 0; _i353 < _list351.size; ++_i353) { - _elem336 = new Organization(); - _elem336.read(iprot); - struct.success.add(_elem336); + _elem352 = new Organization(); + _elem352.read(iprot); + struct.success.add(_elem352); } } struct.setSuccessIsSet(true); @@ -23726,14 +23726,14 @@ public class MasterServer { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list338 = iprot.readListBegin(); - struct.success = new ArrayList(_list338.size); - OperatingSystem _elem339; - for (int _i340 = 0; _i340 < _list338.size; ++_i340) + org.apache.thrift.protocol.TList _list354 = iprot.readListBegin(); + struct.success = new ArrayList(_list354.size); + OperatingSystem _elem355; + for (int _i356 = 0; _i356 < _list354.size; ++_i356) { - _elem339 = new OperatingSystem(); - _elem339.read(iprot); - struct.success.add(_elem339); + _elem355 = new OperatingSystem(); + _elem355.read(iprot); + struct.success.add(_elem355); } iprot.readListEnd(); } @@ -23770,9 +23770,9 @@ public class MasterServer { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (OperatingSystem _iter341 : struct.success) + for (OperatingSystem _iter357 : struct.success) { - _iter341.write(oprot); + _iter357.write(oprot); } oprot.writeListEnd(); } @@ -23811,9 +23811,9 @@ public class MasterServer { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (OperatingSystem _iter342 : struct.success) + for (OperatingSystem _iter358 : struct.success) { - _iter342.write(oprot); + _iter358.write(oprot); } } } @@ -23828,14 +23828,14 @@ public class MasterServer { BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list343 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list343.size); - OperatingSystem _elem344; - for (int _i345 = 0; _i345 < _list343.size; ++_i345) + org.apache.thrift.protocol.TList _list359 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list359.size); + OperatingSystem _elem360; + for (int _i361 = 0; _i361 < _list359.size; ++_i361) { - _elem344 = new OperatingSystem(); - _elem344.read(iprot); - struct.success.add(_elem344); + _elem360 = new OperatingSystem(); + _elem360.read(iprot); + struct.success.add(_elem360); } } struct.setSuccessIsSet(true); @@ -24496,14 +24496,14 @@ public class MasterServer { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list346 = iprot.readListBegin(); - struct.success = new ArrayList(_list346.size); - Virtualizer _elem347; - for (int _i348 = 0; _i348 < _list346.size; ++_i348) + org.apache.thrift.protocol.TList _list362 = iprot.readListBegin(); + struct.success = new ArrayList(_list362.size); + Virtualizer _elem363; + for (int _i364 = 0; _i364 < _list362.size; ++_i364) { - _elem347 = new Virtualizer(); - _elem347.read(iprot); - struct.success.add(_elem347); + _elem363 = new Virtualizer(); + _elem363.read(iprot); + struct.success.add(_elem363); } iprot.readListEnd(); } @@ -24540,9 +24540,9 @@ public class MasterServer { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Virtualizer _iter349 : struct.success) + for (Virtualizer _iter365 : struct.success) { - _iter349.write(oprot); + _iter365.write(oprot); } oprot.writeListEnd(); } @@ -24581,9 +24581,9 @@ public class MasterServer { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Virtualizer _iter350 : struct.success) + for (Virtualizer _iter366 : struct.success) { - _iter350.write(oprot); + _iter366.write(oprot); } } } @@ -24598,14 +24598,14 @@ public class MasterServer { BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list351 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list351.size); - Virtualizer _elem352; - for (int _i353 = 0; _i353 < _list351.size; ++_i353) + org.apache.thrift.protocol.TList _list367 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list367.size); + Virtualizer _elem368; + for (int _i369 = 0; _i369 < _list367.size; ++_i369) { - _elem352 = new Virtualizer(); - _elem352.read(iprot); - struct.success.add(_elem352); + _elem368 = new Virtualizer(); + _elem368.read(iprot); + struct.success.add(_elem368); } } struct.setSuccessIsSet(true); @@ -25377,14 +25377,14 @@ public class MasterServer { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list354 = iprot.readListBegin(); - struct.success = new ArrayList(_list354.size); - MasterTag _elem355; - for (int _i356 = 0; _i356 < _list354.size; ++_i356) + org.apache.thrift.protocol.TList _list370 = iprot.readListBegin(); + struct.success = new ArrayList(_list370.size); + MasterTag _elem371; + for (int _i372 = 0; _i372 < _list370.size; ++_i372) { - _elem355 = new MasterTag(); - _elem355.read(iprot); - struct.success.add(_elem355); + _elem371 = new MasterTag(); + _elem371.read(iprot); + struct.success.add(_elem371); } iprot.readListEnd(); } @@ -25421,9 +25421,9 @@ public class MasterServer { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (MasterTag _iter357 : struct.success) + for (MasterTag _iter373 : struct.success) { - _iter357.write(oprot); + _iter373.write(oprot); } oprot.writeListEnd(); } @@ -25462,9 +25462,9 @@ public class MasterServer { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (MasterTag _iter358 : struct.success) + for (MasterTag _iter374 : struct.success) { - _iter358.write(oprot); + _iter374.write(oprot); } } } @@ -25479,14 +25479,14 @@ public class MasterServer { BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list359 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list359.size); - MasterTag _elem360; - for (int _i361 = 0; _i361 < _list359.size; ++_i361) + org.apache.thrift.protocol.TList _list375 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list375.size); + MasterTag _elem376; + for (int _i377 = 0; _i377 < _list375.size; ++_i377) { - _elem360 = new MasterTag(); - _elem360.read(iprot); - struct.success.add(_elem360); + _elem376 = new MasterTag(); + _elem376.read(iprot); + struct.success.add(_elem376); } } struct.setSuccessIsSet(true); @@ -26258,14 +26258,14 @@ public class MasterServer { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list362 = iprot.readListBegin(); - struct.success = new ArrayList(_list362.size); - MasterSoftware _elem363; - for (int _i364 = 0; _i364 < _list362.size; ++_i364) + org.apache.thrift.protocol.TList _list378 = iprot.readListBegin(); + struct.success = new ArrayList(_list378.size); + MasterSoftware _elem379; + for (int _i380 = 0; _i380 < _list378.size; ++_i380) { - _elem363 = new MasterSoftware(); - _elem363.read(iprot); - struct.success.add(_elem363); + _elem379 = new MasterSoftware(); + _elem379.read(iprot); + struct.success.add(_elem379); } iprot.readListEnd(); } @@ -26302,9 +26302,9 @@ public class MasterServer { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (MasterSoftware _iter365 : struct.success) + for (MasterSoftware _iter381 : struct.success) { - _iter365.write(oprot); + _iter381.write(oprot); } oprot.writeListEnd(); } @@ -26343,9 +26343,9 @@ public class MasterServer { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (MasterSoftware _iter366 : struct.success) + for (MasterSoftware _iter382 : struct.success) { - _iter366.write(oprot); + _iter382.write(oprot); } } } @@ -26360,14 +26360,14 @@ public class MasterServer { BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list367 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list367.size); - MasterSoftware _elem368; - for (int _i369 = 0; _i369 < _list367.size; ++_i369) + org.apache.thrift.protocol.TList _list383 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list383.size); + MasterSoftware _elem384; + for (int _i385 = 0; _i385 < _list383.size; ++_i385) { - _elem368 = new MasterSoftware(); - _elem368.read(iprot); - struct.success.add(_elem368); + _elem384 = new MasterSoftware(); + _elem384.read(iprot); + struct.success.add(_elem384); } } struct.setSuccessIsSet(true); diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/NetShare.java b/src/main/java/org/openslx/bwlp/thrift/iface/NetShare.java new file mode 100644 index 0000000..537d5d3 --- /dev/null +++ b/src/main/java/org/openslx/bwlp/thrift/iface/NetShare.java @@ -0,0 +1,734 @@ +/** + * Autogenerated by Thrift Compiler (0.9.3) + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ +package org.openslx.bwlp.thrift.iface; + +import org.apache.thrift.scheme.IScheme; +import org.apache.thrift.scheme.SchemeFactory; +import org.apache.thrift.scheme.StandardScheme; + +import org.apache.thrift.scheme.TupleScheme; +import org.apache.thrift.protocol.TTupleProtocol; +import org.apache.thrift.protocol.TProtocolException; +import org.apache.thrift.EncodingUtils; +import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; +import java.util.List; +import java.util.ArrayList; +import java.util.Map; +import java.util.HashMap; +import java.util.EnumMap; +import java.util.Set; +import java.util.HashSet; +import java.util.EnumSet; +import java.util.Collections; +import java.util.BitSet; +import java.nio.ByteBuffer; +import java.util.Arrays; +import javax.annotation.Generated; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) +@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2017-09-06") +public class NetShare implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("NetShare"); + + private static final org.apache.thrift.protocol.TField AUTH_FIELD_DESC = new org.apache.thrift.protocol.TField("auth", org.apache.thrift.protocol.TType.I32, (short)4); + private static final org.apache.thrift.protocol.TField PATH_FIELD_DESC = new org.apache.thrift.protocol.TField("path", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField USERNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("username", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField PASSWORD_FIELD_DESC = new org.apache.thrift.protocol.TField("password", org.apache.thrift.protocol.TType.STRING, (short)3); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new NetShareStandardSchemeFactory()); + schemes.put(TupleScheme.class, new NetShareTupleSchemeFactory()); + } + + /** + * + * @see NetShareAuth + */ + public NetShareAuth auth; // required + public String path; // required + public String username; // optional + public String password; // 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 { + /** + * + * @see NetShareAuth + */ + AUTH((short)4, "auth"), + PATH((short)1, "path"), + USERNAME((short)2, "username"), + PASSWORD((short)3, "password"); + + private static final Map byName = new HashMap(); + + 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 4: // AUTH + return AUTH; + case 1: // PATH + return PATH; + case 2: // USERNAME + return USERNAME; + case 3: // PASSWORD + return PASSWORD; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + private static final _Fields optionals[] = {_Fields.USERNAME,_Fields.PASSWORD}; + 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.AUTH, new org.apache.thrift.meta_data.FieldMetaData("auth", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, NetShareAuth.class))); + tmpMap.put(_Fields.PATH, new org.apache.thrift.meta_data.FieldMetaData("path", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(NetShare.class, metaDataMap); + } + + public NetShare() { + } + + public NetShare( + NetShareAuth auth, + String path) + { + this(); + this.auth = auth; + this.path = path; + } + + /** + * Performs a deep copy on other. + */ + public NetShare(NetShare other) { + if (other.isSetAuth()) { + this.auth = other.auth; + } + if (other.isSetPath()) { + this.path = other.path; + } + if (other.isSetUsername()) { + this.username = other.username; + } + if (other.isSetPassword()) { + this.password = other.password; + } + } + + public NetShare deepCopy() { + return new NetShare(this); + } + + @Override + public void clear() { + this.auth = null; + this.path = null; + this.username = null; + this.password = null; + } + + /** + * + * @see NetShareAuth + */ + public NetShareAuth getAuth() { + return this.auth; + } + + /** + * + * @see NetShareAuth + */ + public NetShare setAuth(NetShareAuth auth) { + this.auth = auth; + return this; + } + + public void unsetAuth() { + this.auth = null; + } + + /** Returns true if field auth is set (has been assigned a value) and false otherwise */ + public boolean isSetAuth() { + return this.auth != null; + } + + public void setAuthIsSet(boolean value) { + if (!value) { + this.auth = null; + } + } + + public String getPath() { + return this.path; + } + + public NetShare setPath(String path) { + this.path = path; + return this; + } + + public void unsetPath() { + this.path = null; + } + + /** Returns true if field path is set (has been assigned a value) and false otherwise */ + public boolean isSetPath() { + return this.path != null; + } + + public void setPathIsSet(boolean value) { + if (!value) { + this.path = null; + } + } + + public String getUsername() { + return this.username; + } + + public NetShare setUsername(String username) { + this.username = username; + return this; + } + + public void unsetUsername() { + this.username = null; + } + + /** Returns true if field username is set (has been assigned a value) and false otherwise */ + public boolean isSetUsername() { + return this.username != null; + } + + public void setUsernameIsSet(boolean value) { + if (!value) { + this.username = null; + } + } + + public String getPassword() { + return this.password; + } + + public NetShare setPassword(String password) { + this.password = password; + return this; + } + + public void unsetPassword() { + this.password = null; + } + + /** Returns true if field password is set (has been assigned a value) and false otherwise */ + public boolean isSetPassword() { + return this.password != null; + } + + public void setPasswordIsSet(boolean value) { + if (!value) { + this.password = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case AUTH: + if (value == null) { + unsetAuth(); + } else { + setAuth((NetShareAuth)value); + } + break; + + case PATH: + if (value == null) { + unsetPath(); + } else { + setPath((String)value); + } + break; + + case USERNAME: + if (value == null) { + unsetUsername(); + } else { + setUsername((String)value); + } + break; + + case PASSWORD: + if (value == null) { + unsetPassword(); + } else { + setPassword((String)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case AUTH: + return getAuth(); + + case PATH: + return getPath(); + + case USERNAME: + return getUsername(); + + case PASSWORD: + return getPassword(); + + } + 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 AUTH: + return isSetAuth(); + case PATH: + return isSetPath(); + case USERNAME: + return isSetUsername(); + case PASSWORD: + return isSetPassword(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof NetShare) + return this.equals((NetShare)that); + return false; + } + + public boolean equals(NetShare that) { + if (that == null) + return false; + + boolean this_present_auth = true && this.isSetAuth(); + boolean that_present_auth = true && that.isSetAuth(); + if (this_present_auth || that_present_auth) { + if (!(this_present_auth && that_present_auth)) + return false; + if (!this.auth.equals(that.auth)) + return false; + } + + boolean this_present_path = true && this.isSetPath(); + boolean that_present_path = true && that.isSetPath(); + if (this_present_path || that_present_path) { + if (!(this_present_path && that_present_path)) + return false; + if (!this.path.equals(that.path)) + return false; + } + + boolean this_present_username = true && this.isSetUsername(); + boolean that_present_username = true && that.isSetUsername(); + if (this_present_username || that_present_username) { + if (!(this_present_username && that_present_username)) + return false; + if (!this.username.equals(that.username)) + return false; + } + + boolean this_present_password = true && this.isSetPassword(); + boolean that_present_password = true && that.isSetPassword(); + if (this_present_password || that_present_password) { + if (!(this_present_password && that_present_password)) + return false; + if (!this.password.equals(that.password)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_auth = true && (isSetAuth()); + list.add(present_auth); + if (present_auth) + list.add(auth.getValue()); + + boolean present_path = true && (isSetPath()); + list.add(present_path); + if (present_path) + list.add(path); + + boolean present_username = true && (isSetUsername()); + list.add(present_username); + if (present_username) + list.add(username); + + boolean present_password = true && (isSetPassword()); + list.add(present_password); + if (present_password) + list.add(password); + + return list.hashCode(); + } + + @Override + public int compareTo(NetShare other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetAuth()).compareTo(other.isSetAuth()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetAuth()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.auth, other.auth); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetPath()).compareTo(other.isSetPath()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPath()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.path, other.path); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetUsername()).compareTo(other.isSetUsername()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetUsername()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, other.username); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetPassword()).compareTo(other.isSetPassword()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPassword()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, other.password); + 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("NetShare("); + boolean first = true; + + sb.append("auth:"); + if (this.auth == null) { + sb.append("null"); + } else { + sb.append(this.auth); + } + first = false; + if (!first) sb.append(", "); + sb.append("path:"); + if (this.path == null) { + sb.append("null"); + } else { + sb.append(this.path); + } + first = false; + if (isSetUsername()) { + if (!first) sb.append(", "); + sb.append("username:"); + if (this.username == null) { + sb.append("null"); + } else { + sb.append(this.username); + } + first = false; + } + if (isSetPassword()) { + if (!first) sb.append(", "); + sb.append("password:"); + if (this.password == null) { + sb.append("null"); + } else { + sb.append(this.password); + } + first = false; + } + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class NetShareStandardSchemeFactory implements SchemeFactory { + public NetShareStandardScheme getScheme() { + return new NetShareStandardScheme(); + } + } + + private static class NetShareStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, NetShare 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 4: // AUTH + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.auth = org.openslx.bwlp.thrift.iface.NetShareAuth.findByValue(iprot.readI32()); + struct.setAuthIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // PATH + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.path = iprot.readString(); + struct.setPathIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // USERNAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.username = iprot.readString(); + struct.setUsernameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // PASSWORD + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.password = iprot.readString(); + struct.setPasswordIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, NetShare struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.path != null) { + oprot.writeFieldBegin(PATH_FIELD_DESC); + oprot.writeString(struct.path); + oprot.writeFieldEnd(); + } + if (struct.username != null) { + if (struct.isSetUsername()) { + oprot.writeFieldBegin(USERNAME_FIELD_DESC); + oprot.writeString(struct.username); + oprot.writeFieldEnd(); + } + } + if (struct.password != null) { + if (struct.isSetPassword()) { + oprot.writeFieldBegin(PASSWORD_FIELD_DESC); + oprot.writeString(struct.password); + oprot.writeFieldEnd(); + } + } + if (struct.auth != null) { + oprot.writeFieldBegin(AUTH_FIELD_DESC); + oprot.writeI32(struct.auth.getValue()); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class NetShareTupleSchemeFactory implements SchemeFactory { + public NetShareTupleScheme getScheme() { + return new NetShareTupleScheme(); + } + } + + private static class NetShareTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, NetShare struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetAuth()) { + optionals.set(0); + } + if (struct.isSetPath()) { + optionals.set(1); + } + if (struct.isSetUsername()) { + optionals.set(2); + } + if (struct.isSetPassword()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); + if (struct.isSetAuth()) { + oprot.writeI32(struct.auth.getValue()); + } + if (struct.isSetPath()) { + oprot.writeString(struct.path); + } + if (struct.isSetUsername()) { + oprot.writeString(struct.username); + } + if (struct.isSetPassword()) { + oprot.writeString(struct.password); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, NetShare struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(4); + if (incoming.get(0)) { + struct.auth = org.openslx.bwlp.thrift.iface.NetShareAuth.findByValue(iprot.readI32()); + struct.setAuthIsSet(true); + } + if (incoming.get(1)) { + struct.path = iprot.readString(); + struct.setPathIsSet(true); + } + if (incoming.get(2)) { + struct.username = iprot.readString(); + struct.setUsernameIsSet(true); + } + if (incoming.get(3)) { + struct.password = iprot.readString(); + struct.setPasswordIsSet(true); + } + } + } + +} + diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/NetShareAuth.java b/src/main/java/org/openslx/bwlp/thrift/iface/NetShareAuth.java new file mode 100644 index 0000000..3b5f936 --- /dev/null +++ b/src/main/java/org/openslx/bwlp/thrift/iface/NetShareAuth.java @@ -0,0 +1,48 @@ +/** + * Autogenerated by Thrift Compiler (0.9.3) + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ +package org.openslx.bwlp.thrift.iface; + + +import java.util.Map; +import java.util.HashMap; +import org.apache.thrift.TEnum; + +public enum NetShareAuth implements org.apache.thrift.TEnum { + LOGIN_USER(0), + SPECIAL_USER(1), + GUEST_USER(2); + + private final int value; + + private NetShareAuth(int value) { + this.value = value; + } + + /** + * Get the integer value of this enum value, as defined in the Thrift IDL. + */ + public int getValue() { + return value; + } + + /** + * Find a the enum type by its integer value, as defined in the Thrift IDL. + * @return null if the value is not found. + */ + public static NetShareAuth findByValue(int value) { + switch (value) { + case 0: + return LOGIN_USER; + case 1: + return SPECIAL_USER; + case 2: + return GUEST_USER; + default: + return null; + } + } +} diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/SatelliteServer.java b/src/main/java/org/openslx/bwlp/thrift/iface/SatelliteServer.java index 29b0ee0..5559dca 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/SatelliteServer.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/SatelliteServer.java @@ -34,7 +34,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2017-01-24") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2017-09-06") public class SatelliteServer { public interface Iface { @@ -9512,13 +9512,13 @@ public class SatelliteServer { case 4: // BLOCK_HASHES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list170 = iprot.readListBegin(); - struct.blockHashes = new ArrayList(_list170.size); - ByteBuffer _elem171; - for (int _i172 = 0; _i172 < _list170.size; ++_i172) + org.apache.thrift.protocol.TList _list186 = iprot.readListBegin(); + struct.blockHashes = new ArrayList(_list186.size); + ByteBuffer _elem187; + for (int _i188 = 0; _i188 < _list186.size; ++_i188) { - _elem171 = iprot.readBinary(); - struct.blockHashes.add(_elem171); + _elem187 = iprot.readBinary(); + struct.blockHashes.add(_elem187); } iprot.readListEnd(); } @@ -9567,9 +9567,9 @@ public class SatelliteServer { oprot.writeFieldBegin(BLOCK_HASHES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.blockHashes.size())); - for (ByteBuffer _iter173 : struct.blockHashes) + for (ByteBuffer _iter189 : struct.blockHashes) { - oprot.writeBinary(_iter173); + oprot.writeBinary(_iter189); } oprot.writeListEnd(); } @@ -9626,9 +9626,9 @@ public class SatelliteServer { if (struct.isSetBlockHashes()) { { oprot.writeI32(struct.blockHashes.size()); - for (ByteBuffer _iter174 : struct.blockHashes) + for (ByteBuffer _iter190 : struct.blockHashes) { - oprot.writeBinary(_iter174); + oprot.writeBinary(_iter190); } } } @@ -9655,13 +9655,13 @@ public class SatelliteServer { } if (incoming.get(3)) { { - org.apache.thrift.protocol.TList _list175 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.blockHashes = new ArrayList(_list175.size); - ByteBuffer _elem176; - for (int _i177 = 0; _i177 < _list175.size; ++_i177) + org.apache.thrift.protocol.TList _list191 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.blockHashes = new ArrayList(_list191.size); + ByteBuffer _elem192; + for (int _i193 = 0; _i193 < _list191.size; ++_i193) { - _elem176 = iprot.readBinary(); - struct.blockHashes.add(_elem176); + _elem192 = iprot.readBinary(); + struct.blockHashes.add(_elem192); } } struct.setBlockHashesIsSet(true); @@ -10872,13 +10872,13 @@ public class SatelliteServer { case 2: // BLOCK_HASHES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list178 = iprot.readListBegin(); - struct.blockHashes = new ArrayList(_list178.size); - ByteBuffer _elem179; - for (int _i180 = 0; _i180 < _list178.size; ++_i180) + org.apache.thrift.protocol.TList _list194 = iprot.readListBegin(); + struct.blockHashes = new ArrayList(_list194.size); + ByteBuffer _elem195; + for (int _i196 = 0; _i196 < _list194.size; ++_i196) { - _elem179 = iprot.readBinary(); - struct.blockHashes.add(_elem179); + _elem195 = iprot.readBinary(); + struct.blockHashes.add(_elem195); } iprot.readListEnd(); } @@ -10911,9 +10911,9 @@ public class SatelliteServer { oprot.writeFieldBegin(BLOCK_HASHES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.blockHashes.size())); - for (ByteBuffer _iter181 : struct.blockHashes) + for (ByteBuffer _iter197 : struct.blockHashes) { - oprot.writeBinary(_iter181); + oprot.writeBinary(_iter197); } oprot.writeListEnd(); } @@ -10950,9 +10950,9 @@ public class SatelliteServer { if (struct.isSetBlockHashes()) { { oprot.writeI32(struct.blockHashes.size()); - for (ByteBuffer _iter182 : struct.blockHashes) + for (ByteBuffer _iter198 : struct.blockHashes) { - oprot.writeBinary(_iter182); + oprot.writeBinary(_iter198); } } } @@ -10968,13 +10968,13 @@ public class SatelliteServer { } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list183 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.blockHashes = new ArrayList(_list183.size); - ByteBuffer _elem184; - for (int _i185 = 0; _i185 < _list183.size; ++_i185) + org.apache.thrift.protocol.TList _list199 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.blockHashes = new ArrayList(_list199.size); + ByteBuffer _elem200; + for (int _i201 = 0; _i201 < _list199.size; ++_i201) { - _elem184 = iprot.readBinary(); - struct.blockHashes.add(_elem184); + _elem200 = iprot.readBinary(); + struct.blockHashes.add(_elem200); } } struct.setBlockHashesIsSet(true); @@ -18329,14 +18329,14 @@ public class SatelliteServer { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list186 = iprot.readListBegin(); - struct.success = new ArrayList(_list186.size); - UserInfo _elem187; - for (int _i188 = 0; _i188 < _list186.size; ++_i188) + org.apache.thrift.protocol.TList _list202 = iprot.readListBegin(); + struct.success = new ArrayList(_list202.size); + UserInfo _elem203; + for (int _i204 = 0; _i204 < _list202.size; ++_i204) { - _elem187 = new UserInfo(); - _elem187.read(iprot); - struct.success.add(_elem187); + _elem203 = new UserInfo(); + _elem203.read(iprot); + struct.success.add(_elem203); } iprot.readListEnd(); } @@ -18382,9 +18382,9 @@ public class SatelliteServer { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (UserInfo _iter189 : struct.success) + for (UserInfo _iter205 : struct.success) { - _iter189.write(oprot); + _iter205.write(oprot); } oprot.writeListEnd(); } @@ -18431,9 +18431,9 @@ public class SatelliteServer { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (UserInfo _iter190 : struct.success) + for (UserInfo _iter206 : struct.success) { - _iter190.write(oprot); + _iter206.write(oprot); } } } @@ -18451,14 +18451,14 @@ public class SatelliteServer { BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list191 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list191.size); - UserInfo _elem192; - for (int _i193 = 0; _i193 < _list191.size; ++_i193) + org.apache.thrift.protocol.TList _list207 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list207.size); + UserInfo _elem208; + for (int _i209 = 0; _i209 < _list207.size; ++_i209) { - _elem192 = new UserInfo(); - _elem192.read(iprot); - struct.success.add(_elem192); + _elem208 = new UserInfo(); + _elem208.read(iprot); + struct.success.add(_elem208); } } struct.setSuccessIsSet(true); @@ -20924,14 +20924,14 @@ public class SatelliteServer { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list194 = iprot.readListBegin(); - struct.success = new ArrayList(_list194.size); - OperatingSystem _elem195; - for (int _i196 = 0; _i196 < _list194.size; ++_i196) + org.apache.thrift.protocol.TList _list210 = iprot.readListBegin(); + struct.success = new ArrayList(_list210.size); + OperatingSystem _elem211; + for (int _i212 = 0; _i212 < _list210.size; ++_i212) { - _elem195 = new OperatingSystem(); - _elem195.read(iprot); - struct.success.add(_elem195); + _elem211 = new OperatingSystem(); + _elem211.read(iprot); + struct.success.add(_elem211); } iprot.readListEnd(); } @@ -20959,9 +20959,9 @@ public class SatelliteServer { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (OperatingSystem _iter197 : struct.success) + for (OperatingSystem _iter213 : struct.success) { - _iter197.write(oprot); + _iter213.write(oprot); } oprot.writeListEnd(); } @@ -20992,9 +20992,9 @@ public class SatelliteServer { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (OperatingSystem _iter198 : struct.success) + for (OperatingSystem _iter214 : struct.success) { - _iter198.write(oprot); + _iter214.write(oprot); } } } @@ -21006,14 +21006,14 @@ public class SatelliteServer { BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list199 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list199.size); - OperatingSystem _elem200; - for (int _i201 = 0; _i201 < _list199.size; ++_i201) + org.apache.thrift.protocol.TList _list215 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list215.size); + OperatingSystem _elem216; + for (int _i217 = 0; _i217 < _list215.size; ++_i217) { - _elem200 = new OperatingSystem(); - _elem200.read(iprot); - struct.success.add(_elem200); + _elem216 = new OperatingSystem(); + _elem216.read(iprot); + struct.success.add(_elem216); } } struct.setSuccessIsSet(true); @@ -21587,14 +21587,14 @@ public class SatelliteServer { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list202 = iprot.readListBegin(); - struct.success = new ArrayList(_list202.size); - Virtualizer _elem203; - for (int _i204 = 0; _i204 < _list202.size; ++_i204) + org.apache.thrift.protocol.TList _list218 = iprot.readListBegin(); + struct.success = new ArrayList(_list218.size); + Virtualizer _elem219; + for (int _i220 = 0; _i220 < _list218.size; ++_i220) { - _elem203 = new Virtualizer(); - _elem203.read(iprot); - struct.success.add(_elem203); + _elem219 = new Virtualizer(); + _elem219.read(iprot); + struct.success.add(_elem219); } iprot.readListEnd(); } @@ -21622,9 +21622,9 @@ public class SatelliteServer { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Virtualizer _iter205 : struct.success) + for (Virtualizer _iter221 : struct.success) { - _iter205.write(oprot); + _iter221.write(oprot); } oprot.writeListEnd(); } @@ -21655,9 +21655,9 @@ public class SatelliteServer { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Virtualizer _iter206 : struct.success) + for (Virtualizer _iter222 : struct.success) { - _iter206.write(oprot); + _iter222.write(oprot); } } } @@ -21669,14 +21669,14 @@ public class SatelliteServer { BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list207 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list207.size); - Virtualizer _elem208; - for (int _i209 = 0; _i209 < _list207.size; ++_i209) + org.apache.thrift.protocol.TList _list223 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list223.size); + Virtualizer _elem224; + for (int _i225 = 0; _i225 < _list223.size; ++_i225) { - _elem208 = new Virtualizer(); - _elem208.read(iprot); - struct.success.add(_elem208); + _elem224 = new Virtualizer(); + _elem224.read(iprot); + struct.success.add(_elem224); } } struct.setSuccessIsSet(true); @@ -22250,14 +22250,14 @@ public class SatelliteServer { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list210 = iprot.readListBegin(); - struct.success = new ArrayList(_list210.size); - Organization _elem211; - for (int _i212 = 0; _i212 < _list210.size; ++_i212) + org.apache.thrift.protocol.TList _list226 = iprot.readListBegin(); + struct.success = new ArrayList(_list226.size); + Organization _elem227; + for (int _i228 = 0; _i228 < _list226.size; ++_i228) { - _elem211 = new Organization(); - _elem211.read(iprot); - struct.success.add(_elem211); + _elem227 = new Organization(); + _elem227.read(iprot); + struct.success.add(_elem227); } iprot.readListEnd(); } @@ -22285,9 +22285,9 @@ public class SatelliteServer { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Organization _iter213 : struct.success) + for (Organization _iter229 : struct.success) { - _iter213.write(oprot); + _iter229.write(oprot); } oprot.writeListEnd(); } @@ -22318,9 +22318,9 @@ public class SatelliteServer { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Organization _iter214 : struct.success) + for (Organization _iter230 : struct.success) { - _iter214.write(oprot); + _iter230.write(oprot); } } } @@ -22332,14 +22332,14 @@ public class SatelliteServer { BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list215 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list215.size); - Organization _elem216; - for (int _i217 = 0; _i217 < _list215.size; ++_i217) + org.apache.thrift.protocol.TList _list231 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list231.size); + Organization _elem232; + for (int _i233 = 0; _i233 < _list231.size; ++_i233) { - _elem216 = new Organization(); - _elem216.read(iprot); - struct.success.add(_elem216); + _elem232 = new Organization(); + _elem232.read(iprot); + struct.success.add(_elem232); } } struct.setSuccessIsSet(true); @@ -22913,14 +22913,14 @@ public class SatelliteServer { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list218 = iprot.readListBegin(); - struct.success = new ArrayList(_list218.size); - Location _elem219; - for (int _i220 = 0; _i220 < _list218.size; ++_i220) + org.apache.thrift.protocol.TList _list234 = iprot.readListBegin(); + struct.success = new ArrayList(_list234.size); + Location _elem235; + for (int _i236 = 0; _i236 < _list234.size; ++_i236) { - _elem219 = new Location(); - _elem219.read(iprot); - struct.success.add(_elem219); + _elem235 = new Location(); + _elem235.read(iprot); + struct.success.add(_elem235); } iprot.readListEnd(); } @@ -22948,9 +22948,9 @@ public class SatelliteServer { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Location _iter221 : struct.success) + for (Location _iter237 : struct.success) { - _iter221.write(oprot); + _iter237.write(oprot); } oprot.writeListEnd(); } @@ -22981,9 +22981,9 @@ public class SatelliteServer { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Location _iter222 : struct.success) + for (Location _iter238 : struct.success) { - _iter222.write(oprot); + _iter238.write(oprot); } } } @@ -22995,14 +22995,14 @@ public class SatelliteServer { BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list223 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list223.size); - Location _elem224; - for (int _i225 = 0; _i225 < _list223.size; ++_i225) + org.apache.thrift.protocol.TList _list239 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list239.size); + Location _elem240; + for (int _i241 = 0; _i241 < _list239.size; ++_i241) { - _elem224 = new Location(); - _elem224.read(iprot); - struct.success.add(_elem224); + _elem240 = new Location(); + _elem240.read(iprot); + struct.success.add(_elem240); } } struct.setSuccessIsSet(true); @@ -24111,13 +24111,13 @@ public class SatelliteServer { case 2: // TAG_SEARCH if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list226 = iprot.readListBegin(); - struct.tagSearch = new ArrayList(_list226.size); - String _elem227; - for (int _i228 = 0; _i228 < _list226.size; ++_i228) + org.apache.thrift.protocol.TList _list242 = iprot.readListBegin(); + struct.tagSearch = new ArrayList(_list242.size); + String _elem243; + for (int _i244 = 0; _i244 < _list242.size; ++_i244) { - _elem227 = iprot.readString(); - struct.tagSearch.add(_elem227); + _elem243 = iprot.readString(); + struct.tagSearch.add(_elem243); } iprot.readListEnd(); } @@ -24158,9 +24158,9 @@ public class SatelliteServer { oprot.writeFieldBegin(TAG_SEARCH_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.tagSearch.size())); - for (String _iter229 : struct.tagSearch) + for (String _iter245 : struct.tagSearch) { - oprot.writeString(_iter229); + oprot.writeString(_iter245); } oprot.writeListEnd(); } @@ -24203,9 +24203,9 @@ public class SatelliteServer { if (struct.isSetTagSearch()) { { oprot.writeI32(struct.tagSearch.size()); - for (String _iter230 : struct.tagSearch) + for (String _iter246 : struct.tagSearch) { - oprot.writeString(_iter230); + oprot.writeString(_iter246); } } } @@ -24224,13 +24224,13 @@ public class SatelliteServer { } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list231 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.tagSearch = new ArrayList(_list231.size); - String _elem232; - for (int _i233 = 0; _i233 < _list231.size; ++_i233) + org.apache.thrift.protocol.TList _list247 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.tagSearch = new ArrayList(_list247.size); + String _elem248; + for (int _i249 = 0; _i249 < _list247.size; ++_i249) { - _elem232 = iprot.readString(); - struct.tagSearch.add(_elem232); + _elem248 = iprot.readString(); + struct.tagSearch.add(_elem248); } } struct.setTagSearchIsSet(true); @@ -24724,14 +24724,14 @@ public class SatelliteServer { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list234 = iprot.readListBegin(); - struct.success = new ArrayList(_list234.size); - ImageSummaryRead _elem235; - for (int _i236 = 0; _i236 < _list234.size; ++_i236) + org.apache.thrift.protocol.TList _list250 = iprot.readListBegin(); + struct.success = new ArrayList(_list250.size); + ImageSummaryRead _elem251; + for (int _i252 = 0; _i252 < _list250.size; ++_i252) { - _elem235 = new ImageSummaryRead(); - _elem235.read(iprot); - struct.success.add(_elem235); + _elem251 = new ImageSummaryRead(); + _elem251.read(iprot); + struct.success.add(_elem251); } iprot.readListEnd(); } @@ -24777,9 +24777,9 @@ public class SatelliteServer { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (ImageSummaryRead _iter237 : struct.success) + for (ImageSummaryRead _iter253 : struct.success) { - _iter237.write(oprot); + _iter253.write(oprot); } oprot.writeListEnd(); } @@ -24826,9 +24826,9 @@ public class SatelliteServer { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (ImageSummaryRead _iter238 : struct.success) + for (ImageSummaryRead _iter254 : struct.success) { - _iter238.write(oprot); + _iter254.write(oprot); } } } @@ -24846,14 +24846,14 @@ public class SatelliteServer { BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list239 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list239.size); - ImageSummaryRead _elem240; - for (int _i241 = 0; _i241 < _list239.size; ++_i241) + org.apache.thrift.protocol.TList _list255 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list255.size); + ImageSummaryRead _elem256; + for (int _i257 = 0; _i257 < _list255.size; ++_i257) { - _elem240 = new ImageSummaryRead(); - _elem240.read(iprot); - struct.success.add(_elem240); + _elem256 = new ImageSummaryRead(); + _elem256.read(iprot); + struct.success.add(_elem256); } } struct.setSuccessIsSet(true); @@ -31960,16 +31960,16 @@ public class SatelliteServer { case 3: // PERMISSIONS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map242 = iprot.readMapBegin(); - struct.permissions = new HashMap(2*_map242.size); - String _key243; - ImagePermissions _val244; - for (int _i245 = 0; _i245 < _map242.size; ++_i245) + org.apache.thrift.protocol.TMap _map258 = iprot.readMapBegin(); + struct.permissions = new HashMap(2*_map258.size); + String _key259; + ImagePermissions _val260; + for (int _i261 = 0; _i261 < _map258.size; ++_i261) { - _key243 = iprot.readString(); - _val244 = new ImagePermissions(); - _val244.read(iprot); - struct.permissions.put(_key243, _val244); + _key259 = iprot.readString(); + _val260 = new ImagePermissions(); + _val260.read(iprot); + struct.permissions.put(_key259, _val260); } iprot.readMapEnd(); } @@ -32007,10 +32007,10 @@ public class SatelliteServer { oprot.writeFieldBegin(PERMISSIONS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, struct.permissions.size())); - for (Map.Entry _iter246 : struct.permissions.entrySet()) + for (Map.Entry _iter262 : struct.permissions.entrySet()) { - oprot.writeString(_iter246.getKey()); - _iter246.getValue().write(oprot); + oprot.writeString(_iter262.getKey()); + _iter262.getValue().write(oprot); } oprot.writeMapEnd(); } @@ -32053,10 +32053,10 @@ public class SatelliteServer { if (struct.isSetPermissions()) { { oprot.writeI32(struct.permissions.size()); - for (Map.Entry _iter247 : struct.permissions.entrySet()) + for (Map.Entry _iter263 : struct.permissions.entrySet()) { - oprot.writeString(_iter247.getKey()); - _iter247.getValue().write(oprot); + oprot.writeString(_iter263.getKey()); + _iter263.getValue().write(oprot); } } } @@ -32076,16 +32076,16 @@ public class SatelliteServer { } if (incoming.get(2)) { { - org.apache.thrift.protocol.TMap _map248 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.permissions = new HashMap(2*_map248.size); - String _key249; - ImagePermissions _val250; - for (int _i251 = 0; _i251 < _map248.size; ++_i251) + org.apache.thrift.protocol.TMap _map264 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.permissions = new HashMap(2*_map264.size); + String _key265; + ImagePermissions _val266; + for (int _i267 = 0; _i267 < _map264.size; ++_i267) { - _key249 = iprot.readString(); - _val250 = new ImagePermissions(); - _val250.read(iprot); - struct.permissions.put(_key249, _val250); + _key265 = iprot.readString(); + _val266 = new ImagePermissions(); + _val266.read(iprot); + struct.permissions.put(_key265, _val266); } } struct.setPermissionsIsSet(true); @@ -33705,16 +33705,16 @@ public class SatelliteServer { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map252 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map252.size); - String _key253; - ImagePermissions _val254; - for (int _i255 = 0; _i255 < _map252.size; ++_i255) + org.apache.thrift.protocol.TMap _map268 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map268.size); + String _key269; + ImagePermissions _val270; + for (int _i271 = 0; _i271 < _map268.size; ++_i271) { - _key253 = iprot.readString(); - _val254 = new ImagePermissions(); - _val254.read(iprot); - struct.success.put(_key253, _val254); + _key269 = iprot.readString(); + _val270 = new ImagePermissions(); + _val270.read(iprot); + struct.success.put(_key269, _val270); } iprot.readMapEnd(); } @@ -33769,10 +33769,10 @@ public class SatelliteServer { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Map.Entry _iter256 : struct.success.entrySet()) + for (Map.Entry _iter272 : struct.success.entrySet()) { - oprot.writeString(_iter256.getKey()); - _iter256.getValue().write(oprot); + oprot.writeString(_iter272.getKey()); + _iter272.getValue().write(oprot); } oprot.writeMapEnd(); } @@ -33827,10 +33827,10 @@ public class SatelliteServer { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Map.Entry _iter257 : struct.success.entrySet()) + for (Map.Entry _iter273 : struct.success.entrySet()) { - oprot.writeString(_iter257.getKey()); - _iter257.getValue().write(oprot); + oprot.writeString(_iter273.getKey()); + _iter273.getValue().write(oprot); } } } @@ -33851,16 +33851,16 @@ public class SatelliteServer { BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { - org.apache.thrift.protocol.TMap _map258 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new HashMap(2*_map258.size); - String _key259; - ImagePermissions _val260; - for (int _i261 = 0; _i261 < _map258.size; ++_i261) + org.apache.thrift.protocol.TMap _map274 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new HashMap(2*_map274.size); + String _key275; + ImagePermissions _val276; + for (int _i277 = 0; _i277 < _map274.size; ++_i277) { - _key259 = iprot.readString(); - _val260 = new ImagePermissions(); - _val260.read(iprot); - struct.success.put(_key259, _val260); + _key275 = iprot.readString(); + _val276 = new ImagePermissions(); + _val276.read(iprot); + struct.success.put(_key275, _val276); } } struct.setSuccessIsSet(true); @@ -44469,14 +44469,14 @@ public class SatelliteServer { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list262 = iprot.readListBegin(); - struct.success = new ArrayList(_list262.size); - LectureSummary _elem263; - for (int _i264 = 0; _i264 < _list262.size; ++_i264) + org.apache.thrift.protocol.TList _list278 = iprot.readListBegin(); + struct.success = new ArrayList(_list278.size); + LectureSummary _elem279; + for (int _i280 = 0; _i280 < _list278.size; ++_i280) { - _elem263 = new LectureSummary(); - _elem263.read(iprot); - struct.success.add(_elem263); + _elem279 = new LectureSummary(); + _elem279.read(iprot); + struct.success.add(_elem279); } iprot.readListEnd(); } @@ -44522,9 +44522,9 @@ public class SatelliteServer { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (LectureSummary _iter265 : struct.success) + for (LectureSummary _iter281 : struct.success) { - _iter265.write(oprot); + _iter281.write(oprot); } oprot.writeListEnd(); } @@ -44571,9 +44571,9 @@ public class SatelliteServer { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (LectureSummary _iter266 : struct.success) + for (LectureSummary _iter282 : struct.success) { - _iter266.write(oprot); + _iter282.write(oprot); } } } @@ -44591,14 +44591,14 @@ public class SatelliteServer { BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list267 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list267.size); - LectureSummary _elem268; - for (int _i269 = 0; _i269 < _list267.size; ++_i269) + org.apache.thrift.protocol.TList _list283 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list283.size); + LectureSummary _elem284; + for (int _i285 = 0; _i285 < _list283.size; ++_i285) { - _elem268 = new LectureSummary(); - _elem268.read(iprot); - struct.success.add(_elem268); + _elem284 = new LectureSummary(); + _elem284.read(iprot); + struct.success.add(_elem284); } } struct.setSuccessIsSet(true); @@ -47315,16 +47315,16 @@ public class SatelliteServer { case 3: // PERMISSIONS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map270 = iprot.readMapBegin(); - struct.permissions = new HashMap(2*_map270.size); - String _key271; - LecturePermissions _val272; - for (int _i273 = 0; _i273 < _map270.size; ++_i273) + org.apache.thrift.protocol.TMap _map286 = iprot.readMapBegin(); + struct.permissions = new HashMap(2*_map286.size); + String _key287; + LecturePermissions _val288; + for (int _i289 = 0; _i289 < _map286.size; ++_i289) { - _key271 = iprot.readString(); - _val272 = new LecturePermissions(); - _val272.read(iprot); - struct.permissions.put(_key271, _val272); + _key287 = iprot.readString(); + _val288 = new LecturePermissions(); + _val288.read(iprot); + struct.permissions.put(_key287, _val288); } iprot.readMapEnd(); } @@ -47362,10 +47362,10 @@ public class SatelliteServer { oprot.writeFieldBegin(PERMISSIONS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, struct.permissions.size())); - for (Map.Entry _iter274 : struct.permissions.entrySet()) + for (Map.Entry _iter290 : struct.permissions.entrySet()) { - oprot.writeString(_iter274.getKey()); - _iter274.getValue().write(oprot); + oprot.writeString(_iter290.getKey()); + _iter290.getValue().write(oprot); } oprot.writeMapEnd(); } @@ -47408,10 +47408,10 @@ public class SatelliteServer { if (struct.isSetPermissions()) { { oprot.writeI32(struct.permissions.size()); - for (Map.Entry _iter275 : struct.permissions.entrySet()) + for (Map.Entry _iter291 : struct.permissions.entrySet()) { - oprot.writeString(_iter275.getKey()); - _iter275.getValue().write(oprot); + oprot.writeString(_iter291.getKey()); + _iter291.getValue().write(oprot); } } } @@ -47431,16 +47431,16 @@ public class SatelliteServer { } if (incoming.get(2)) { { - org.apache.thrift.protocol.TMap _map276 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.permissions = new HashMap(2*_map276.size); - String _key277; - LecturePermissions _val278; - for (int _i279 = 0; _i279 < _map276.size; ++_i279) + org.apache.thrift.protocol.TMap _map292 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.permissions = new HashMap(2*_map292.size); + String _key293; + LecturePermissions _val294; + for (int _i295 = 0; _i295 < _map292.size; ++_i295) { - _key277 = iprot.readString(); - _val278 = new LecturePermissions(); - _val278.read(iprot); - struct.permissions.put(_key277, _val278); + _key293 = iprot.readString(); + _val294 = new LecturePermissions(); + _val294.read(iprot); + struct.permissions.put(_key293, _val294); } } struct.setPermissionsIsSet(true); @@ -49060,16 +49060,16 @@ public class SatelliteServer { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map280 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map280.size); - String _key281; - LecturePermissions _val282; - for (int _i283 = 0; _i283 < _map280.size; ++_i283) + org.apache.thrift.protocol.TMap _map296 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map296.size); + String _key297; + LecturePermissions _val298; + for (int _i299 = 0; _i299 < _map296.size; ++_i299) { - _key281 = iprot.readString(); - _val282 = new LecturePermissions(); - _val282.read(iprot); - struct.success.put(_key281, _val282); + _key297 = iprot.readString(); + _val298 = new LecturePermissions(); + _val298.read(iprot); + struct.success.put(_key297, _val298); } iprot.readMapEnd(); } @@ -49124,10 +49124,10 @@ public class SatelliteServer { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Map.Entry _iter284 : struct.success.entrySet()) + for (Map.Entry _iter300 : struct.success.entrySet()) { - oprot.writeString(_iter284.getKey()); - _iter284.getValue().write(oprot); + oprot.writeString(_iter300.getKey()); + _iter300.getValue().write(oprot); } oprot.writeMapEnd(); } @@ -49182,10 +49182,10 @@ public class SatelliteServer { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Map.Entry _iter285 : struct.success.entrySet()) + for (Map.Entry _iter301 : struct.success.entrySet()) { - oprot.writeString(_iter285.getKey()); - _iter285.getValue().write(oprot); + oprot.writeString(_iter301.getKey()); + _iter301.getValue().write(oprot); } } } @@ -49206,16 +49206,16 @@ public class SatelliteServer { BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { - org.apache.thrift.protocol.TMap _map286 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new HashMap(2*_map286.size); - String _key287; - LecturePermissions _val288; - for (int _i289 = 0; _i289 < _map286.size; ++_i289) + org.apache.thrift.protocol.TMap _map302 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new HashMap(2*_map302.size); + String _key303; + LecturePermissions _val304; + for (int _i305 = 0; _i305 < _map302.size; ++_i305) { - _key287 = iprot.readString(); - _val288 = new LecturePermissions(); - _val288.read(iprot); - struct.success.put(_key287, _val288); + _key303 = iprot.readString(); + _val304 = new LecturePermissions(); + _val304.read(iprot); + struct.success.put(_key303, _val304); } } struct.setSuccessIsSet(true); diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/TransferInformation.java b/src/main/java/org/openslx/bwlp/thrift/iface/TransferInformation.java index 7b25f2c..40d5680 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/TransferInformation.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/TransferInformation.java @@ -34,7 +34,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-01-04") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2017-09-06") public class TransferInformation implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TransferInformation"); @@ -707,13 +707,13 @@ public class TransferInformation implements org.apache.thrift.TBase(_list162.size); - ByteBuffer _elem163; - for (int _i164 = 0; _i164 < _list162.size; ++_i164) + org.apache.thrift.protocol.TList _list178 = iprot.readListBegin(); + struct.blockHashes = new ArrayList(_list178.size); + ByteBuffer _elem179; + for (int _i180 = 0; _i180 < _list178.size; ++_i180) { - _elem163 = iprot.readBinary(); - struct.blockHashes.add(_elem163); + _elem179 = iprot.readBinary(); + struct.blockHashes.add(_elem179); } iprot.readListEnd(); } @@ -761,9 +761,9 @@ public class TransferInformation implements org.apache.thrift.TBase(_list167.size); - ByteBuffer _elem168; - for (int _i169 = 0; _i169 < _list167.size; ++_i169) + org.apache.thrift.protocol.TList _list183 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.blockHashes = new ArrayList(_list183.size); + ByteBuffer _elem184; + for (int _i185 = 0; _i185 < _list183.size; ++_i185) { - _elem168 = iprot.readBinary(); - struct.blockHashes.add(_elem168); + _elem184 = iprot.readBinary(); + struct.blockHashes.add(_elem184); } } struct.setBlockHashesIsSet(true); -- cgit v1.2.3-55-g7522