@ThreadSafe public final class BlockMasterClientPool extends DynamicResourcePool<BlockMasterClient>
ResourcePool.acquire(), ResourcePool.release(Object) must be called when the
thread is done using the client.DynamicResourcePool.Options, DynamicResourcePool.ResourceInternal<R>mClock| Constructor and Description |
|---|
BlockMasterClientPool(MasterClientContext ctx)
Creates a new block master client pool.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
closeResource(BlockMasterClient client) |
protected BlockMasterClient |
createNewResource() |
protected com.codahale.metrics.Counter |
getMetricCounter() |
protected boolean |
isHealthy(BlockMasterClient client) |
protected boolean |
shouldGc(DynamicResourcePool.ResourceInternal<BlockMasterClient> clientResourceInternal) |
public BlockMasterClientPool(MasterClientContext ctx)
ctx - the information required for connecting to Alluxioprotected void closeResource(BlockMasterClient client)
closeResource in class DynamicResourcePool<BlockMasterClient>protected BlockMasterClient createNewResource()
createNewResource in class DynamicResourcePool<BlockMasterClient>protected boolean isHealthy(BlockMasterClient client)
isHealthy in class DynamicResourcePool<BlockMasterClient>protected com.codahale.metrics.Counter getMetricCounter()
getMetricCounter in class DynamicResourcePool<BlockMasterClient>protected boolean shouldGc(DynamicResourcePool.ResourceInternal<BlockMasterClient> clientResourceInternal)
shouldGc in class DynamicResourcePool<BlockMasterClient>Copyright © 2022. All Rights Reserved.