|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.regionserver.metrics.OperationMetrics
public class OperationMetrics
This class provides a simplified interface to expose time varying metrics
about GET/DELETE/PUT/ICV operations on a region and on Column Families. All
metrics are stored in RegionMetricsStorage
and exposed to hadoop
metrics through RegionServerDynamicMetrics
.
Constructor Summary | |
---|---|
OperationMetrics()
This is used in creating a testing HRegion where the regionInfo is unknown |
|
OperationMetrics(org.apache.hadoop.conf.Configuration conf,
HRegionInfo regionInfo)
Create a new OperationMetrics |
Method Summary | |
---|---|
void |
closeMetrics()
This deletes all old metrics this instance has ever created or updated. |
void |
updateAppendMetrics(Set<byte[]> columnFamilies,
long value)
Update the metrics associated with an Append |
void |
updateDeleteMetrics(Set<byte[]> columnFamilies,
long value)
update metrics associated with a Delete |
void |
updateGetMetrics(Set<byte[]> columnFamilies,
long value)
Update the metrics associated with a Get |
void |
updateIncrementColumnValueMetrics(byte[] columnFamily,
long value)
Update the metrics associated with HTable.incrementColumnValue(byte[], byte[], byte[], long) |
void |
updateIncrementMetrics(Set<byte[]> columnFamilies,
long value)
Update metrics associated with an Increment |
void |
updateMultiDeleteMetrics(Set<byte[]> columnFamilies,
long value)
Update the stats associated with HTable.delete(java.util.List) . |
void |
updateMultiPutMetrics(Set<byte[]> columnFamilies,
long value)
Update the stats associated with HTable.put(java.util.List) . |
void |
updatePutMetrics(Set<byte[]> columnFamilies,
long value)
update metrics associated with a Put |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OperationMetrics(org.apache.hadoop.conf.Configuration conf, HRegionInfo regionInfo)
conf
- The Configuration of the HRegion reporting operations coming in.regionInfo
- The region infopublic OperationMetrics()
conf
- Method Detail |
---|
public void updateMultiPutMetrics(Set<byte[]> columnFamilies, long value)
HTable.put(java.util.List)
.
columnFamilies
- Set of CF's this multiput is associated withvalue
- the timepublic void updateMultiDeleteMetrics(Set<byte[]> columnFamilies, long value)
HTable.delete(java.util.List)
.
columnFamilies
- Set of CF's this multidelete is associated withvalue
- the timepublic void updateGetMetrics(Set<byte[]> columnFamilies, long value)
Get
columnFamilies
- Set of Column Families in this get.value
- the timepublic void updateIncrementMetrics(Set<byte[]> columnFamilies, long value)
Increment
columnFamilies
- value
- public void updateAppendMetrics(Set<byte[]> columnFamilies, long value)
Append
columnFamilies
- value
- public void updateIncrementColumnValueMetrics(byte[] columnFamily, long value)
HTable.incrementColumnValue(byte[], byte[], byte[], long)
columnFamily
- The single column family associated with an ICVvalue
- the timepublic void updatePutMetrics(Set<byte[]> columnFamilies, long value)
Put
columnFamilies
- Set of column families involved.value
- the time.public void updateDeleteMetrics(Set<byte[]> columnFamilies, long value)
Delete
columnFamilies
- value
- the time.public void closeMetrics()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |