@InterfaceAudience.Private public class ServerStatisticTracker extends Object implements StatisticTrackable
Modifier and Type | Field and Description |
---|---|
private ConcurrentHashMap<ServerName,ServerStatistics> |
stats |
Constructor and Description |
---|
ServerStatisticTracker() |
Modifier and Type | Method and Description |
---|---|
static ServerStatisticTracker |
create(org.apache.hadoop.conf.Configuration conf) |
ServerStatistics |
getStats(ServerName server) |
void |
updateRegionStats(ServerName server,
byte[] region,
RegionLoadStats currentStats)
Update stats per region.
|
private final ConcurrentHashMap<ServerName,ServerStatistics> stats
public ServerStatisticTracker()
public void updateRegionStats(ServerName server, byte[] region, RegionLoadStats currentStats)
StatisticTrackable
updateRegionStats
in interface StatisticTrackable
public ServerStatistics getStats(ServerName server)
public static ServerStatisticTracker create(org.apache.hadoop.conf.Configuration conf)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.