Class TThrottleQuota
- java.lang.Object
-
- org.apache.iotdb.common.rpc.thrift.TThrottleQuota
-
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<TThrottleQuota>,org.apache.thrift.TBase<TThrottleQuota,TThrottleQuota._Fields>,org.apache.thrift.TSerializable
@Generated(value="Autogenerated by Thrift Compiler (0.14.1)", date="2023-12-27") public class TThrottleQuota extends Object implements org.apache.thrift.TBase<TThrottleQuota,TThrottleQuota._Fields>, Serializable, Cloneable, Comparable<TThrottleQuota>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTThrottleQuota._FieldsThe set of fields this struct contains, along with convenience methods for finding and manipulating them.
-
Field Summary
Fields Modifier and Type Field Description intcpuLimitlongmemLimitstatic Map<TThrottleQuota._Fields,org.apache.thrift.meta_data.FieldMetaData>metaDataMapMap<ThrottleType,TTimedQuota>throttleLimit
-
Constructor Summary
Constructors Constructor Description TThrottleQuota()TThrottleQuota(TThrottleQuota other)Performs a deep copy on other.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()intcompareTo(TThrottleQuota other)TThrottleQuotadeepCopy()booleanequals(Object that)booleanequals(TThrottleQuota that)TThrottleQuota._FieldsfieldForId(int fieldId)intgetCpuLimit()ObjectgetFieldValue(TThrottleQuota._Fields field)longgetMemLimit()Map<ThrottleType,TTimedQuota>getThrottleLimit()intgetThrottleLimitSize()inthashCode()booleanisSet(TThrottleQuota._Fields field)Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanisSetCpuLimit()Returns true if field cpuLimit is set (has been assigned a value) and false otherwisebooleanisSetMemLimit()Returns true if field memLimit is set (has been assigned a value) and false otherwisebooleanisSetThrottleLimit()Returns true if field throttleLimit is set (has been assigned a value) and false otherwisevoidputToThrottleLimit(ThrottleType key, TTimedQuota val)voidread(org.apache.thrift.protocol.TProtocol iprot)TThrottleQuotasetCpuLimit(int cpuLimit)voidsetCpuLimitIsSet(boolean value)voidsetFieldValue(TThrottleQuota._Fields field, Object value)TThrottleQuotasetMemLimit(long memLimit)voidsetMemLimitIsSet(boolean value)TThrottleQuotasetThrottleLimit(Map<ThrottleType,TTimedQuota> throttleLimit)voidsetThrottleLimitIsSet(boolean value)StringtoString()voidunsetCpuLimit()voidunsetMemLimit()voidunsetThrottleLimit()voidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
-
-
Field Detail
-
throttleLimit
public Map<ThrottleType,TTimedQuota> throttleLimit
-
memLimit
public long memLimit
-
cpuLimit
public int cpuLimit
-
metaDataMap
public static final Map<TThrottleQuota._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
-
-
Constructor Detail
-
TThrottleQuota
public TThrottleQuota()
-
TThrottleQuota
public TThrottleQuota(TThrottleQuota other)
Performs a deep copy on other.
-
-
Method Detail
-
deepCopy
public TThrottleQuota deepCopy()
- Specified by:
deepCopyin interfaceorg.apache.thrift.TBase<TThrottleQuota,TThrottleQuota._Fields>
-
clear
public void clear()
- Specified by:
clearin interfaceorg.apache.thrift.TBase<TThrottleQuota,TThrottleQuota._Fields>
-
getThrottleLimitSize
public int getThrottleLimitSize()
-
putToThrottleLimit
public void putToThrottleLimit(ThrottleType key, TTimedQuota val)
-
getThrottleLimit
public Map<ThrottleType,TTimedQuota> getThrottleLimit()
-
setThrottleLimit
public TThrottleQuota setThrottleLimit(Map<ThrottleType,TTimedQuota> throttleLimit)
-
unsetThrottleLimit
public void unsetThrottleLimit()
-
isSetThrottleLimit
public boolean isSetThrottleLimit()
Returns true if field throttleLimit is set (has been assigned a value) and false otherwise
-
setThrottleLimitIsSet
public void setThrottleLimitIsSet(boolean value)
-
getMemLimit
public long getMemLimit()
-
setMemLimit
public TThrottleQuota setMemLimit(long memLimit)
-
unsetMemLimit
public void unsetMemLimit()
-
isSetMemLimit
public boolean isSetMemLimit()
Returns true if field memLimit is set (has been assigned a value) and false otherwise
-
setMemLimitIsSet
public void setMemLimitIsSet(boolean value)
-
getCpuLimit
public int getCpuLimit()
-
setCpuLimit
public TThrottleQuota setCpuLimit(int cpuLimit)
-
unsetCpuLimit
public void unsetCpuLimit()
-
isSetCpuLimit
public boolean isSetCpuLimit()
Returns true if field cpuLimit is set (has been assigned a value) and false otherwise
-
setCpuLimitIsSet
public void setCpuLimitIsSet(boolean value)
-
setFieldValue
public void setFieldValue(TThrottleQuota._Fields field, Object value)
- Specified by:
setFieldValuein interfaceorg.apache.thrift.TBase<TThrottleQuota,TThrottleQuota._Fields>
-
getFieldValue
public Object getFieldValue(TThrottleQuota._Fields field)
- Specified by:
getFieldValuein interfaceorg.apache.thrift.TBase<TThrottleQuota,TThrottleQuota._Fields>
-
isSet
public boolean isSet(TThrottleQuota._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<TThrottleQuota,TThrottleQuota._Fields>
-
equals
public boolean equals(TThrottleQuota that)
-
compareTo
public int compareTo(TThrottleQuota other)
- Specified by:
compareToin interfaceComparable<TThrottleQuota>
-
fieldForId
public TThrottleQuota._Fields fieldForId(int fieldId)
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<TThrottleQuota,TThrottleQuota._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
-
-