@Private
public final class BlockManagerParameters
extends java.lang.Object
BlockManager.| Constructor | Description |
|---|---|
BlockManagerParameters() |
| Modifier and Type | Method | Description |
|---|---|---|
BlockData |
getBlockData() |
|
int |
getBufferPoolSize() |
|
Configuration |
getConf() |
|
ExecutorServiceFuturePool |
getFuturePool() |
|
LocalDirAllocator |
getLocalDirAllocator() |
|
int |
getMaxBlocksCount() |
|
PrefetchingStatistics |
getPrefetchingStatistics() |
|
DurationTrackerFactory |
getTrackerFactory() |
|
BlockManagerParameters |
withBlockData(BlockData data) |
Sets the object holding blocks data info for the underlying file.
|
BlockManagerParameters |
withBufferPoolSize(int poolSize) |
Sets the in-memory cache size as number of blocks.
|
BlockManagerParameters |
withConf(Configuration configuration) |
Sets the configuration object.
|
BlockManagerParameters |
withFuturePool(ExecutorServiceFuturePool pool) |
Sets the executor service future pool that is later used to perform
async prefetch tasks.
|
BlockManagerParameters |
withLocalDirAllocator(LocalDirAllocator dirAllocator) |
Sets the local dir allocator for round-robin disk allocation
while creating files.
|
BlockManagerParameters |
withMaxBlocksCount(int blocksCount) |
Sets the max blocks count to be kept in cache at any time.
|
BlockManagerParameters |
withPrefetchingStatistics(PrefetchingStatistics statistics) |
Sets the prefetching statistics for the stream.
|
BlockManagerParameters |
withTrackerFactory(DurationTrackerFactory factory) |
Sets the duration tracker with statistics to update.
|
public ExecutorServiceFuturePool getFuturePool()
public BlockData getBlockData()
public int getBufferPoolSize()
public PrefetchingStatistics getPrefetchingStatistics()
public Configuration getConf()
public LocalDirAllocator getLocalDirAllocator()
public int getMaxBlocksCount()
public DurationTrackerFactory getTrackerFactory()
public BlockManagerParameters withFuturePool(ExecutorServiceFuturePool pool)
pool - The future pool.public BlockManagerParameters withBlockData(BlockData data)
data - The block data object.public BlockManagerParameters withBufferPoolSize(int poolSize)
poolSize - The buffer pool size as number of blocks.public BlockManagerParameters withPrefetchingStatistics(PrefetchingStatistics statistics)
statistics - The prefetching statistics.public BlockManagerParameters withConf(Configuration configuration)
configuration - The configuration object.public BlockManagerParameters withLocalDirAllocator(LocalDirAllocator dirAllocator)
dirAllocator - The local dir allocator object.public BlockManagerParameters withMaxBlocksCount(int blocksCount)
blocksCount - The max blocks count.public BlockManagerParameters withTrackerFactory(DurationTrackerFactory factory)
factory - The tracker factory object.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.