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 |
---|---|
List<WorkerInfo> |
getLiveWorkerInfos()
Get live workerInfo list.
|
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 List<WorkerInfo> getLiveWorkerInfos() throws UnavailableException
WorkerProvider
getLiveWorkerInfos
in interface WorkerProvider
UnavailableException
public CloseableResource<BlockWorkerClient> getWorkerClient(WorkerNetAddress address)
WorkerProvider
getWorkerClient
in interface WorkerProvider
address
- the worker addressCopyright © 2023. All Rights Reserved.