Class TabletServerStatus
- java.lang.Object
-
- org.apache.accumulo.core.master.thrift.TabletServerStatus
-
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<TabletServerStatus>,org.apache.thrift.TBase<TabletServerStatus,TabletServerStatus._Fields>,org.apache.thrift.TSerializable
public class TabletServerStatus extends Object implements org.apache.thrift.TBase<TabletServerStatus,TabletServerStatus._Fields>, Serializable, Cloneable, Comparable<TabletServerStatus>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTabletServerStatus._FieldsThe set of fields this struct contains, along with convenience methods for finding and manipulating them.
-
Field Summary
Fields Modifier and Type Field Description List<BulkImportStatus>bulkImportslongdataCacheHitslongdataCacheRequestlongflushslongholdTimelongindexCacheHitslongindexCacheRequestlonglastContactList<RecoveryStatus>logSortslonglookupsstatic Map<TabletServerStatus._Fields,org.apache.thrift.meta_data.FieldMetaData>metaDataMapStringnamedoubleosLoadlongresponseTimelongsyncsMap<String,TableInfo>tableMapStringversion
-
Constructor Summary
Constructors Constructor Description TabletServerStatus()TabletServerStatus(Map<String,TableInfo> tableMap, long lastContact, String name, double osLoad, long holdTime, long lookups, long indexCacheHits, long indexCacheRequest, long dataCacheHits, long dataCacheRequest, List<RecoveryStatus> logSorts, long flushs, long syncs, List<BulkImportStatus> bulkImports, String version, long responseTime)TabletServerStatus(TabletServerStatus other)Performs a deep copy on other.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddToBulkImports(BulkImportStatus elem)voidaddToLogSorts(RecoveryStatus elem)voidclear()intcompareTo(TabletServerStatus other)TabletServerStatusdeepCopy()booleanequals(Object that)booleanequals(TabletServerStatus that)TabletServerStatus._FieldsfieldForId(int fieldId)List<BulkImportStatus>getBulkImports()Iterator<BulkImportStatus>getBulkImportsIterator()intgetBulkImportsSize()longgetDataCacheHits()longgetDataCacheRequest()ObjectgetFieldValue(TabletServerStatus._Fields field)longgetFlushs()longgetHoldTime()longgetIndexCacheHits()longgetIndexCacheRequest()longgetLastContact()List<RecoveryStatus>getLogSorts()Iterator<RecoveryStatus>getLogSortsIterator()intgetLogSortsSize()longgetLookups()StringgetName()doublegetOsLoad()longgetResponseTime()longgetSyncs()Map<String,TableInfo>getTableMap()intgetTableMapSize()StringgetVersion()inthashCode()booleanisSet(TabletServerStatus._Fields field)Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanisSetBulkImports()Returns true if field bulkImports is set (has been assigned a value) and false otherwisebooleanisSetDataCacheHits()Returns true if field dataCacheHits is set (has been assigned a value) and false otherwisebooleanisSetDataCacheRequest()Returns true if field dataCacheRequest is set (has been assigned a value) and false otherwisebooleanisSetFlushs()Returns true if field flushs is set (has been assigned a value) and false otherwisebooleanisSetHoldTime()Returns true if field holdTime is set (has been assigned a value) and false otherwisebooleanisSetIndexCacheHits()Returns true if field indexCacheHits is set (has been assigned a value) and false otherwisebooleanisSetIndexCacheRequest()Returns true if field indexCacheRequest is set (has been assigned a value) and false otherwisebooleanisSetLastContact()Returns true if field lastContact is set (has been assigned a value) and false otherwisebooleanisSetLogSorts()Returns true if field logSorts is set (has been assigned a value) and false otherwisebooleanisSetLookups()Returns true if field lookups is set (has been assigned a value) and false otherwisebooleanisSetName()Returns true if field name is set (has been assigned a value) and false otherwisebooleanisSetOsLoad()Returns true if field osLoad is set (has been assigned a value) and false otherwisebooleanisSetResponseTime()Returns true if field responseTime is set (has been assigned a value) and false otherwisebooleanisSetSyncs()Returns true if field syncs is set (has been assigned a value) and false otherwisebooleanisSetTableMap()Returns true if field tableMap is set (has been assigned a value) and false otherwisebooleanisSetVersion()Returns true if field version is set (has been assigned a value) and false otherwisevoidputToTableMap(String key, TableInfo val)voidread(org.apache.thrift.protocol.TProtocol iprot)TabletServerStatussetBulkImports(List<BulkImportStatus> bulkImports)voidsetBulkImportsIsSet(boolean value)TabletServerStatussetDataCacheHits(long dataCacheHits)voidsetDataCacheHitsIsSet(boolean value)TabletServerStatussetDataCacheRequest(long dataCacheRequest)voidsetDataCacheRequestIsSet(boolean value)voidsetFieldValue(TabletServerStatus._Fields field, Object value)TabletServerStatussetFlushs(long flushs)voidsetFlushsIsSet(boolean value)TabletServerStatussetHoldTime(long holdTime)voidsetHoldTimeIsSet(boolean value)TabletServerStatussetIndexCacheHits(long indexCacheHits)voidsetIndexCacheHitsIsSet(boolean value)TabletServerStatussetIndexCacheRequest(long indexCacheRequest)voidsetIndexCacheRequestIsSet(boolean value)TabletServerStatussetLastContact(long lastContact)voidsetLastContactIsSet(boolean value)TabletServerStatussetLogSorts(List<RecoveryStatus> logSorts)voidsetLogSortsIsSet(boolean value)TabletServerStatussetLookups(long lookups)voidsetLookupsIsSet(boolean value)TabletServerStatussetName(String name)voidsetNameIsSet(boolean value)TabletServerStatussetOsLoad(double osLoad)voidsetOsLoadIsSet(boolean value)TabletServerStatussetResponseTime(long responseTime)voidsetResponseTimeIsSet(boolean value)TabletServerStatussetSyncs(long syncs)voidsetSyncsIsSet(boolean value)TabletServerStatussetTableMap(Map<String,TableInfo> tableMap)voidsetTableMapIsSet(boolean value)TabletServerStatussetVersion(String version)voidsetVersionIsSet(boolean value)StringtoString()voidunsetBulkImports()voidunsetDataCacheHits()voidunsetDataCacheRequest()voidunsetFlushs()voidunsetHoldTime()voidunsetIndexCacheHits()voidunsetIndexCacheRequest()voidunsetLastContact()voidunsetLogSorts()voidunsetLookups()voidunsetName()voidunsetOsLoad()voidunsetResponseTime()voidunsetSyncs()voidunsetTableMap()voidunsetVersion()voidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
-
-
Field Detail
-
lastContact
public long lastContact
-
name
public String name
-
osLoad
public double osLoad
-
holdTime
public long holdTime
-
lookups
public long lookups
-
indexCacheHits
public long indexCacheHits
-
indexCacheRequest
public long indexCacheRequest
-
dataCacheHits
public long dataCacheHits
-
dataCacheRequest
public long dataCacheRequest
-
logSorts
public List<RecoveryStatus> logSorts
-
flushs
public long flushs
-
syncs
public long syncs
-
bulkImports
public List<BulkImportStatus> bulkImports
-
version
public String version
-
responseTime
public long responseTime
-
metaDataMap
public static final Map<TabletServerStatus._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
-
-
Constructor Detail
-
TabletServerStatus
public TabletServerStatus()
-
TabletServerStatus
public TabletServerStatus(Map<String,TableInfo> tableMap, long lastContact, String name, double osLoad, long holdTime, long lookups, long indexCacheHits, long indexCacheRequest, long dataCacheHits, long dataCacheRequest, List<RecoveryStatus> logSorts, long flushs, long syncs, List<BulkImportStatus> bulkImports, String version, long responseTime)
-
TabletServerStatus
public TabletServerStatus(TabletServerStatus other)
Performs a deep copy on other.
-
-
Method Detail
-
deepCopy
public TabletServerStatus deepCopy()
- Specified by:
deepCopyin interfaceorg.apache.thrift.TBase<TabletServerStatus,TabletServerStatus._Fields>
-
clear
public void clear()
- Specified by:
clearin interfaceorg.apache.thrift.TBase<TabletServerStatus,TabletServerStatus._Fields>
-
getTableMapSize
public int getTableMapSize()
-
setTableMap
public TabletServerStatus setTableMap(Map<String,TableInfo> tableMap)
-
unsetTableMap
public void unsetTableMap()
-
isSetTableMap
public boolean isSetTableMap()
Returns true if field tableMap is set (has been assigned a value) and false otherwise
-
setTableMapIsSet
public void setTableMapIsSet(boolean value)
-
getLastContact
public long getLastContact()
-
setLastContact
public TabletServerStatus setLastContact(long lastContact)
-
unsetLastContact
public void unsetLastContact()
-
isSetLastContact
public boolean isSetLastContact()
Returns true if field lastContact is set (has been assigned a value) and false otherwise
-
setLastContactIsSet
public void setLastContactIsSet(boolean value)
-
getName
public String getName()
-
setName
public TabletServerStatus setName(String name)
-
unsetName
public void unsetName()
-
isSetName
public boolean isSetName()
Returns true if field name is set (has been assigned a value) and false otherwise
-
setNameIsSet
public void setNameIsSet(boolean value)
-
getOsLoad
public double getOsLoad()
-
setOsLoad
public TabletServerStatus setOsLoad(double osLoad)
-
unsetOsLoad
public void unsetOsLoad()
-
isSetOsLoad
public boolean isSetOsLoad()
Returns true if field osLoad is set (has been assigned a value) and false otherwise
-
setOsLoadIsSet
public void setOsLoadIsSet(boolean value)
-
getHoldTime
public long getHoldTime()
-
setHoldTime
public TabletServerStatus setHoldTime(long holdTime)
-
unsetHoldTime
public void unsetHoldTime()
-
isSetHoldTime
public boolean isSetHoldTime()
Returns true if field holdTime is set (has been assigned a value) and false otherwise
-
setHoldTimeIsSet
public void setHoldTimeIsSet(boolean value)
-
getLookups
public long getLookups()
-
setLookups
public TabletServerStatus setLookups(long lookups)
-
unsetLookups
public void unsetLookups()
-
isSetLookups
public boolean isSetLookups()
Returns true if field lookups is set (has been assigned a value) and false otherwise
-
setLookupsIsSet
public void setLookupsIsSet(boolean value)
-
getIndexCacheHits
public long getIndexCacheHits()
-
setIndexCacheHits
public TabletServerStatus setIndexCacheHits(long indexCacheHits)
-
unsetIndexCacheHits
public void unsetIndexCacheHits()
-
isSetIndexCacheHits
public boolean isSetIndexCacheHits()
Returns true if field indexCacheHits is set (has been assigned a value) and false otherwise
-
setIndexCacheHitsIsSet
public void setIndexCacheHitsIsSet(boolean value)
-
getIndexCacheRequest
public long getIndexCacheRequest()
-
setIndexCacheRequest
public TabletServerStatus setIndexCacheRequest(long indexCacheRequest)
-
unsetIndexCacheRequest
public void unsetIndexCacheRequest()
-
isSetIndexCacheRequest
public boolean isSetIndexCacheRequest()
Returns true if field indexCacheRequest is set (has been assigned a value) and false otherwise
-
setIndexCacheRequestIsSet
public void setIndexCacheRequestIsSet(boolean value)
-
getDataCacheHits
public long getDataCacheHits()
-
setDataCacheHits
public TabletServerStatus setDataCacheHits(long dataCacheHits)
-
unsetDataCacheHits
public void unsetDataCacheHits()
-
isSetDataCacheHits
public boolean isSetDataCacheHits()
Returns true if field dataCacheHits is set (has been assigned a value) and false otherwise
-
setDataCacheHitsIsSet
public void setDataCacheHitsIsSet(boolean value)
-
getDataCacheRequest
public long getDataCacheRequest()
-
setDataCacheRequest
public TabletServerStatus setDataCacheRequest(long dataCacheRequest)
-
unsetDataCacheRequest
public void unsetDataCacheRequest()
-
isSetDataCacheRequest
public boolean isSetDataCacheRequest()
Returns true if field dataCacheRequest is set (has been assigned a value) and false otherwise
-
setDataCacheRequestIsSet
public void setDataCacheRequestIsSet(boolean value)
-
getLogSortsSize
public int getLogSortsSize()
-
getLogSortsIterator
public Iterator<RecoveryStatus> getLogSortsIterator()
-
addToLogSorts
public void addToLogSorts(RecoveryStatus elem)
-
getLogSorts
public List<RecoveryStatus> getLogSorts()
-
setLogSorts
public TabletServerStatus setLogSorts(List<RecoveryStatus> logSorts)
-
unsetLogSorts
public void unsetLogSorts()
-
isSetLogSorts
public boolean isSetLogSorts()
Returns true if field logSorts is set (has been assigned a value) and false otherwise
-
setLogSortsIsSet
public void setLogSortsIsSet(boolean value)
-
getFlushs
public long getFlushs()
-
setFlushs
public TabletServerStatus setFlushs(long flushs)
-
unsetFlushs
public void unsetFlushs()
-
isSetFlushs
public boolean isSetFlushs()
Returns true if field flushs is set (has been assigned a value) and false otherwise
-
setFlushsIsSet
public void setFlushsIsSet(boolean value)
-
getSyncs
public long getSyncs()
-
setSyncs
public TabletServerStatus setSyncs(long syncs)
-
unsetSyncs
public void unsetSyncs()
-
isSetSyncs
public boolean isSetSyncs()
Returns true if field syncs is set (has been assigned a value) and false otherwise
-
setSyncsIsSet
public void setSyncsIsSet(boolean value)
-
getBulkImportsSize
public int getBulkImportsSize()
-
getBulkImportsIterator
public Iterator<BulkImportStatus> getBulkImportsIterator()
-
addToBulkImports
public void addToBulkImports(BulkImportStatus elem)
-
getBulkImports
public List<BulkImportStatus> getBulkImports()
-
setBulkImports
public TabletServerStatus setBulkImports(List<BulkImportStatus> bulkImports)
-
unsetBulkImports
public void unsetBulkImports()
-
isSetBulkImports
public boolean isSetBulkImports()
Returns true if field bulkImports is set (has been assigned a value) and false otherwise
-
setBulkImportsIsSet
public void setBulkImportsIsSet(boolean value)
-
getVersion
public String getVersion()
-
setVersion
public TabletServerStatus setVersion(String version)
-
unsetVersion
public void unsetVersion()
-
isSetVersion
public boolean isSetVersion()
Returns true if field version is set (has been assigned a value) and false otherwise
-
setVersionIsSet
public void setVersionIsSet(boolean value)
-
getResponseTime
public long getResponseTime()
-
setResponseTime
public TabletServerStatus setResponseTime(long responseTime)
-
unsetResponseTime
public void unsetResponseTime()
-
isSetResponseTime
public boolean isSetResponseTime()
Returns true if field responseTime is set (has been assigned a value) and false otherwise
-
setResponseTimeIsSet
public void setResponseTimeIsSet(boolean value)
-
setFieldValue
public void setFieldValue(TabletServerStatus._Fields field, Object value)
- Specified by:
setFieldValuein interfaceorg.apache.thrift.TBase<TabletServerStatus,TabletServerStatus._Fields>
-
getFieldValue
public Object getFieldValue(TabletServerStatus._Fields field)
- Specified by:
getFieldValuein interfaceorg.apache.thrift.TBase<TabletServerStatus,TabletServerStatus._Fields>
-
isSet
public boolean isSet(TabletServerStatus._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<TabletServerStatus,TabletServerStatus._Fields>
-
equals
public boolean equals(TabletServerStatus that)
-
compareTo
public int compareTo(TabletServerStatus other)
- Specified by:
compareToin interfaceComparable<TabletServerStatus>
-
fieldForId
public TabletServerStatus._Fields fieldForId(int fieldId)
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<TabletServerStatus,TabletServerStatus._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
-
-