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="2025-09-08") public class TLicense extends Object implements org.apache.thrift.TBase<TLicense,TLicense._Fields>, Serializable, Cloneable, Comparable<TLicense>
See Also:
  • Field Details

    • 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 Details

    • 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 Details

    • deepCopy

      public TLicense deepCopy()
      Specified by:
      deepCopy in interface org.apache.thrift.TBase<TLicense,TLicense._Fields>
    • clear

      public void clear()
      Specified by:
      clear in interface org.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:
      setFieldValue in interface org.apache.thrift.TBase<TLicense,TLicense._Fields>
    • getFieldValue

      public Object getFieldValue(TLicense._Fields field)
      Specified by:
      getFieldValue in interface org.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:
      isSet in interface org.apache.thrift.TBase<TLicense,TLicense._Fields>
    • equals

      public boolean equals(Object that)
      Overrides:
      equals in class Object
    • equals

      public boolean equals(TLicense that)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • compareTo

      public int compareTo(TLicense other)
      Specified by:
      compareTo in interface Comparable<TLicense>
    • fieldForId

      public TLicense._Fields fieldForId(int fieldId)
      Specified by:
      fieldForId in interface org.apache.thrift.TBase<TLicense,TLicense._Fields>
    • read

      public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
      Specified by:
      read in interface org.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:
      write in interface org.apache.thrift.TSerializable
      Throws:
      org.apache.thrift.TException
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validate

      public void validate() throws org.apache.thrift.TException
      Throws:
      org.apache.thrift.TException