Class SourceDestinationServerUserData


  • public class SourceDestinationServerUserData
    extends ReplicationUserData
    This class is used to store the information provided by the user to initialize replication. It is required because when we are in interactive mode the ReplicationCliArgumentParser is not enough.
    • Constructor Detail

      • SourceDestinationServerUserData

        public SourceDestinationServerUserData()
    • Method Detail

      • getHostNameSource

        public String getHostNameSource()
        Returns the host name of the source server.
        Returns:
        the host name of the source server.
      • setHostNameSource

        public void setHostNameSource​(String hostNameSource)
        Sets the host name of the source server.
        Parameters:
        hostNameSource - the host name of the source server.
      • getPortSource

        public int getPortSource()
        Returns the port of the source server.
        Returns:
        the port of the source server.
      • setPortSource

        public void setPortSource​(int portSource)
        Sets the port of the source server.
        Parameters:
        portSource - the port of the source server.
      • getHostNameDestination

        public String getHostNameDestination()
        Returns the host name of the destination server.
        Returns:
        the host name of the destination server.
      • getSourceHostPort

        public String getSourceHostPort()
        Returns a host:port string for the source server.
        Returns:
        a host:port string for the source server
      • getDestinationHostPort

        public String getDestinationHostPort()
        Returns a host:port string for the destination server.
        Returns:
        a host:port string for the destination server
      • setHostNameDestination

        public void setHostNameDestination​(String hostNameDestination)
        Sets the host name of the destination server.
        Parameters:
        hostNameDestination - the host name of the destination server.
      • getPortDestination

        public int getPortDestination()
        Returns the port of the destination server.
        Returns:
        the port of the destination server.
      • setPortDestination

        public void setPortDestination​(int portDestination)
        Sets the port of the destination server.
        Parameters:
        portDestination - the port of the destination server.
      • getSource

        public HostPort getSource()
        Returns a HostPort representing the source server.
        Returns:
        a HostPort representing the source server
      • getDestination

        public HostPort getDestination()
        Returns a HostPort representing the destination server.
        Returns:
        a HostPort representing the destination server