Class TServerStatusImpl
- java.lang.Object
-
- org.apache.accumulo.core.manager.balancer.TServerStatusImpl
-
- All Implemented Interfaces:
Comparable<TServerStatus>
,TServerStatus
public class TServerStatusImpl extends Object implements TServerStatus
-
-
Constructor Summary
Constructors Constructor Description TServerStatusImpl(TabletServerStatus thriftStatus)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(TServerStatus o)
boolean
equals(Object o)
static TServerStatusImpl
fromThrift(TabletServerStatus tss)
long
getDataCacheHits()
long
getDataCacheRequests()
long
getFlushes()
long
getHoldTime()
long
getIndexCacheHits()
long
getIndexCacheRequests()
long
getLastContact()
long
getLookups()
String
getName()
double
getOsLoad()
long
getResponseTime()
long
getSyncs()
Map<String,TableStatistics>
getTableMap()
String
getVersion()
int
hashCode()
void
setTableMap(Map<String,TableStatistics> tableInfoMap)
String
toString()
TabletServerStatus
toThrift()
-
-
-
Constructor Detail
-
TServerStatusImpl
public TServerStatusImpl(TabletServerStatus thriftStatus)
-
-
Method Detail
-
fromThrift
public static TServerStatusImpl fromThrift(TabletServerStatus tss)
-
getTableMap
public Map<String,TableStatistics> getTableMap()
- Specified by:
getTableMap
in interfaceTServerStatus
-
setTableMap
public void setTableMap(Map<String,TableStatistics> tableInfoMap)
-
getLastContact
public long getLastContact()
- Specified by:
getLastContact
in interfaceTServerStatus
-
getName
public String getName()
- Specified by:
getName
in interfaceTServerStatus
-
getOsLoad
public double getOsLoad()
- Specified by:
getOsLoad
in interfaceTServerStatus
-
getHoldTime
public long getHoldTime()
- Specified by:
getHoldTime
in interfaceTServerStatus
-
getLookups
public long getLookups()
- Specified by:
getLookups
in interfaceTServerStatus
-
getIndexCacheHits
public long getIndexCacheHits()
- Specified by:
getIndexCacheHits
in interfaceTServerStatus
-
getIndexCacheRequests
public long getIndexCacheRequests()
- Specified by:
getIndexCacheRequests
in interfaceTServerStatus
-
getDataCacheHits
public long getDataCacheHits()
- Specified by:
getDataCacheHits
in interfaceTServerStatus
-
getDataCacheRequests
public long getDataCacheRequests()
- Specified by:
getDataCacheRequests
in interfaceTServerStatus
-
getFlushes
public long getFlushes()
- Specified by:
getFlushes
in interfaceTServerStatus
-
getSyncs
public long getSyncs()
- Specified by:
getSyncs
in interfaceTServerStatus
-
getVersion
public String getVersion()
- Specified by:
getVersion
in interfaceTServerStatus
-
getResponseTime
public long getResponseTime()
- Specified by:
getResponseTime
in interfaceTServerStatus
-
compareTo
public int compareTo(TServerStatus o)
- Specified by:
compareTo
in interfaceComparable<TServerStatus>
-
toThrift
public TabletServerStatus toThrift()
-
-