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>
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 class
TabletServerStatus._Fields
The 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>
bulkImports
long
dataCacheHits
long
dataCacheRequest
long
flushs
long
holdTime
long
indexCacheHits
long
indexCacheRequest
long
lastContact
List<RecoveryStatus>
logSorts
long
lookups
static Map<TabletServerStatus._Fields,org.apache.thrift.meta_data.FieldMetaData>
metaDataMap
String
name
double
osLoad
long
responseTime
long
syncs
Map<String,TableInfo>
tableMap
-
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, long responseTime)
TabletServerStatus(TabletServerStatus other)
Performs a deep copy on other.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addToBulkImports(BulkImportStatus elem)
void
addToLogSorts(RecoveryStatus elem)
void
clear()
int
compareTo(TabletServerStatus other)
TabletServerStatus
deepCopy()
boolean
equals(Object that)
boolean
equals(TabletServerStatus that)
TabletServerStatus._Fields
fieldForId(int fieldId)
List<BulkImportStatus>
getBulkImports()
Iterator<BulkImportStatus>
getBulkImportsIterator()
int
getBulkImportsSize()
long
getDataCacheHits()
long
getDataCacheRequest()
Object
getFieldValue(TabletServerStatus._Fields field)
long
getFlushs()
long
getHoldTime()
long
getIndexCacheHits()
long
getIndexCacheRequest()
long
getLastContact()
List<RecoveryStatus>
getLogSorts()
Iterator<RecoveryStatus>
getLogSortsIterator()
int
getLogSortsSize()
long
getLookups()
String
getName()
double
getOsLoad()
long
getResponseTime()
long
getSyncs()
Map<String,TableInfo>
getTableMap()
int
getTableMapSize()
int
hashCode()
boolean
isSet(TabletServerStatus._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwiseboolean
isSetBulkImports()
Returns true if field bulkImports is set (has been assigned a value) and false otherwiseboolean
isSetDataCacheHits()
Returns true if field dataCacheHits is set (has been assigned a value) and false otherwiseboolean
isSetDataCacheRequest()
Returns true if field dataCacheRequest is set (has been assigned a value) and false otherwiseboolean
isSetFlushs()
Returns true if field flushs is set (has been assigned a value) and false otherwiseboolean
isSetHoldTime()
Returns true if field holdTime is set (has been assigned a value) and false otherwiseboolean
isSetIndexCacheHits()
Returns true if field indexCacheHits is set (has been assigned a value) and false otherwiseboolean
isSetIndexCacheRequest()
Returns true if field indexCacheRequest is set (has been assigned a value) and false otherwiseboolean
isSetLastContact()
Returns true if field lastContact is set (has been assigned a value) and false otherwiseboolean
isSetLogSorts()
Returns true if field logSorts is set (has been assigned a value) and false otherwiseboolean
isSetLookups()
Returns true if field lookups is set (has been assigned a value) and false otherwiseboolean
isSetName()
Returns true if field name is set (has been assigned a value) and false otherwiseboolean
isSetOsLoad()
Returns true if field osLoad is set (has been assigned a value) and false otherwiseboolean
isSetResponseTime()
Returns true if field responseTime is set (has been assigned a value) and false otherwiseboolean
isSetSyncs()
Returns true if field syncs is set (has been assigned a value) and false otherwiseboolean
isSetTableMap()
Returns true if field tableMap is set (has been assigned a value) and false otherwisevoid
putToTableMap(String key, TableInfo val)
void
read(org.apache.thrift.protocol.TProtocol iprot)
TabletServerStatus
setBulkImports(List<BulkImportStatus> bulkImports)
void
setBulkImportsIsSet(boolean value)
TabletServerStatus
setDataCacheHits(long dataCacheHits)
void
setDataCacheHitsIsSet(boolean value)
TabletServerStatus
setDataCacheRequest(long dataCacheRequest)
void
setDataCacheRequestIsSet(boolean value)
void
setFieldValue(TabletServerStatus._Fields field, Object value)
TabletServerStatus
setFlushs(long flushs)
void
setFlushsIsSet(boolean value)
TabletServerStatus
setHoldTime(long holdTime)
void
setHoldTimeIsSet(boolean value)
TabletServerStatus
setIndexCacheHits(long indexCacheHits)
void
setIndexCacheHitsIsSet(boolean value)
TabletServerStatus
setIndexCacheRequest(long indexCacheRequest)
void
setIndexCacheRequestIsSet(boolean value)
TabletServerStatus
setLastContact(long lastContact)
void
setLastContactIsSet(boolean value)
TabletServerStatus
setLogSorts(List<RecoveryStatus> logSorts)
void
setLogSortsIsSet(boolean value)
TabletServerStatus
setLookups(long lookups)
void
setLookupsIsSet(boolean value)
TabletServerStatus
setName(String name)
void
setNameIsSet(boolean value)
TabletServerStatus
setOsLoad(double osLoad)
void
setOsLoadIsSet(boolean value)
TabletServerStatus
setResponseTime(long responseTime)
void
setResponseTimeIsSet(boolean value)
TabletServerStatus
setSyncs(long syncs)
void
setSyncsIsSet(boolean value)
TabletServerStatus
setTableMap(Map<String,TableInfo> tableMap)
void
setTableMapIsSet(boolean value)
String
toString()
void
unsetBulkImports()
void
unsetDataCacheHits()
void
unsetDataCacheRequest()
void
unsetFlushs()
void
unsetHoldTime()
void
unsetIndexCacheHits()
void
unsetIndexCacheRequest()
void
unsetLastContact()
void
unsetLogSorts()
void
unsetLookups()
void
unsetName()
void
unsetOsLoad()
void
unsetResponseTime()
void
unsetSyncs()
void
unsetTableMap()
void
validate()
void
write(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
-
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, long responseTime)
-
TabletServerStatus
public TabletServerStatus(TabletServerStatus other)
Performs a deep copy on other.
-
-
Method Detail
-
deepCopy
public TabletServerStatus deepCopy()
- Specified by:
deepCopy
in interfaceorg.apache.thrift.TBase<TabletServerStatus,TabletServerStatus._Fields>
-
clear
public void clear()
- Specified by:
clear
in 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)
-
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:
setFieldValue
in interfaceorg.apache.thrift.TBase<TabletServerStatus,TabletServerStatus._Fields>
-
getFieldValue
public Object getFieldValue(TabletServerStatus._Fields field)
- Specified by:
getFieldValue
in 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:
isSet
in interfaceorg.apache.thrift.TBase<TabletServerStatus,TabletServerStatus._Fields>
-
equals
public boolean equals(TabletServerStatus that)
-
compareTo
public int compareTo(TabletServerStatus other)
- Specified by:
compareTo
in interfaceComparable<TabletServerStatus>
-
fieldForId
public TabletServerStatus._Fields fieldForId(int fieldId)
- Specified by:
fieldForId
in interfaceorg.apache.thrift.TBase<TabletServerStatus,TabletServerStatus._Fields>
-
read
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
- Specified by:
read
in interfaceorg.apache.thrift.TBase<TabletServerStatus,TabletServerStatus._Fields>
- Throws:
org.apache.thrift.TException
-
write
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException
- Specified by:
write
in interfaceorg.apache.thrift.TBase<TabletServerStatus,TabletServerStatus._Fields>
- Throws:
org.apache.thrift.TException
-
validate
public void validate() throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
-