Class DataReplicationOptions


  • public class DataReplicationOptions
    extends Object
    This class is used to provide a data model for the Data Replication Options panel of the installer.
    • Method Detail

      • createFirstInTopology

        public static DataReplicationOptions createFirstInTopology​(int replicationPort,
                                                                   boolean secureReplication)
        Construct an FIRST_IN_TOPOLOGY object.
        Parameters:
        replicationPort - the replication port.
        secureReplication - whether servers must encrypt data for the replication communication with this server.
        Returns:
        the FIRST_IN_TOPOLOGY object.
      • createStandalone

        public static DataReplicationOptions createStandalone()
        Construct an STANDALONE object.
        Returns:
        the STANDALONE object.
      • createInExistingTopology

        public static DataReplicationOptions createInExistingTopology​(AuthenticationData authenticationData,
                                                                      int replicationPort,
                                                                      boolean secureReplication)
        Construct an IN_EXISTING_TOPOLOGY object.
        Parameters:
        authenticationData - the authentication data.
        replicationPort - the replication port.
        secureReplication - whether servers must encrypt data for the replication communication with this server.
        Returns:
        the IN_EXISTING_TOPOLOGY object.
      • getType

        public DataReplicationOptions.Type getType()
        Returns the type of DataReplicationOptions represented by this object (replicate or not).
        Returns:
        the type of DataReplicationOptions.
      • getAuthenticationData

        public AuthenticationData getAuthenticationData()
        Returns the AuthenticationData to the server used to replicate. If it is standalone returns null.
        Returns:
        the AuthenticationData to the server used to replicate.
      • getReplicationPort

        public int getReplicationPort()
        Returns the port that is going to be used for replication.
        Returns:
        the replication that must be used to configure replication.
      • useSecureReplication

        public boolean useSecureReplication()
        Returns whether servers must encrypt data for the replication communication with this server.
        Returns:
        true if the servers must encrypt data for the replication communication and false otherwise.