public class TestBlockCacheReporting extends Object
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private org.apache.hadoop.conf.Configuration |
conf |
private static org.slf4j.Logger |
LOG |
Constructor and Description |
---|
TestBlockCacheReporting() |
Modifier and Type | Method and Description |
---|---|
private void |
addDataAndHits(org.apache.hadoop.hbase.io.hfile.BlockCache bc,
int count) |
private void |
bucketCacheReport(org.apache.hadoop.hbase.io.hfile.BlockCache bc) |
private org.apache.hadoop.hbase.io.hfile.BlockCacheUtil.CachedBlocksByFile |
logPerBlock(org.apache.hadoop.hbase.io.hfile.BlockCache bc) |
private void |
logPerFile(org.apache.hadoop.hbase.io.hfile.BlockCacheUtil.CachedBlocksByFile cbsbf) |
void |
setUp() |
void |
testBucketCache() |
void |
testLruBlockCache() |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private org.apache.hadoop.conf.Configuration conf
public TestBlockCacheReporting()
private void addDataAndHits(org.apache.hadoop.hbase.io.hfile.BlockCache bc, int count)
public void testBucketCache() throws IOException
IOException
public void testLruBlockCache() throws IOException
IOException
private void bucketCacheReport(org.apache.hadoop.hbase.io.hfile.BlockCache bc)
private void logPerFile(org.apache.hadoop.hbase.io.hfile.BlockCacheUtil.CachedBlocksByFile cbsbf) throws IOException
IOException
private org.apache.hadoop.hbase.io.hfile.BlockCacheUtil.CachedBlocksByFile logPerBlock(org.apache.hadoop.hbase.io.hfile.BlockCache bc) throws IOException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.