diff options
author | Jonathan Bauer | 2016-01-07 13:55:40 +0100 |
---|---|---|
committer | Jonathan Bauer | 2016-01-07 13:55:40 +0100 |
commit | 5ba446543184d5af8185da23b9a5fd28133d5513 (patch) | |
tree | 5f0dc18ddee5ee2370f6c0226e5337987d393428 /src/main/java/org/openslx/bwlp/thrift/iface/TransferStatus.java | |
parent | [thrift] added generated Location class (diff) | |
download | master-sync-shared-5ba446543184d5af8185da23b9a5fd28133d5513.tar.gz master-sync-shared-5ba446543184d5af8185da23b9a5fd28133d5513.tar.xz master-sync-shared-5ba446543184d5af8185da23b9a5fd28133d5513.zip |
added "onlyInLocations" flag for LectureWrite
update thrift files to 0.9.3
Diffstat (limited to 'src/main/java/org/openslx/bwlp/thrift/iface/TransferStatus.java')
-rw-r--r-- | src/main/java/org/openslx/bwlp/thrift/iface/TransferStatus.java | 32 |
1 files changed, 23 insertions, 9 deletions
diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/TransferStatus.java b/src/main/java/org/openslx/bwlp/thrift/iface/TransferStatus.java index 7d695dc..986e27d 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/TransferStatus.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/TransferStatus.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.1) + * Autogenerated by Thrift Compiler (0.9.3) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -29,9 +29,12 @@ import java.util.Collections; import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; +import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) +@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-01-04") public class TransferStatus implements org.apache.thrift.TBase<TransferStatus, TransferStatus._Fields>, java.io.Serializable, Cloneable, Comparable<TransferStatus> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TransferStatus"); @@ -136,7 +139,7 @@ public class TransferStatus implements org.apache.thrift.TBase<TransferStatus, T TransferState state) { this(); - this.blockStatus = blockStatus; + this.blockStatus = org.apache.thrift.TBaseHelper.copyBinary(blockStatus); this.state = state; } @@ -146,7 +149,6 @@ public class TransferStatus implements org.apache.thrift.TBase<TransferStatus, T public TransferStatus(TransferStatus other) { if (other.isSetBlockStatus()) { this.blockStatus = org.apache.thrift.TBaseHelper.copyBinary(other.blockStatus); -; } if (other.isSetState()) { this.state = other.state; @@ -169,16 +171,16 @@ public class TransferStatus implements org.apache.thrift.TBase<TransferStatus, T } public ByteBuffer bufferForBlockStatus() { - return blockStatus; + return org.apache.thrift.TBaseHelper.copyBinary(blockStatus); } public TransferStatus setBlockStatus(byte[] blockStatus) { - setBlockStatus(blockStatus == null ? (ByteBuffer)null : ByteBuffer.wrap(blockStatus)); + this.blockStatus = blockStatus == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(blockStatus, blockStatus.length)); return this; } public TransferStatus setBlockStatus(ByteBuffer blockStatus) { - this.blockStatus = blockStatus; + this.blockStatus = org.apache.thrift.TBaseHelper.copyBinary(blockStatus); return this; } @@ -313,7 +315,19 @@ public class TransferStatus implements org.apache.thrift.TBase<TransferStatus, T @Override public int hashCode() { - return 0; + List<Object> list = new ArrayList<Object>(); + + boolean present_blockStatus = true && (isSetBlockStatus()); + list.add(present_blockStatus); + if (present_blockStatus) + list.add(blockStatus); + + boolean present_state = true && (isSetState()); + list.add(present_state); + if (present_state) + list.add(state.getValue()); + + return list.hashCode(); } @Override @@ -432,7 +446,7 @@ public class TransferStatus implements org.apache.thrift.TBase<TransferStatus, T break; case 2: // STATE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.state = TransferState.findByValue(iprot.readI32()); + struct.state = org.openslx.bwlp.thrift.iface.TransferState.findByValue(iprot.readI32()); struct.setStateIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -505,7 +519,7 @@ public class TransferStatus implements org.apache.thrift.TBase<TransferStatus, T struct.setBlockStatusIsSet(true); } if (incoming.get(1)) { - struct.state = TransferState.findByValue(iprot.readI32()); + struct.state = org.openslx.bwlp.thrift.iface.TransferState.findByValue(iprot.readI32()); struct.setStateIsSet(true); } } |