Package ai.heavy.thrift.server
Class TNodeMemoryInfo
- java.lang.Object
-
- ai.heavy.thrift.server.TNodeMemoryInfo
-
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<TNodeMemoryInfo>,org.apache.thrift.TBase<TNodeMemoryInfo,TNodeMemoryInfo._Fields>,org.apache.thrift.TSerializable
public class TNodeMemoryInfo extends Object implements org.apache.thrift.TBase<TNodeMemoryInfo,TNodeMemoryInfo._Fields>, Serializable, Cloneable, Comparable<TNodeMemoryInfo>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTNodeMemoryInfo._FieldsThe set of fields this struct contains, along with convenience methods for finding and manipulating them.
-
Field Summary
Fields Modifier and Type Field Description Stringhost_namebooleanis_allocation_cappedlongmax_num_pagesstatic Map<TNodeMemoryInfo._Fields,org.apache.thrift.meta_data.FieldMetaData>metaDataMapList<TMemoryData>node_memory_datalongnum_pages_allocatedlongpage_size
-
Constructor Summary
Constructors Constructor Description TNodeMemoryInfo()TNodeMemoryInfo(TNodeMemoryInfo other)Performs a deep copy on other.TNodeMemoryInfo(String host_name, long page_size, long max_num_pages, long num_pages_allocated, boolean is_allocation_capped, List<TMemoryData> node_memory_data)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddToNode_memory_data(TMemoryData elem)voidclear()intcompareTo(TNodeMemoryInfo other)TNodeMemoryInfodeepCopy()booleanequals(TNodeMemoryInfo that)booleanequals(Object that)TNodeMemoryInfo._FieldsfieldForId(int fieldId)ObjectgetFieldValue(TNodeMemoryInfo._Fields field)StringgetHost_name()longgetMax_num_pages()List<TMemoryData>getNode_memory_data()Iterator<TMemoryData>getNode_memory_dataIterator()intgetNode_memory_dataSize()longgetNum_pages_allocated()longgetPage_size()inthashCode()booleanisIs_allocation_capped()booleanisSet(TNodeMemoryInfo._Fields field)Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanisSetHost_name()Returns true if field host_name is set (has been assigned a value) and false otherwisebooleanisSetIs_allocation_capped()Returns true if field is_allocation_capped is set (has been assigned a value) and false otherwisebooleanisSetMax_num_pages()Returns true if field max_num_pages is set (has been assigned a value) and false otherwisebooleanisSetNode_memory_data()Returns true if field node_memory_data is set (has been assigned a value) and false otherwisebooleanisSetNum_pages_allocated()Returns true if field num_pages_allocated is set (has been assigned a value) and false otherwisebooleanisSetPage_size()Returns true if field page_size is set (has been assigned a value) and false otherwisevoidread(org.apache.thrift.protocol.TProtocol iprot)voidsetFieldValue(TNodeMemoryInfo._Fields field, Object value)TNodeMemoryInfosetHost_name(String host_name)voidsetHost_nameIsSet(boolean value)TNodeMemoryInfosetIs_allocation_capped(boolean is_allocation_capped)voidsetIs_allocation_cappedIsSet(boolean value)TNodeMemoryInfosetMax_num_pages(long max_num_pages)voidsetMax_num_pagesIsSet(boolean value)TNodeMemoryInfosetNode_memory_data(List<TMemoryData> node_memory_data)voidsetNode_memory_dataIsSet(boolean value)TNodeMemoryInfosetNum_pages_allocated(long num_pages_allocated)voidsetNum_pages_allocatedIsSet(boolean value)TNodeMemoryInfosetPage_size(long page_size)voidsetPage_sizeIsSet(boolean value)StringtoString()voidunsetHost_name()voidunsetIs_allocation_capped()voidunsetMax_num_pages()voidunsetNode_memory_data()voidunsetNum_pages_allocated()voidunsetPage_size()voidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
-
-
Field Detail
-
host_name
public String host_name
-
page_size
public long page_size
-
max_num_pages
public long max_num_pages
-
num_pages_allocated
public long num_pages_allocated
-
is_allocation_capped
public boolean is_allocation_capped
-
node_memory_data
public List<TMemoryData> node_memory_data
-
metaDataMap
public static final Map<TNodeMemoryInfo._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
-
-
Constructor Detail
-
TNodeMemoryInfo
public TNodeMemoryInfo()
-
TNodeMemoryInfo
public TNodeMemoryInfo(String host_name, long page_size, long max_num_pages, long num_pages_allocated, boolean is_allocation_capped, List<TMemoryData> node_memory_data)
-
TNodeMemoryInfo
public TNodeMemoryInfo(TNodeMemoryInfo other)
Performs a deep copy on other.
-
-
Method Detail
-
deepCopy
public TNodeMemoryInfo deepCopy()
- Specified by:
deepCopyin interfaceorg.apache.thrift.TBase<TNodeMemoryInfo,TNodeMemoryInfo._Fields>
-
clear
public void clear()
- Specified by:
clearin interfaceorg.apache.thrift.TBase<TNodeMemoryInfo,TNodeMemoryInfo._Fields>
-
getHost_name
public String getHost_name()
-
setHost_name
public TNodeMemoryInfo setHost_name(String host_name)
-
unsetHost_name
public void unsetHost_name()
-
isSetHost_name
public boolean isSetHost_name()
Returns true if field host_name is set (has been assigned a value) and false otherwise
-
setHost_nameIsSet
public void setHost_nameIsSet(boolean value)
-
getPage_size
public long getPage_size()
-
setPage_size
public TNodeMemoryInfo setPage_size(long page_size)
-
unsetPage_size
public void unsetPage_size()
-
isSetPage_size
public boolean isSetPage_size()
Returns true if field page_size is set (has been assigned a value) and false otherwise
-
setPage_sizeIsSet
public void setPage_sizeIsSet(boolean value)
-
getMax_num_pages
public long getMax_num_pages()
-
setMax_num_pages
public TNodeMemoryInfo setMax_num_pages(long max_num_pages)
-
unsetMax_num_pages
public void unsetMax_num_pages()
-
isSetMax_num_pages
public boolean isSetMax_num_pages()
Returns true if field max_num_pages is set (has been assigned a value) and false otherwise
-
setMax_num_pagesIsSet
public void setMax_num_pagesIsSet(boolean value)
-
getNum_pages_allocated
public long getNum_pages_allocated()
-
setNum_pages_allocated
public TNodeMemoryInfo setNum_pages_allocated(long num_pages_allocated)
-
unsetNum_pages_allocated
public void unsetNum_pages_allocated()
-
isSetNum_pages_allocated
public boolean isSetNum_pages_allocated()
Returns true if field num_pages_allocated is set (has been assigned a value) and false otherwise
-
setNum_pages_allocatedIsSet
public void setNum_pages_allocatedIsSet(boolean value)
-
isIs_allocation_capped
public boolean isIs_allocation_capped()
-
setIs_allocation_capped
public TNodeMemoryInfo setIs_allocation_capped(boolean is_allocation_capped)
-
unsetIs_allocation_capped
public void unsetIs_allocation_capped()
-
isSetIs_allocation_capped
public boolean isSetIs_allocation_capped()
Returns true if field is_allocation_capped is set (has been assigned a value) and false otherwise
-
setIs_allocation_cappedIsSet
public void setIs_allocation_cappedIsSet(boolean value)
-
getNode_memory_dataSize
public int getNode_memory_dataSize()
-
getNode_memory_dataIterator
public Iterator<TMemoryData> getNode_memory_dataIterator()
-
addToNode_memory_data
public void addToNode_memory_data(TMemoryData elem)
-
getNode_memory_data
public List<TMemoryData> getNode_memory_data()
-
setNode_memory_data
public TNodeMemoryInfo setNode_memory_data(List<TMemoryData> node_memory_data)
-
unsetNode_memory_data
public void unsetNode_memory_data()
-
isSetNode_memory_data
public boolean isSetNode_memory_data()
Returns true if field node_memory_data is set (has been assigned a value) and false otherwise
-
setNode_memory_dataIsSet
public void setNode_memory_dataIsSet(boolean value)
-
setFieldValue
public void setFieldValue(TNodeMemoryInfo._Fields field, Object value)
- Specified by:
setFieldValuein interfaceorg.apache.thrift.TBase<TNodeMemoryInfo,TNodeMemoryInfo._Fields>
-
getFieldValue
public Object getFieldValue(TNodeMemoryInfo._Fields field)
- Specified by:
getFieldValuein interfaceorg.apache.thrift.TBase<TNodeMemoryInfo,TNodeMemoryInfo._Fields>
-
isSet
public boolean isSet(TNodeMemoryInfo._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<TNodeMemoryInfo,TNodeMemoryInfo._Fields>
-
equals
public boolean equals(TNodeMemoryInfo that)
-
compareTo
public int compareTo(TNodeMemoryInfo other)
- Specified by:
compareToin interfaceComparable<TNodeMemoryInfo>
-
fieldForId
public TNodeMemoryInfo._Fields fieldForId(int fieldId)
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<TNodeMemoryInfo,TNodeMemoryInfo._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
-
-