public class TestByteBuffAllocator extends Object
Modifier and Type | Class and Description |
---|---|
private static class |
TestByteBuffAllocator.TrackingMultiByteBuff |
private static class |
TestByteBuffAllocator.TrackingSingleByteBuff |
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
Constructor and Description |
---|
TestByteBuffAllocator() |
Modifier and Type | Method and Description |
---|---|
private void |
assertException(Runnable r) |
void |
testAllocateByteBuffToReadInto() |
void |
testAllocateOneBuffer() |
void |
testByteBuffUnsupportedMethods() |
void |
testCheckRefCountOnlyWithRecycler()
Tests that we only call the logic in checkRefCount for ByteBuff's that have a non-NONE
recycler.
|
void |
testDeprecatedConfigs() |
void |
testHeapAllocationRatio() |
void |
testNegativeAllocatedSize() |
void |
testRecycleOnlyPooledBuffers() |
void |
testReferenceCount() |
void |
testReverseRef() |
public static final HBaseClassTestRule CLASS_RULE
public TestByteBuffAllocator()
public void testRecycleOnlyPooledBuffers()
public void testAllocateByteBuffToReadInto()
public void testNegativeAllocatedSize()
public void testAllocateOneBuffer()
public void testReferenceCount()
public void testReverseRef()
public void testByteBuffUnsupportedMethods()
private void assertException(Runnable r)
public void testDeprecatedConfigs()
public void testHeapAllocationRatio()
public void testCheckRefCountOnlyWithRecycler()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.