Class HostsConfig


  • public class HostsConfig
    extends java.lang.Object
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      class  HostsConfig.Config  
    • Constructor Summary

      Constructors 
      Constructor Description
      HostsConfig​(java.lang.String configHome, java.lang.String fileName)
      Creates a new instance of ServersConfig
    • Constructor Detail

      • HostsConfig

        public HostsConfig​(java.lang.String configHome,
                           java.lang.String fileName)
        Creates a new instance of ServersConfig
    • Method Detail

      • add

        public void add​(int id,
                        java.lang.String host,
                        int port,
                        int portRR)
      • getNum

        public int getNum()
      • getRemoteAddress

        public java.net.InetSocketAddress getRemoteAddress​(int id)
      • getServerToServerRemoteAddress

        public java.net.InetSocketAddress getServerToServerRemoteAddress​(int id)
      • getPort

        public int getPort​(int id)
      • getServerToServerPort

        public int getServerToServerPort​(int id)
      • getHostsIds

        public int[] getHostsIds()
      • setPort

        public void setPort​(int id,
                            int port)
      • getHost

        public java.lang.String getHost​(int id)
      • getLocalAddress

        public java.net.InetSocketAddress getLocalAddress​(int id)