Class NetworkMap
- java.lang.Object
-
- com.alibaba.graphscope.parallel.utils.NetworkMap
-
public class NetworkMap extends Object
Contains global worker's host and port info.
-
-
Constructor Summary
Constructors Constructor Description NetworkMap(int workerId, int workerNum, int initPort, String[] ipOrHostNames)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAddress()
String
getHostNameForWorker(int dstWorkerId)
int
getPortForWorker(int dstWorkerId)
String
getSelfHostNameOrIp()
int
getSelfPort()
int
getSelfWorkerId()
int
getWorkerNum()
-
-
-
Constructor Detail
-
NetworkMap
public NetworkMap(int workerId, int workerNum, int initPort, String[] ipOrHostNames)
-
-
Method Detail
-
getWorkerNum
public int getWorkerNum()
-
getSelfWorkerId
public int getSelfWorkerId()
-
getSelfPort
public int getSelfPort()
-
getSelfHostNameOrIp
public String getSelfHostNameOrIp()
-
getAddress
public String getAddress()
-
getHostNameForWorker
public String getHostNameForWorker(int dstWorkerId)
-
getPortForWorker
public int getPortForWorker(int dstWorkerId)
-
-