org.apache.accumulo.core.master.thrift
Class TabletServerStatus

java.lang.Object
  extended by 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

See Also:
Serialized Form

Nested Class Summary
static class TabletServerStatus._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
 long dataCacheHits
           
 long dataCacheRequest
           
 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
           
 Map<String,TableInfo> tableMap
           
 
Constructor Summary
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)
           
TabletServerStatus(TabletServerStatus other)
          Performs a deep copy on other.
 
Method Summary
 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)
           
 long getDataCacheHits()
           
 long getDataCacheRequest()
           
 Object getFieldValue(TabletServerStatus._Fields field)
           
 long getHoldTime()
           
 long getIndexCacheHits()
           
 long getIndexCacheRequest()
           
 long getLastContact()
           
 List<RecoveryStatus> getLogSorts()
           
 Iterator<RecoveryStatus> getLogSortsIterator()
           
 int getLogSortsSize()
           
 long getLookups()
           
 String getName()
           
 double getOsLoad()
           
 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 otherwise
 boolean isSetDataCacheHits()
          Returns true if field dataCacheHits is set (has been assigned a value) and false otherwise
 boolean isSetDataCacheRequest()
          Returns true if field dataCacheRequest is set (has been assigned a value) and false otherwise
 boolean isSetHoldTime()
          Returns true if field holdTime is set (has been assigned a value) and false otherwise
 boolean isSetIndexCacheHits()
          Returns true if field indexCacheHits is set (has been assigned a value) and false otherwise
 boolean isSetIndexCacheRequest()
          Returns true if field indexCacheRequest is set (has been assigned a value) and false otherwise
 boolean isSetLastContact()
          Returns true if field lastContact is set (has been assigned a value) and false otherwise
 boolean isSetLogSorts()
          Returns true if field logSorts is set (has been assigned a value) and false otherwise
 boolean isSetLookups()
          Returns true if field lookups is set (has been assigned a value) and false otherwise
 boolean isSetName()
          Returns true if field name is set (has been assigned a value) and false otherwise
 boolean isSetOsLoad()
          Returns true if field osLoad is set (has been assigned a value) and false otherwise
 boolean isSetTableMap()
          Returns true if field tableMap is set (has been assigned a value) and false otherwise
 void putToTableMap(String key, TableInfo val)
           
 void read(org.apache.thrift.protocol.TProtocol iprot)
           
 TabletServerStatus setDataCacheHits(long dataCacheHits)
           
 void setDataCacheHitsIsSet(boolean value)
           
 TabletServerStatus setDataCacheRequest(long dataCacheRequest)
           
 void setDataCacheRequestIsSet(boolean value)
           
 void setFieldValue(TabletServerStatus._Fields field, Object 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 setTableMap(Map<String,TableInfo> tableMap)
           
 void setTableMapIsSet(boolean value)
           
 String toString()
           
 void unsetDataCacheHits()
           
 void unsetDataCacheRequest()
           
 void unsetHoldTime()
           
 void unsetIndexCacheHits()
           
 void unsetIndexCacheRequest()
           
 void unsetLastContact()
           
 void unsetLogSorts()
           
 void unsetLookups()
           
 void unsetName()
           
 void unsetOsLoad()
           
 void unsetTableMap()
           
 void validate()
           
 void write(org.apache.thrift.protocol.TProtocol oprot)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

tableMap

public Map<String,TableInfo> tableMap

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

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)

TabletServerStatus

public TabletServerStatus(TabletServerStatus other)
Performs a deep copy on other.

Method Detail

deepCopy

public TabletServerStatus deepCopy()
Specified by:
deepCopy in interface org.apache.thrift.TBase<TabletServerStatus,TabletServerStatus._Fields>

clear

public void clear()
Specified by:
clear in interface org.apache.thrift.TBase<TabletServerStatus,TabletServerStatus._Fields>

getTableMapSize

public int getTableMapSize()

putToTableMap

public void putToTableMap(String key,
                          TableInfo val)

getTableMap

public Map<String,TableInfo> getTableMap()

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)

setFieldValue

public void setFieldValue(TabletServerStatus._Fields field,
                          Object value)
Specified by:
setFieldValue in interface org.apache.thrift.TBase<TabletServerStatus,TabletServerStatus._Fields>

getFieldValue

public Object getFieldValue(TabletServerStatus._Fields field)
Specified by:
getFieldValue in interface org.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 interface org.apache.thrift.TBase<TabletServerStatus,TabletServerStatus._Fields>

equals

public boolean equals(Object that)
Overrides:
equals in class Object

equals

public boolean equals(TabletServerStatus that)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

public int compareTo(TabletServerStatus other)
Specified by:
compareTo in interface Comparable<TabletServerStatus>

fieldForId

public TabletServerStatus._Fields fieldForId(int fieldId)
Specified by:
fieldForId in interface org.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 interface org.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 interface org.apache.thrift.TBase<TabletServerStatus,TabletServerStatus._Fields>
Throws:
org.apache.thrift.TException

toString

public String toString()
Overrides:
toString in class Object

validate

public void validate()
              throws org.apache.thrift.TException
Throws:
org.apache.thrift.TException


Copyright © 2013 Apache Accumulo Project. All Rights Reserved.