public abstract class BufferCache extends Object implements CrailStatistics.StatisticsProvider, CrailBufferCache
| Constructor and Description |
|---|
BufferCache() |
| Modifier and Type | Method and Description |
|---|---|
CrailBuffer |
allocateBuffer() |
abstract CrailBuffer |
allocateRegion() |
void |
close() |
static BufferCache |
createInstance(String name) |
void |
freeBuffer(CrailBuffer buffer) |
void |
mergeStatistics(CrailStatistics.StatisticsProvider provider) |
String |
printStatistics() |
String |
providerName() |
void |
putBufferInternal(CrailBuffer buffer) |
void |
resetStatistics() |
public BufferCache()
throws IOException
IOExceptionpublic abstract CrailBuffer allocateRegion() throws IOException
IOExceptionpublic String providerName()
providerName in interface CrailStatistics.StatisticsProviderpublic String printStatistics()
printStatistics in interface CrailStatistics.StatisticsProviderpublic void resetStatistics()
resetStatistics in interface CrailStatistics.StatisticsProviderpublic void mergeStatistics(CrailStatistics.StatisticsProvider provider)
mergeStatistics in interface CrailStatistics.StatisticsProviderpublic CrailBuffer allocateBuffer() throws IOException
allocateBuffer in interface CrailBufferCacheIOExceptionpublic void freeBuffer(CrailBuffer buffer) throws IOException
freeBuffer in interface CrailBufferCacheIOExceptionpublic void putBufferInternal(CrailBuffer buffer) throws IOException
IOExceptionpublic void close()
public static BufferCache createInstance(String name) throws Exception
ExceptionCopyright © 2018 The Apache Software Foundation. All rights reserved.