Class 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 group
      void removeServer​(int id)
      Removes a server from the group
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 disk
        configDir - 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