Class TLoadSample
java.lang.Object
org.apache.iotdb.common.rpc.thrift.TLoadSample
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<TLoadSample>,org.apache.thrift.TBase<TLoadSample,,TLoadSample._Fields> org.apache.thrift.TSerializable
@Generated(value="Autogenerated by Thrift Compiler (0.14.1)",
date="2025-09-08")
public class TLoadSample
extends Object
implements org.apache.thrift.TBase<TLoadSample,TLoadSample._Fields>, Serializable, Cloneable, Comparable<TLoadSample>
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe set of fields this struct contains, along with convenience methods for finding and manipulating them. -
Field Summary
FieldsModifier and TypeFieldDescriptiondoubledoubledoubledoublestatic final Map<TLoadSample._Fields,org.apache.thrift.meta_data.FieldMetaData> -
Constructor Summary
ConstructorsConstructorDescriptionTLoadSample(double cpuUsageRate, double memoryUsageRate, double diskUsageRate, double freeDiskSpace) TLoadSample(TLoadSample other) Performs a deep copy on other. -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()intcompareTo(TLoadSample other) deepCopy()booleanbooleanequals(TLoadSample that) fieldForId(int fieldId) doubledoublegetFieldValue(TLoadSample._Fields field) doubledoubleinthashCode()booleanisSet(TLoadSample._Fields field) Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanReturns true if field cpuUsageRate is set (has been assigned a value) and false otherwisebooleanReturns true if field diskUsageRate is set (has been assigned a value) and false otherwisebooleanReturns true if field freeDiskSpace is set (has been assigned a value) and false otherwisebooleanReturns true if field memoryUsageRate is set (has been assigned a value) and false otherwisevoidread(org.apache.thrift.protocol.TProtocol iprot) setCpuUsageRate(double cpuUsageRate) voidsetCpuUsageRateIsSet(boolean value) setDiskUsageRate(double diskUsageRate) voidsetDiskUsageRateIsSet(boolean value) voidsetFieldValue(TLoadSample._Fields field, Object value) setFreeDiskSpace(double freeDiskSpace) voidsetFreeDiskSpaceIsSet(boolean value) setMemoryUsageRate(double memoryUsageRate) voidsetMemoryUsageRateIsSet(boolean value) toString()voidvoidvoidvoidvoidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
Field Details
-
cpuUsageRate
public double cpuUsageRate -
memoryUsageRate
public double memoryUsageRate -
diskUsageRate
public double diskUsageRate -
freeDiskSpace
public double freeDiskSpace -
metaDataMap
-
-
Constructor Details
-
TLoadSample
public TLoadSample() -
TLoadSample
public TLoadSample(double cpuUsageRate, double memoryUsageRate, double diskUsageRate, double freeDiskSpace) -
TLoadSample
Performs a deep copy on other.
-
-
Method Details
-
deepCopy
- Specified by:
deepCopyin interfaceorg.apache.thrift.TBase<TLoadSample,TLoadSample._Fields>
-
clear
public void clear()- Specified by:
clearin interfaceorg.apache.thrift.TBase<TLoadSample,TLoadSample._Fields>
-
getCpuUsageRate
public double getCpuUsageRate() -
setCpuUsageRate
-
unsetCpuUsageRate
public void unsetCpuUsageRate() -
isSetCpuUsageRate
public boolean isSetCpuUsageRate()Returns true if field cpuUsageRate is set (has been assigned a value) and false otherwise -
setCpuUsageRateIsSet
public void setCpuUsageRateIsSet(boolean value) -
getMemoryUsageRate
public double getMemoryUsageRate() -
setMemoryUsageRate
-
unsetMemoryUsageRate
public void unsetMemoryUsageRate() -
isSetMemoryUsageRate
public boolean isSetMemoryUsageRate()Returns true if field memoryUsageRate is set (has been assigned a value) and false otherwise -
setMemoryUsageRateIsSet
public void setMemoryUsageRateIsSet(boolean value) -
getDiskUsageRate
public double getDiskUsageRate() -
setDiskUsageRate
-
unsetDiskUsageRate
public void unsetDiskUsageRate() -
isSetDiskUsageRate
public boolean isSetDiskUsageRate()Returns true if field diskUsageRate is set (has been assigned a value) and false otherwise -
setDiskUsageRateIsSet
public void setDiskUsageRateIsSet(boolean value) -
getFreeDiskSpace
public double getFreeDiskSpace() -
setFreeDiskSpace
-
unsetFreeDiskSpace
public void unsetFreeDiskSpace() -
isSetFreeDiskSpace
public boolean isSetFreeDiskSpace()Returns true if field freeDiskSpace is set (has been assigned a value) and false otherwise -
setFreeDiskSpaceIsSet
public void setFreeDiskSpaceIsSet(boolean value) -
setFieldValue
- Specified by:
setFieldValuein interfaceorg.apache.thrift.TBase<TLoadSample,TLoadSample._Fields>
-
getFieldValue
- Specified by:
getFieldValuein interfaceorg.apache.thrift.TBase<TLoadSample,TLoadSample._Fields>
-
isSet
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise- Specified by:
isSetin interfaceorg.apache.thrift.TBase<TLoadSample,TLoadSample._Fields>
-
equals
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<TLoadSample>
-
fieldForId
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<TLoadSample,TLoadSample._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
-
toString
-
validate
public void validate() throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-