summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/openslx/bwlp/thrift/iface/SatelliteConfig.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/openslx/bwlp/thrift/iface/SatelliteConfig.java')
-rw-r--r--src/main/java/org/openslx/bwlp/thrift/iface/SatelliteConfig.java126
1 files changed, 119 insertions, 7 deletions
diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/SatelliteConfig.java b/src/main/java/org/openslx/bwlp/thrift/iface/SatelliteConfig.java
index b412de9..d4fd8c8 100644
--- a/src/main/java/org/openslx/bwlp/thrift/iface/SatelliteConfig.java
+++ b/src/main/java/org/openslx/bwlp/thrift/iface/SatelliteConfig.java
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.15.0)
+ * Autogenerated by Thrift Compiler (0.17.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -7,7 +7,7 @@
package org.openslx.bwlp.thrift.iface;
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
-@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.15.0)", date = "2021-12-17")
+@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.17.0)", date = "2022-11-03")
public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig, SatelliteConfig._Fields>, java.io.Serializable, Cloneable, Comparable<SatelliteConfig> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("SatelliteConfig");
@@ -22,6 +22,7 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig,
private static final org.apache.thrift.protocol.TField ALLOW_LOGIN_BY_DEFAULT_FIELD_DESC = new org.apache.thrift.protocol.TField("allowLoginByDefault", org.apache.thrift.protocol.TType.BOOL, (short)9);
private static final org.apache.thrift.protocol.TField SERVER_SIDE_COPY_FIELD_DESC = new org.apache.thrift.protocol.TField("serverSideCopy", org.apache.thrift.protocol.TType.I32, (short)10);
private static final org.apache.thrift.protocol.TField ALLOW_STUDENT_DOWNLOAD_FIELD_DESC = new org.apache.thrift.protocol.TField("allowStudentDownload", org.apache.thrift.protocol.TType.BOOL, (short)11);
+ private static final org.apache.thrift.protocol.TField VM_SIZE_LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("vmSizeLimit", org.apache.thrift.protocol.TType.I64, (short)12);
private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new SatelliteConfigStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new SatelliteConfigTupleSchemeFactory();
@@ -41,6 +42,7 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig,
*/
public @org.apache.thrift.annotation.Nullable SscMode serverSideCopy; // optional
public boolean allowStudentDownload; // optional
+ public long vmSizeLimit; // 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 {
@@ -58,7 +60,8 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig,
* @see SscMode
*/
SERVER_SIDE_COPY((short)10, "serverSideCopy"),
- ALLOW_STUDENT_DOWNLOAD((short)11, "allowStudentDownload");
+ ALLOW_STUDENT_DOWNLOAD((short)11, "allowStudentDownload"),
+ VM_SIZE_LIMIT((short)12, "vmSizeLimit");
private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
@@ -96,6 +99,8 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig,
return SERVER_SIDE_COPY;
case 11: // ALLOW_STUDENT_DOWNLOAD
return ALLOW_STUDENT_DOWNLOAD;
+ case 12: // VM_SIZE_LIMIT
+ return VM_SIZE_LIMIT;
default:
return null;
}
@@ -127,10 +132,12 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig,
_fieldName = fieldName;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
+ @Override
public java.lang.String getFieldName() {
return _fieldName;
}
@@ -145,8 +152,9 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig,
private static final int __MAXLOCATIONSPERLECTURE_ISSET_ID = 5;
private static final int __ALLOWLOGINBYDEFAULT_ISSET_ID = 6;
private static final int __ALLOWSTUDENTDOWNLOAD_ISSET_ID = 7;
- private byte __isset_bitfield = 0;
- private static final _Fields optionals[] = {_Fields.MAX_TRANSFERS,_Fields.MAX_CONNECTIONS_PER_TRANSFER,_Fields.MAX_LOCATIONS_PER_LECTURE,_Fields.ALLOW_LOGIN_BY_DEFAULT,_Fields.SERVER_SIDE_COPY,_Fields.ALLOW_STUDENT_DOWNLOAD};
+ private static final int __VMSIZELIMIT_ISSET_ID = 8;
+ private short __isset_bitfield = 0;
+ private static final _Fields optionals[] = {_Fields.MAX_TRANSFERS,_Fields.MAX_CONNECTIONS_PER_TRANSFER,_Fields.MAX_LOCATIONS_PER_LECTURE,_Fields.ALLOW_LOGIN_BY_DEFAULT,_Fields.SERVER_SIDE_COPY,_Fields.ALLOW_STUDENT_DOWNLOAD,_Fields.VM_SIZE_LIMIT};
public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
@@ -172,6 +180,8 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig,
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, SscMode.class)));
tmpMap.put(_Fields.ALLOW_STUDENT_DOWNLOAD, new org.apache.thrift.meta_data.FieldMetaData("allowStudentDownload", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
+ tmpMap.put(_Fields.VM_SIZE_LIMIT, new org.apache.thrift.meta_data.FieldMetaData("vmSizeLimit", org.apache.thrift.TFieldRequirementType.OPTIONAL,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(SatelliteConfig.class, metaDataMap);
}
@@ -219,8 +229,10 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig,
this.serverSideCopy = other.serverSideCopy;
}
this.allowStudentDownload = other.allowStudentDownload;
+ this.vmSizeLimit = other.vmSizeLimit;
}
+ @Override
public SatelliteConfig deepCopy() {
return new SatelliteConfig(this);
}
@@ -246,6 +258,8 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig,
this.serverSideCopy = null;
setAllowStudentDownloadIsSet(false);
this.allowStudentDownload = false;
+ setVmSizeLimitIsSet(false);
+ this.vmSizeLimit = 0;
}
public int getPageSize() {
@@ -515,6 +529,30 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig,
__isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __ALLOWSTUDENTDOWNLOAD_ISSET_ID, value);
}
+ public long getVmSizeLimit() {
+ return this.vmSizeLimit;
+ }
+
+ public SatelliteConfig setVmSizeLimit(long vmSizeLimit) {
+ this.vmSizeLimit = vmSizeLimit;
+ setVmSizeLimitIsSet(true);
+ return this;
+ }
+
+ public void unsetVmSizeLimit() {
+ __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __VMSIZELIMIT_ISSET_ID);
+ }
+
+ /** Returns true if field vmSizeLimit is set (has been assigned a value) and false otherwise */
+ public boolean isSetVmSizeLimit() {
+ return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __VMSIZELIMIT_ISSET_ID);
+ }
+
+ public void setVmSizeLimitIsSet(boolean value) {
+ __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __VMSIZELIMIT_ISSET_ID, value);
+ }
+
+ @Override
public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case PAGE_SIZE:
@@ -605,10 +643,19 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig,
}
break;
+ case VM_SIZE_LIMIT:
+ if (value == null) {
+ unsetVmSizeLimit();
+ } else {
+ setVmSizeLimit((java.lang.Long)value);
+ }
+ break;
+
}
}
@org.apache.thrift.annotation.Nullable
+ @Override
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case PAGE_SIZE:
@@ -644,11 +691,15 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig,
case ALLOW_STUDENT_DOWNLOAD:
return isAllowStudentDownload();
+ case VM_SIZE_LIMIT:
+ return getVmSizeLimit();
+
}
throw new java.lang.IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
throw new java.lang.IllegalArgumentException();
@@ -677,6 +728,8 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig,
return isSetServerSideCopy();
case ALLOW_STUDENT_DOWNLOAD:
return isSetAllowStudentDownload();
+ case VM_SIZE_LIMIT:
+ return isSetVmSizeLimit();
}
throw new java.lang.IllegalStateException();
}
@@ -793,6 +846,15 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig,
return false;
}
+ boolean this_present_vmSizeLimit = true && this.isSetVmSizeLimit();
+ boolean that_present_vmSizeLimit = true && that.isSetVmSizeLimit();
+ if (this_present_vmSizeLimit || that_present_vmSizeLimit) {
+ if (!(this_present_vmSizeLimit && that_present_vmSizeLimit))
+ return false;
+ if (this.vmSizeLimit != that.vmSizeLimit)
+ return false;
+ }
+
return true;
}
@@ -838,6 +900,10 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig,
if (isSetAllowStudentDownload())
hashCode = hashCode * 8191 + ((allowStudentDownload) ? 131071 : 524287);
+ hashCode = hashCode * 8191 + ((isSetVmSizeLimit()) ? 131071 : 524287);
+ if (isSetVmSizeLimit())
+ hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(vmSizeLimit);
+
return hashCode;
}
@@ -959,18 +1025,31 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig,
return lastComparison;
}
}
+ lastComparison = java.lang.Boolean.compare(isSetVmSizeLimit(), other.isSetVmSizeLimit());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetVmSizeLimit()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vmSizeLimit, other.vmSizeLimit);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
return 0;
}
@org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@@ -1047,6 +1126,12 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig,
sb.append(this.allowStudentDownload);
first = false;
}
+ if (isSetVmSizeLimit()) {
+ if (!first) sb.append(", ");
+ sb.append("vmSizeLimit:");
+ sb.append(this.vmSizeLimit);
+ first = false;
+ }
sb.append(")");
return sb.toString();
}
@@ -1081,6 +1166,7 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig,
}
private static class SatelliteConfigStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public SatelliteConfigStandardScheme getScheme() {
return new SatelliteConfigStandardScheme();
}
@@ -1088,6 +1174,7 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig,
private static class SatelliteConfigStandardScheme extends org.apache.thrift.scheme.StandardScheme<SatelliteConfig> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, SatelliteConfig struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -1188,6 +1275,14 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig,
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
+ case 12: // VM_SIZE_LIMIT
+ if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
+ struct.vmSizeLimit = iprot.readI64();
+ struct.setVmSizeLimitIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
@@ -1199,6 +1294,7 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig,
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, SatelliteConfig struct) throws org.apache.thrift.TException {
struct.validate();
@@ -1254,6 +1350,11 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig,
oprot.writeBool(struct.allowStudentDownload);
oprot.writeFieldEnd();
}
+ if (struct.isSetVmSizeLimit()) {
+ oprot.writeFieldBegin(VM_SIZE_LIMIT_FIELD_DESC);
+ oprot.writeI64(struct.vmSizeLimit);
+ oprot.writeFieldEnd();
+ }
oprot.writeFieldStop();
oprot.writeStructEnd();
}
@@ -1261,6 +1362,7 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig,
}
private static class SatelliteConfigTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public SatelliteConfigTupleScheme getScheme() {
return new SatelliteConfigTupleScheme();
}
@@ -1305,7 +1407,10 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig,
if (struct.isSetAllowStudentDownload()) {
optionals.set(10);
}
- oprot.writeBitSet(optionals, 11);
+ if (struct.isSetVmSizeLimit()) {
+ optionals.set(11);
+ }
+ oprot.writeBitSet(optionals, 12);
if (struct.isSetPageSize()) {
oprot.writeI32(struct.pageSize);
}
@@ -1339,12 +1444,15 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig,
if (struct.isSetAllowStudentDownload()) {
oprot.writeBool(struct.allowStudentDownload);
}
+ if (struct.isSetVmSizeLimit()) {
+ oprot.writeI64(struct.vmSizeLimit);
+ }
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, SatelliteConfig struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
- java.util.BitSet incoming = iprot.readBitSet(11);
+ java.util.BitSet incoming = iprot.readBitSet(12);
if (incoming.get(0)) {
struct.pageSize = iprot.readI32();
struct.setPageSizeIsSet(true);
@@ -1391,6 +1499,10 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig,
struct.allowStudentDownload = iprot.readBool();
struct.setAllowStudentDownloadIsSet(true);
}
+ if (incoming.get(11)) {
+ struct.vmSizeLimit = iprot.readI64();
+ struct.setVmSizeLimitIsSet(true);
+ }
}
}