Class StatusReplicationUserData
- java.lang.Object
-
- org.opends.server.tools.dsreplication.ReplicationUserData
-
- org.opends.server.tools.dsreplication.StatusReplicationUserData
-
public class StatusReplicationUserData extends ReplicationUserData
This class is used to store the information provided by the user to show replication configuration. It is required because when we are in interactive mode the ReplicationCliArgumentParser is not enough.
-
-
Constructor Summary
Constructors Constructor Description StatusReplicationUserData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HostPortgetHostPort()Returns the host name and port of the server.booleanisScriptFriendly()Whether we must display information in a script-friendly mode or not.voidsetHostPort(HostPort hostPort)Sets the host name and port of the server.voidsetScriptFriendly(boolean scriptFriendly)Sets whether we must display information in a script-friendly mode or not.-
Methods inherited from class org.opends.server.tools.dsreplication.ReplicationUserData
addBaseDN, getAdminPwd, getAdminUid, getBaseDNs, setAdminPwd, setAdminUid, setBaseDNs, toString
-
-
-
-
Method Detail
-
isScriptFriendly
public boolean isScriptFriendly()
Whether we must display information in a script-friendly mode or not.- Returns:
trueif we must display the information in a script-friendly mode andfalseotherwise.
-
setScriptFriendly
public void setScriptFriendly(boolean scriptFriendly)
Sets whether we must display information in a script-friendly mode or not.- Parameters:
scriptFriendly- whether we must display information in a script-friendly mode or not.
-
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.
-
-