From 457a6152aeec27ef941db8f0c50700c25c09390e Mon Sep 17 00:00:00 2001 From: Björn Hagemeister Date: Tue, 23 Sep 2014 16:26:32 +0200 Subject: Removed missingBlocks and allBlocksValid from uploadInfos. --- .../imagemaster/thrift/iface/ImageServer.java | 32 +-- .../imagemaster/thrift/iface/UploadInfos.java | 254 +-------------------- 2 files changed, 20 insertions(+), 266 deletions(-) (limited to 'src/main/java') diff --git a/src/main/java/org/openslx/imagemaster/thrift/iface/ImageServer.java b/src/main/java/org/openslx/imagemaster/thrift/iface/ImageServer.java index 7cef221..33372d2 100644 --- a/src/main/java/org/openslx/imagemaster/thrift/iface/ImageServer.java +++ b/src/main/java/org/openslx/imagemaster/thrift/iface/ImageServer.java @@ -6068,13 +6068,13 @@ public class ImageServer { case 3: // CRC_SUMS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list8 = iprot.readListBegin(); - struct.crcSums = new ArrayList(_list8.size); - for (int _i9 = 0; _i9 < _list8.size; ++_i9) + org.apache.thrift.protocol.TList _list0 = iprot.readListBegin(); + struct.crcSums = new ArrayList(_list0.size); + for (int _i1 = 0; _i1 < _list0.size; ++_i1) { - int _elem10; // required - _elem10 = iprot.readI32(); - struct.crcSums.add(_elem10); + int _elem2; // required + _elem2 = iprot.readI32(); + struct.crcSums.add(_elem2); } iprot.readListEnd(); } @@ -6112,9 +6112,9 @@ public class ImageServer { oprot.writeFieldBegin(CRC_SUMS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, struct.crcSums.size())); - for (int _iter11 : struct.crcSums) + for (int _iter3 : struct.crcSums) { - oprot.writeI32(_iter11); + oprot.writeI32(_iter3); } oprot.writeListEnd(); } @@ -6157,9 +6157,9 @@ public class ImageServer { if (struct.isSetCrcSums()) { { oprot.writeI32(struct.crcSums.size()); - for (int _iter12 : struct.crcSums) + for (int _iter4 : struct.crcSums) { - oprot.writeI32(_iter12); + oprot.writeI32(_iter4); } } } @@ -6180,13 +6180,13 @@ public class ImageServer { } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list13 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32()); - struct.crcSums = new ArrayList(_list13.size); - for (int _i14 = 0; _i14 < _list13.size; ++_i14) + org.apache.thrift.protocol.TList _list5 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32()); + struct.crcSums = new ArrayList(_list5.size); + for (int _i6 = 0; _i6 < _list5.size; ++_i6) { - int _elem15; // required - _elem15 = iprot.readI32(); - struct.crcSums.add(_elem15); + int _elem7; // required + _elem7 = iprot.readI32(); + struct.crcSums.add(_elem7); } } struct.setCrcSumsIsSet(true); diff --git a/src/main/java/org/openslx/imagemaster/thrift/iface/UploadInfos.java b/src/main/java/org/openslx/imagemaster/thrift/iface/UploadInfos.java index be49273..3de9d62 100644 --- a/src/main/java/org/openslx/imagemaster/thrift/iface/UploadInfos.java +++ b/src/main/java/org/openslx/imagemaster/thrift/iface/UploadInfos.java @@ -35,8 +35,6 @@ public class UploadInfos implements org.apache.thrift.TBase, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -46,15 +44,11 @@ public class UploadInfos implements org.apache.thrift.TBase missingBlocks; // required - public boolean allBlocksValid; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { TOKEN((short)1, "token"), - PORT((short)2, "port"), - MISSING_BLOCKS((short)3, "missingBlocks"), - ALL_BLOCKS_VALID((short)4, "allBlocksValid"); + PORT((short)2, "port"); private static final Map byName = new HashMap(); @@ -73,10 +67,6 @@ public class UploadInfos implements org.apache.thrift.TBase metaDataMap; static { @@ -127,11 +116,6 @@ public class UploadInfos implements org.apache.thrift.TBase missingBlocks, - boolean allBlocksValid) + int port) { this(); this.token = token; this.port = port; setPortIsSet(true); - this.missingBlocks = missingBlocks; - this.allBlocksValid = allBlocksValid; - setAllBlocksValidIsSet(true); } /** @@ -163,14 +142,6 @@ public class UploadInfos implements org.apache.thrift.TBase __this__missingBlocks = new ArrayList(); - for (Integer other_element : other.missingBlocks) { - __this__missingBlocks.add(other_element); - } - this.missingBlocks = __this__missingBlocks; - } - this.allBlocksValid = other.allBlocksValid; } public UploadInfos deepCopy() { @@ -182,9 +153,6 @@ public class UploadInfos implements org.apache.thrift.TBase getMissingBlocksIterator() { - return (this.missingBlocks == null) ? null : this.missingBlocks.iterator(); - } - - public void addToMissingBlocks(int elem) { - if (this.missingBlocks == null) { - this.missingBlocks = new ArrayList(); - } - this.missingBlocks.add(elem); - } - - public List getMissingBlocks() { - return this.missingBlocks; - } - - public UploadInfos setMissingBlocks(List missingBlocks) { - this.missingBlocks = missingBlocks; - return this; - } - - public void unsetMissingBlocks() { - this.missingBlocks = null; - } - - /** Returns true if field missingBlocks is set (has been assigned a value) and false otherwise */ - public boolean isSetMissingBlocks() { - return this.missingBlocks != null; - } - - public void setMissingBlocksIsSet(boolean value) { - if (!value) { - this.missingBlocks = null; - } - } - - public boolean isAllBlocksValid() { - return this.allBlocksValid; - } - - public UploadInfos setAllBlocksValid(boolean allBlocksValid) { - this.allBlocksValid = allBlocksValid; - setAllBlocksValidIsSet(true); - return this; - } - - public void unsetAllBlocksValid() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ALLBLOCKSVALID_ISSET_ID); - } - - /** Returns true if field allBlocksValid is set (has been assigned a value) and false otherwise */ - public boolean isSetAllBlocksValid() { - return EncodingUtils.testBit(__isset_bitfield, __ALLBLOCKSVALID_ISSET_ID); - } - - public void setAllBlocksValidIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ALLBLOCKSVALID_ISSET_ID, value); - } - public void setFieldValue(_Fields field, Object value) { switch (field) { case TOKEN: @@ -314,22 +220,6 @@ public class UploadInfos implements org.apache.thrift.TBase)value); - } - break; - - case ALL_BLOCKS_VALID: - if (value == null) { - unsetAllBlocksValid(); - } else { - setAllBlocksValid((Boolean)value); - } - break; - } } @@ -341,12 +231,6 @@ public class UploadInfos implements org.apache.thrift.TBase(_list0.size); - for (int _i1 = 0; _i1 < _list0.size; ++_i1) - { - int _elem2; // required - _elem2 = iprot.readI32(); - struct.missingBlocks.add(_elem2); - } - iprot.readListEnd(); - } - struct.setMissingBlocksIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // ALL_BLOCKS_VALID - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.allBlocksValid = iprot.readBool(); - struct.setAllBlocksValidIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -628,21 +432,6 @@ public class UploadInfos implements org.apache.thrift.TBase(_list5.size); - for (int _i6 = 0; _i6 < _list5.size; ++_i6) - { - int _elem7; // required - _elem7 = iprot.readI32(); - struct.missingBlocks.add(_elem7); - } - } - struct.setMissingBlocksIsSet(true); - } - if (incoming.get(3)) { - struct.allBlocksValid = iprot.readBool(); - struct.setAllBlocksValidIsSet(true); - } } } -- cgit v1.2.3-55-g7522