Class HostPort

    • Constructor Detail

      • HostPort

        public HostPort​(String host,
                        int port)
        Constructor.
        Parameters:
        host - IP or network host.
        port - Port for the server.
      • HostPort

        public HostPort​(String hostPort)
        CTOR.
        Parameters:
        hostPort - host network string in the format :.
        Throws:
        IllegalArgumentException - if the hostPost arg is not as expected
    • Method Detail

      • getHostPorts

        public static List<HostPort> getHostPorts​(String hostsArg)
        Parameters:
        hostsArg - comma separated IP:PORT of all the workers.
        Returns:
        host+port list of all the workers in the same order of hostsArg
      • getHost

        public String getHost()
      • getPort

        public int getPort()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object