Package org.opends.quicksetup.installer
Class DataReplicationOptions
- java.lang.Object
-
- org.opends.quicksetup.installer.DataReplicationOptions
-
public class DataReplicationOptions extends Object
This class is used to provide a data model for the Data Replication Options panel of the installer.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDataReplicationOptions.TypeThis enumeration is used to know what the user wants to do for the data (import data or not, what use as source of the data...).
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DataReplicationOptionscreateFirstInTopology(int replicationPort, boolean secureReplication)Construct an FIRST_IN_TOPOLOGY object.static DataReplicationOptionscreateInExistingTopology(AuthenticationData authenticationData, int replicationPort, boolean secureReplication)Construct an IN_EXISTING_TOPOLOGY object.static DataReplicationOptionscreateStandalone()Construct an STANDALONE object.AuthenticationDatagetAuthenticationData()Returns the AuthenticationData to the server used to replicate.intgetReplicationPort()Returns the port that is going to be used for replication.DataReplicationOptions.TypegetType()Returns the type of DataReplicationOptions represented by this object (replicate or not).booleanuseSecureReplication()Returns whether servers must encrypt data for the replication communication with this server.
-
-
-
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:
trueif the servers must encrypt data for the replication communication andfalseotherwise.
-
-