org.apache.hadoop.hbase.regionserver
Class MetricsRegionSourceImpl

java.lang.Object
  extended by org.apache.hadoop.hbase.regionserver.MetricsRegionSourceImpl
All Implemented Interfaces:
Comparable<MetricsRegionSource>, MetricsRegionSource

public class MetricsRegionSourceImpl
extends Object
implements MetricsRegionSource


Field Summary
 
Fields inherited from interface org.apache.hadoop.hbase.regionserver.MetricsRegionSource
COMPACTIONS_COMPLETED_COUNT, COMPACTIONS_COMPLETED_DESC, COPROCESSOR_EXECUTION_STATISTICS, COPROCESSOR_EXECUTION_STATISTICS_DESC, NUM_BYTES_COMPACTED_COUNT, NUM_BYTES_COMPACTED_DESC, NUM_FILES_COMPACTED_COUNT, NUM_FILES_COMPACTED_DESC, OPS_SAMPLE_NAME, SIZE_VALUE_NAME
 
Constructor Summary
MetricsRegionSourceImpl(MetricsRegionWrapper regionWrapper, MetricsRegionAggregateSourceImpl aggregate)
           
 
Method Summary
 void close()
          Close the region's metrics as this region is closing.
 int compareTo(MetricsRegionSource source)
           
 boolean equals(Object obj)
           
 MetricsRegionAggregateSource getAggregateSource()
          Get the aggregate source to which this reports.
 int hashCode()
           
 void updateAppend()
          Update related counts of appends.
 void updateDelete()
          Update related counts of deletes.
 void updateGet(long getSize)
          Update count and sizes of gets.
 void updateIncrement()
          Update related counts of increments.
 void updatePut()
          Update related counts of puts.
 void updateScan(long scanSize)
          Update the count and sizes of resultScanner.next()
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetricsRegionSourceImpl

public MetricsRegionSourceImpl(MetricsRegionWrapper regionWrapper,
                               MetricsRegionAggregateSourceImpl aggregate)
Method Detail

close

public void close()
Description copied from interface: MetricsRegionSource
Close the region's metrics as this region is closing.

Specified by:
close in interface MetricsRegionSource

updatePut

public void updatePut()
Description copied from interface: MetricsRegionSource
Update related counts of puts.

Specified by:
updatePut in interface MetricsRegionSource

updateDelete

public void updateDelete()
Description copied from interface: MetricsRegionSource
Update related counts of deletes.

Specified by:
updateDelete in interface MetricsRegionSource

updateGet

public void updateGet(long getSize)
Description copied from interface: MetricsRegionSource
Update count and sizes of gets.

Specified by:
updateGet in interface MetricsRegionSource
Parameters:
getSize - size in bytes of the resulting key values for a get

updateScan

public void updateScan(long scanSize)
Description copied from interface: MetricsRegionSource
Update the count and sizes of resultScanner.next()

Specified by:
updateScan in interface MetricsRegionSource
Parameters:
scanSize - Size in bytes of the resulting key values for a next()

updateIncrement

public void updateIncrement()
Description copied from interface: MetricsRegionSource
Update related counts of increments.

Specified by:
updateIncrement in interface MetricsRegionSource

updateAppend

public void updateAppend()
Description copied from interface: MetricsRegionSource
Update related counts of appends.

Specified by:
updateAppend in interface MetricsRegionSource

getAggregateSource

public MetricsRegionAggregateSource getAggregateSource()
Description copied from interface: MetricsRegionSource
Get the aggregate source to which this reports.

Specified by:
getAggregateSource in interface MetricsRegionSource

compareTo

public int compareTo(MetricsRegionSource source)
Specified by:
compareTo in interface Comparable<MetricsRegionSource>

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2007–2015 The Apache Software Foundation. All rights reserved.