Class DisableReplicationUserData
- java.lang.Object
-
- org.opends.server.tools.dsreplication.ReplicationUserData
-
- org.opends.server.tools.dsreplication.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 Summary
Constructors Constructor Description DisableReplicationUserData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandisableAll()Tells whether the user wants to disable all the replication from the server.booleandisableReplicationServer()Tells whether the user asked to disable the replication server in the server.DNgetBindDn()Returns the bind DN to be used to connect to the server if no Administrator has been defined.StringgetBindPwd()Returns the password to be used to connect to the server if no Administrator has been defined.HostPortgetHostPort()Returns the host name and port of the server.voidsetBindDn(DN bindDn)Sets the bind DN to be used to connect to the server if no Administrator has been defined.voidsetBindPwd(String bindPwd)Sets the password to be used to connect to the server if no Administrator has been defined.voidsetDisableAll(boolean disableAll)Sets whether the user wants to disable all the replication from the server.voidsetDisableReplicationServer(boolean disableReplicationServer)Sets whether the user asked to disable the replication server in the server.voidsetHostPort(HostPort hostPort)Sets the host name and port of the server.-
Methods inherited from class org.opends.server.tools.dsreplication.ReplicationUserData
addBaseDN, getAdminPwd, getAdminUid, getBaseDNs, setAdminPwd, setAdminUid, setBaseDNs, toString
-
-
-
-
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:
trueif the user wants to disable all replication from the server andfalseotherwise.
-
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:
trueif the user wants to disable replication server in the server andfalseotherwise.
-
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.
-
-