Class TLicense
- java.lang.Object
-
- org.apache.iotdb.common.rpc.thrift.TLicense
-
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<TLicense>,org.apache.thrift.TBase<TLicense,TLicense._Fields>,org.apache.thrift.TSerializable
@Generated(value="Autogenerated by Thrift Compiler (0.14.1)", date="2023-12-27") public class TLicense extends Object implements org.apache.thrift.TBase<TLicense,TLicense._Fields>, Serializable, Cloneable, Comparable<TLicense>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTLicense._FieldsThe set of fields this struct contains, along with convenience methods for finding and manipulating them.
-
Field Summary
Fields Modifier and Type Field Description intcpuCoreNumLimitshortdataNodeNumLimitlongdeviceNumLimitlongdisconnectionFromActiveNodeTimeLimitlongexpireTimestamplonglicenseIssueTimestampstatic Map<TLicense._Fields,org.apache.thrift.meta_data.FieldMetaData>metaDataMapshortmlNodeNumLimitlongsensorNumLimit
-
Constructor Summary
Constructors Constructor Description TLicense()TLicense(long licenseIssueTimestamp, long expireTimestamp, short dataNodeNumLimit, int cpuCoreNumLimit, long deviceNumLimit, long sensorNumLimit, long disconnectionFromActiveNodeTimeLimit, short mlNodeNumLimit)TLicense(TLicense other)Performs a deep copy on other.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()intcompareTo(TLicense other)TLicensedeepCopy()booleanequals(Object that)booleanequals(TLicense that)TLicense._FieldsfieldForId(int fieldId)intgetCpuCoreNumLimit()shortgetDataNodeNumLimit()longgetDeviceNumLimit()longgetDisconnectionFromActiveNodeTimeLimit()longgetExpireTimestamp()ObjectgetFieldValue(TLicense._Fields field)longgetLicenseIssueTimestamp()shortgetMlNodeNumLimit()longgetSensorNumLimit()inthashCode()booleanisSet(TLicense._Fields field)Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanisSetCpuCoreNumLimit()Returns true if field cpuCoreNumLimit is set (has been assigned a value) and false otherwisebooleanisSetDataNodeNumLimit()Returns true if field dataNodeNumLimit is set (has been assigned a value) and false otherwisebooleanisSetDeviceNumLimit()Returns true if field deviceNumLimit is set (has been assigned a value) and false otherwisebooleanisSetDisconnectionFromActiveNodeTimeLimit()Returns true if field disconnectionFromActiveNodeTimeLimit is set (has been assigned a value) and false otherwisebooleanisSetExpireTimestamp()Returns true if field expireTimestamp is set (has been assigned a value) and false otherwisebooleanisSetLicenseIssueTimestamp()Returns true if field licenseIssueTimestamp is set (has been assigned a value) and false otherwisebooleanisSetMlNodeNumLimit()Returns true if field mlNodeNumLimit is set (has been assigned a value) and false otherwisebooleanisSetSensorNumLimit()Returns true if field sensorNumLimit is set (has been assigned a value) and false otherwisevoidread(org.apache.thrift.protocol.TProtocol iprot)TLicensesetCpuCoreNumLimit(int cpuCoreNumLimit)voidsetCpuCoreNumLimitIsSet(boolean value)TLicensesetDataNodeNumLimit(short dataNodeNumLimit)voidsetDataNodeNumLimitIsSet(boolean value)TLicensesetDeviceNumLimit(long deviceNumLimit)voidsetDeviceNumLimitIsSet(boolean value)TLicensesetDisconnectionFromActiveNodeTimeLimit(long disconnectionFromActiveNodeTimeLimit)voidsetDisconnectionFromActiveNodeTimeLimitIsSet(boolean value)TLicensesetExpireTimestamp(long expireTimestamp)voidsetExpireTimestampIsSet(boolean value)voidsetFieldValue(TLicense._Fields field, Object value)TLicensesetLicenseIssueTimestamp(long licenseIssueTimestamp)voidsetLicenseIssueTimestampIsSet(boolean value)TLicensesetMlNodeNumLimit(short mlNodeNumLimit)voidsetMlNodeNumLimitIsSet(boolean value)TLicensesetSensorNumLimit(long sensorNumLimit)voidsetSensorNumLimitIsSet(boolean value)StringtoString()voidunsetCpuCoreNumLimit()voidunsetDataNodeNumLimit()voidunsetDeviceNumLimit()voidunsetDisconnectionFromActiveNodeTimeLimit()voidunsetExpireTimestamp()voidunsetLicenseIssueTimestamp()voidunsetMlNodeNumLimit()voidunsetSensorNumLimit()voidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
-
-
Field Detail
-
licenseIssueTimestamp
public long licenseIssueTimestamp
-
expireTimestamp
public long expireTimestamp
-
dataNodeNumLimit
public short dataNodeNumLimit
-
cpuCoreNumLimit
public int cpuCoreNumLimit
-
deviceNumLimit
public long deviceNumLimit
-
sensorNumLimit
public long sensorNumLimit
-
disconnectionFromActiveNodeTimeLimit
public long disconnectionFromActiveNodeTimeLimit
-
mlNodeNumLimit
public short mlNodeNumLimit
-
metaDataMap
public static final Map<TLicense._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
-
-
Constructor Detail
-
TLicense
public TLicense()
-
TLicense
public TLicense(long licenseIssueTimestamp, long expireTimestamp, short dataNodeNumLimit, int cpuCoreNumLimit, long deviceNumLimit, long sensorNumLimit, long disconnectionFromActiveNodeTimeLimit, short mlNodeNumLimit)
-
TLicense
public TLicense(TLicense other)
Performs a deep copy on other.
-
-
Method Detail
-
deepCopy
public TLicense deepCopy()
- Specified by:
deepCopyin interfaceorg.apache.thrift.TBase<TLicense,TLicense._Fields>
-
clear
public void clear()
- Specified by:
clearin interfaceorg.apache.thrift.TBase<TLicense,TLicense._Fields>
-
getLicenseIssueTimestamp
public long getLicenseIssueTimestamp()
-
setLicenseIssueTimestamp
public TLicense setLicenseIssueTimestamp(long licenseIssueTimestamp)
-
unsetLicenseIssueTimestamp
public void unsetLicenseIssueTimestamp()
-
isSetLicenseIssueTimestamp
public boolean isSetLicenseIssueTimestamp()
Returns true if field licenseIssueTimestamp is set (has been assigned a value) and false otherwise
-
setLicenseIssueTimestampIsSet
public void setLicenseIssueTimestampIsSet(boolean value)
-
getExpireTimestamp
public long getExpireTimestamp()
-
setExpireTimestamp
public TLicense setExpireTimestamp(long expireTimestamp)
-
unsetExpireTimestamp
public void unsetExpireTimestamp()
-
isSetExpireTimestamp
public boolean isSetExpireTimestamp()
Returns true if field expireTimestamp is set (has been assigned a value) and false otherwise
-
setExpireTimestampIsSet
public void setExpireTimestampIsSet(boolean value)
-
getDataNodeNumLimit
public short getDataNodeNumLimit()
-
setDataNodeNumLimit
public TLicense setDataNodeNumLimit(short dataNodeNumLimit)
-
unsetDataNodeNumLimit
public void unsetDataNodeNumLimit()
-
isSetDataNodeNumLimit
public boolean isSetDataNodeNumLimit()
Returns true if field dataNodeNumLimit is set (has been assigned a value) and false otherwise
-
setDataNodeNumLimitIsSet
public void setDataNodeNumLimitIsSet(boolean value)
-
getCpuCoreNumLimit
public int getCpuCoreNumLimit()
-
setCpuCoreNumLimit
public TLicense setCpuCoreNumLimit(int cpuCoreNumLimit)
-
unsetCpuCoreNumLimit
public void unsetCpuCoreNumLimit()
-
isSetCpuCoreNumLimit
public boolean isSetCpuCoreNumLimit()
Returns true if field cpuCoreNumLimit is set (has been assigned a value) and false otherwise
-
setCpuCoreNumLimitIsSet
public void setCpuCoreNumLimitIsSet(boolean value)
-
getDeviceNumLimit
public long getDeviceNumLimit()
-
setDeviceNumLimit
public TLicense setDeviceNumLimit(long deviceNumLimit)
-
unsetDeviceNumLimit
public void unsetDeviceNumLimit()
-
isSetDeviceNumLimit
public boolean isSetDeviceNumLimit()
Returns true if field deviceNumLimit is set (has been assigned a value) and false otherwise
-
setDeviceNumLimitIsSet
public void setDeviceNumLimitIsSet(boolean value)
-
getSensorNumLimit
public long getSensorNumLimit()
-
setSensorNumLimit
public TLicense setSensorNumLimit(long sensorNumLimit)
-
unsetSensorNumLimit
public void unsetSensorNumLimit()
-
isSetSensorNumLimit
public boolean isSetSensorNumLimit()
Returns true if field sensorNumLimit is set (has been assigned a value) and false otherwise
-
setSensorNumLimitIsSet
public void setSensorNumLimitIsSet(boolean value)
-
getDisconnectionFromActiveNodeTimeLimit
public long getDisconnectionFromActiveNodeTimeLimit()
-
setDisconnectionFromActiveNodeTimeLimit
public TLicense setDisconnectionFromActiveNodeTimeLimit(long disconnectionFromActiveNodeTimeLimit)
-
unsetDisconnectionFromActiveNodeTimeLimit
public void unsetDisconnectionFromActiveNodeTimeLimit()
-
isSetDisconnectionFromActiveNodeTimeLimit
public boolean isSetDisconnectionFromActiveNodeTimeLimit()
Returns true if field disconnectionFromActiveNodeTimeLimit is set (has been assigned a value) and false otherwise
-
setDisconnectionFromActiveNodeTimeLimitIsSet
public void setDisconnectionFromActiveNodeTimeLimitIsSet(boolean value)
-
getMlNodeNumLimit
public short getMlNodeNumLimit()
-
setMlNodeNumLimit
public TLicense setMlNodeNumLimit(short mlNodeNumLimit)
-
unsetMlNodeNumLimit
public void unsetMlNodeNumLimit()
-
isSetMlNodeNumLimit
public boolean isSetMlNodeNumLimit()
Returns true if field mlNodeNumLimit is set (has been assigned a value) and false otherwise
-
setMlNodeNumLimitIsSet
public void setMlNodeNumLimitIsSet(boolean value)
-
setFieldValue
public void setFieldValue(TLicense._Fields field, Object value)
- Specified by:
setFieldValuein interfaceorg.apache.thrift.TBase<TLicense,TLicense._Fields>
-
getFieldValue
public Object getFieldValue(TLicense._Fields field)
- Specified by:
getFieldValuein interfaceorg.apache.thrift.TBase<TLicense,TLicense._Fields>
-
isSet
public boolean isSet(TLicense._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise- Specified by:
isSetin interfaceorg.apache.thrift.TBase<TLicense,TLicense._Fields>
-
equals
public boolean equals(TLicense that)
-
compareTo
public int compareTo(TLicense other)
- Specified by:
compareToin interfaceComparable<TLicense>
-
fieldForId
public TLicense._Fields fieldForId(int fieldId)
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<TLicense,TLicense._Fields>
-
read
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException- Specified by:
readin interfaceorg.apache.thrift.TSerializable- Throws:
org.apache.thrift.TException
-
write
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException- Specified by:
writein interfaceorg.apache.thrift.TSerializable- Throws:
org.apache.thrift.TException
-
validate
public void validate() throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-
-