public class WorkerAddressUtils extends Object
Constructor and Description |
---|
WorkerAddressUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
convertAddressToStringWebPort(WorkerNetAddress address)
Converts a worker address to string.
|
static List<WorkerNetAddress> |
parseWorkerAddresses(String workerAddressesStr,
AlluxioConfiguration alluxioConf)
Parses a string to worker addresses.
|
static String |
workerAddressListToString(Collection<WorkerNetAddress> workers)
Convert a list of worker addresses to string.
|
static String |
workerListToString(Set<BlockWorkerInfo> worker)
Converts a set of worker metadata to string.
|
public static List<WorkerNetAddress> parseWorkerAddresses(String workerAddressesStr, AlluxioConfiguration alluxioConf)
workerAddressesStr
- the string inputalluxioConf
- the conf to rely onpublic static String workerAddressListToString(Collection<WorkerNetAddress> workers)
workers
- input worker listpublic static String workerListToString(Set<BlockWorkerInfo> worker)
worker
- a set of workerspublic static String convertAddressToStringWebPort(WorkerNetAddress address)
address
- the worker addressCopyright © 2023. All Rights Reserved.