@ThreadSafe public final class FileSystemMasterClientPool extends DynamicResourcePool<FileSystemMasterClient>
DynamicResourcePool.Options, DynamicResourcePool.ResourceInternal<R>
mClock
Constructor and Description |
---|
FileSystemMasterClientPool(MasterClientContext ctx)
Creates a new file system master client pool.
|
Modifier and Type | Method and Description |
---|---|
protected void |
closeResource(FileSystemMasterClient client)
Closes the resource.
|
protected FileSystemMasterClient |
createNewResource()
Creates a new resource.
|
protected boolean |
isHealthy(FileSystemMasterClient client)
Checks whether a resource is healthy or not.
|
protected boolean |
shouldGc(DynamicResourcePool.ResourceInternal<FileSystemMasterClient> clientResourceInternal) |
public FileSystemMasterClientPool(MasterClientContext ctx)
ctx
- information for connecting to processes in the clusterprotected void closeResource(FileSystemMasterClient client)
DynamicResourcePool
closeResource
in class DynamicResourcePool<FileSystemMasterClient>
client
- the resource to closeprotected FileSystemMasterClient createNewResource()
DynamicResourcePool
createNewResource
in class DynamicResourcePool<FileSystemMasterClient>
protected boolean isHealthy(FileSystemMasterClient client)
DynamicResourcePool
isHealthy
in class DynamicResourcePool<FileSystemMasterClient>
client
- the resource to checkprotected boolean shouldGc(DynamicResourcePool.ResourceInternal<FileSystemMasterClient> clientResourceInternal)
shouldGc
in class DynamicResourcePool<FileSystemMasterClient>
clientResourceInternal
- the resource to checkCopyright © 2023. All Rights Reserved.