Class NetworkMap


  • public class NetworkMap
    extends Object
    Contains global worker's host and port info.
    • 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)