Package alluxio.scheduler.job
Interface WorkerProvider
-
public interface WorkerProviderInterface for providing worker information and client.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description alluxio.resource.CloseableResource<alluxio.client.block.stream.BlockWorkerClient>getWorkerClient(alluxio.wire.WorkerNetAddress address)Gets a worker client.java.util.List<alluxio.wire.WorkerInfo>getWorkerInfos()Gets a list of worker information.
-
-
-
Method Detail
-
getWorkerInfos
java.util.List<alluxio.wire.WorkerInfo> getWorkerInfos()
Gets a list of worker information.- Returns:
- a list of worker information
- Throws:
alluxio.exception.runtime.AlluxioRuntimeException- if failed to get worker information
-
getWorkerClient
alluxio.resource.CloseableResource<alluxio.client.block.stream.BlockWorkerClient> getWorkerClient(alluxio.wire.WorkerNetAddress address)
Gets a worker client.- Parameters:
address- the worker address- Returns:
- a worker client
- Throws:
alluxio.exception.runtime.AlluxioRuntimeException- if failed to get worker client
-
-