Package bftsmart.reconfiguration
Class VMServices
- java.lang.Object
-
- bftsmart.reconfiguration.VMServices
-
- Direct Known Subclasses:
DefaultVMServices
public class VMServices extends java.lang.Object
This class is used by the trusted client to add and remove replicas from the group
-
-
Constructor Summary
Constructors Constructor Description VMServices()
Constructor.VMServices(KeyLoader keyLoader, java.lang.String configDir)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addServer(int id, java.lang.String ipAddress, int port, int portRR)
Adds a new server to the groupvoid
removeServer(int id)
Removes a server from the group
-
-
-
Constructor Detail
-
VMServices
public VMServices()
Constructor. It adopts the default RSA key loader and default configuration path.
-
VMServices
public VMServices(KeyLoader keyLoader, java.lang.String configDir)
Constructor.- Parameters:
keyLoader
- Key loader to use to fetch keys from diskconfigDir
- Configuration path
-
-
Method Detail
-
addServer
public void addServer(int id, java.lang.String ipAddress, int port, int portRR)
Adds a new server to the group- Parameters:
id
- ID of the server to be added (needs to match the value in config/hosts.config)ipAddress
- IP address of the server to be added (needs to match the value in config/hosts.config)port
- Port of the server to be added (needs to match the value in config/hosts.config)
-
removeServer
public void removeServer(int id)
Removes a server from the group- Parameters:
id
- ID of the server to be removed
-
-