public class DefaultWorkerProvider extends Object implements WorkerProvider
Constructor and Description |
---|
DefaultWorkerProvider(FileSystemMaster fileSystemMaster,
FileSystemContext context)
Creates a new instance of
DefaultWorkerProvider . |
Modifier and Type | Method and Description |
---|---|
CloseableResource<BlockWorkerClient> |
getWorkerClient(WorkerNetAddress address)
Gets a worker client.
|
List<WorkerInfo> |
getWorkerInfos()
Gets a list of worker information.
|
public DefaultWorkerProvider(FileSystemMaster fileSystemMaster, FileSystemContext context)
DefaultWorkerProvider
.fileSystemMaster
- the file system mastercontext
- the file system contextpublic List<WorkerInfo> getWorkerInfos()
WorkerProvider
getWorkerInfos
in interface WorkerProvider
public CloseableResource<BlockWorkerClient> getWorkerClient(WorkerNetAddress address)
WorkerProvider
getWorkerClient
in interface WorkerProvider
address
- the worker addressCopyright © 2023. All Rights Reserved.