Class DisableReplicationUserData


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

      • DisableReplicationUserData

        public DisableReplicationUserData()
    • Method Detail

      • getBindDn

        public DN getBindDn()
        Returns the bind DN to be used to connect to the server if no Administrator has been defined.
        Returns:
        the bind DN to be used to connect to the server if no Administrator has been defined.
      • setBindDn

        public void setBindDn​(DN bindDn)
        Sets the bind DN to be used to connect to the server if no Administrator has been defined.
        Parameters:
        bindDn - the bind DN to be used.
      • getBindPwd

        public String getBindPwd()
        Returns the password to be used to connect to the server if no Administrator has been defined.
        Returns:
        the password to be used to connect to the server if no Administrator has been defined.
      • setBindPwd

        public void setBindPwd​(String bindPwd)
        Sets the password to be used to connect to the server if no Administrator has been defined.
        Parameters:
        bindPwd - the password to be used.
      • disableAll

        public boolean disableAll()
        Tells whether the user wants to disable all the replication from the server.
        Returns:
        true if the user wants to disable all replication from the server and false otherwise.
      • setDisableAll

        public void setDisableAll​(boolean disableAll)
        Sets whether the user wants to disable all the replication from the server.
        Parameters:
        disableAll - whether the user wants to disable all the replication from the server.
      • disableReplicationServer

        public boolean disableReplicationServer()
        Tells whether the user asked to disable the replication server in the server.
        Returns:
        true if the user wants to disable replication server in the server and false otherwise.
      • setDisableReplicationServer

        public void setDisableReplicationServer​(boolean disableReplicationServer)
        Sets whether the user asked to disable the replication server in the server.
        Parameters:
        disableReplicationServer - whether the user asked to disable the replication server in the server.
      • getHostPort

        public HostPort getHostPort()
        Returns the host name and port of the server.
        Returns:
        the host name and port of the server.
      • setHostPort

        public void setHostPort​(HostPort hostPort)
        Sets the host name and port of the server.
        Parameters:
        hostPort - the host name and port of the server.