public class AllMastersWorkerInfo extends Object
Constructor and Description |
---|
AllMastersWorkerInfo(Map<Long,InetSocketAddress> workerIdAddressMap,
List<InetSocketAddress> masterAddresses,
InetSocketAddress primaryMasterAddress,
List<WorkerInfo> primaryMasterWorkerInfo,
Map<Long,List<Pair<InetSocketAddress,WorkerInfo>>> workerIdInfoMap) |
Modifier and Type | Method and Description |
---|---|
List<InetSocketAddress> |
getMasterAddresses() |
InetSocketAddress |
getPrimaryMasterAddress() |
List<WorkerInfo> |
getPrimaryMasterWorkerInfo() |
Map<Long,InetSocketAddress> |
getWorkerIdAddressMap() |
Map<Long,List<Pair<InetSocketAddress,WorkerInfo>>> |
getWorkerIdInfoMap() |
public AllMastersWorkerInfo(Map<Long,InetSocketAddress> workerIdAddressMap, List<InetSocketAddress> masterAddresses, InetSocketAddress primaryMasterAddress, List<WorkerInfo> primaryMasterWorkerInfo, Map<Long,List<Pair<InetSocketAddress,WorkerInfo>>> workerIdInfoMap)
workerIdAddressMap
- the worker id to address mapmasterAddresses
- the master addressesprimaryMasterAddress
- the primary master addressprimaryMasterWorkerInfo
- the worker info of the primary masterworkerIdInfoMap
- the worker id to worker info mappublic Map<Long,InetSocketAddress> getWorkerIdAddressMap()
public List<InetSocketAddress> getMasterAddresses()
public InetSocketAddress getPrimaryMasterAddress()
public List<WorkerInfo> getPrimaryMasterWorkerInfo()
public Map<Long,List<Pair<InetSocketAddress,WorkerInfo>>> getWorkerIdInfoMap()
Copyright © 2023. All Rights Reserved.