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 class
HostsConfig.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 void
add(int id, java.lang.String host, int port, int portRR)
java.lang.String
getHost(int id)
int[]
getHostsIds()
java.net.InetSocketAddress
getLocalAddress(int id)
int
getNum()
int
getPort(int id)
java.net.InetSocketAddress
getRemoteAddress(int id)
int
getServerToServerPort(int id)
java.net.InetSocketAddress
getServerToServerRemoteAddress(int id)
void
setPort(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)
-
-