org.apache.hadoop.hbase.client.backoff
Class ServerStatistics

java.lang.Object
  extended by org.apache.hadoop.hbase.client.backoff.ServerStatistics

@InterfaceAudience.Private
public class ServerStatistics
extends Object

Track the statistics for a single region


Nested Class Summary
static class ServerStatistics.RegionStatistics
           
 
Constructor Summary
ServerStatistics()
           
 
Method Summary
 ServerStatistics.RegionStatistics getStatsForRegion(byte[] regionName)
           
 void update(byte[] region, ClientProtos.RegionLoadStats currentStats)
          Good enough attempt.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerStatistics

public ServerStatistics()
Method Detail

update

public void update(byte[] region,
                   ClientProtos.RegionLoadStats currentStats)
Good enough attempt. Last writer wins. It doesn't really matter which one gets to update, as something gets set

Parameters:
region -
currentStats -

getStatsForRegion

@InterfaceAudience.Private
public ServerStatistics.RegionStatistics getStatsForRegion(byte[] regionName)


Copyright © 2015 The Apache Software Foundation. All Rights Reserved.