Class WorkerInfo


  • public class WorkerInfo
    extends Object
    Contains information uniquely identify one worker(process) from others.
    • Constructor Detail

      • WorkerInfo

        public WorkerInfo​(int workerId,
                          int workerNum,
                          String hostNameOrIp,
                          int port,
                          String[] dstHostNameOrIps)
    • Method Detail

      • getWorkerId

        public int getWorkerId()
      • setWorkerId

        public void setWorkerId​(int workerId)
      • getWorkerNum

        public int getWorkerNum()
      • setWorkerNum

        public void setWorkerNum​(int workerNum)
      • getHost

        public String getHost()
        Return the ip/hostname to which the client should connect.
        Returns:
        hostname or ip
      • getInitPort

        public int getInitPort()
        Return the port client should connect to.
        Returns:
        the port
      • getDstHostNameOrIps

        public String[] getDstHostNameOrIps()