Package bftsmart.reconfiguration.util
Class HostsConfig
- java.lang.Object
-
- bftsmart.reconfiguration.util.HostsConfig
-
public class HostsConfig extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classHostsConfig.Config
-
Constructor Summary
Constructors Constructor Description HostsConfig(java.lang.String configHome, java.lang.String fileName)Creates a new instance of ServersConfig
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int id, java.lang.String host, int port, int portRR)java.lang.StringgetHost(int id)int[]getHostsIds()java.net.InetSocketAddressgetLocalAddress(int id)intgetNum()intgetPort(int id)java.net.InetSocketAddressgetRemoteAddress(int id)intgetServerToServerPort(int id)java.net.InetSocketAddressgetServerToServerRemoteAddress(int id)voidsetPort(int id, int port)
-
-
-
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)
-
-