Class SourceDestinationServerUserData
- java.lang.Object
-
- org.opends.server.tools.dsreplication.ReplicationUserData
-
- org.opends.server.tools.dsreplication.SourceDestinationServerUserData
-
public class SourceDestinationServerUserData extends ReplicationUserData
This class is used to store the information provided by the user to initialize replication. It is required because when we are in interactive mode the ReplicationCliArgumentParser is not enough.
-
-
Constructor Summary
Constructors Constructor Description SourceDestinationServerUserData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HostPortgetDestination()Returns aHostPortrepresenting the destination server.StringgetDestinationHostPort()Returns a host:port string for the destination server.StringgetHostNameDestination()Returns the host name of the destination server.StringgetHostNameSource()Returns the host name of the source server.intgetPortDestination()Returns the port of the destination server.intgetPortSource()Returns the port of the source server.HostPortgetSource()Returns aHostPortrepresenting the source server.StringgetSourceHostPort()Returns a host:port string for the source server.voidsetHostNameDestination(String hostNameDestination)Sets the host name of the destination server.voidsetHostNameSource(String hostNameSource)Sets the host name of the source server.voidsetPortDestination(int portDestination)Sets the port of the destination server.voidsetPortSource(int portSource)Sets the port of the source server.-
Methods inherited from class org.opends.server.tools.dsreplication.ReplicationUserData
addBaseDN, getAdminPwd, getAdminUid, getBaseDNs, setAdminPwd, setAdminUid, setBaseDNs, toString
-
-
-
-
Method Detail
-
getHostNameSource
public String getHostNameSource()
Returns the host name of the source server.- Returns:
- the host name of the source server.
-
setHostNameSource
public void setHostNameSource(String hostNameSource)
Sets the host name of the source server.- Parameters:
hostNameSource- the host name of the source server.
-
getPortSource
public int getPortSource()
Returns the port of the source server.- Returns:
- the port of the source server.
-
setPortSource
public void setPortSource(int portSource)
Sets the port of the source server.- Parameters:
portSource- the port of the source server.
-
getHostNameDestination
public String getHostNameDestination()
Returns the host name of the destination server.- Returns:
- the host name of the destination server.
-
getSourceHostPort
public String getSourceHostPort()
Returns a host:port string for the source server.- Returns:
- a host:port string for the source server
-
getDestinationHostPort
public String getDestinationHostPort()
Returns a host:port string for the destination server.- Returns:
- a host:port string for the destination server
-
setHostNameDestination
public void setHostNameDestination(String hostNameDestination)
Sets the host name of the destination server.- Parameters:
hostNameDestination- the host name of the destination server.
-
getPortDestination
public int getPortDestination()
Returns the port of the destination server.- Returns:
- the port of the destination server.
-
setPortDestination
public void setPortDestination(int portDestination)
Sets the port of the destination server.- Parameters:
portDestination- the port of the destination server.
-
getSource
public HostPort getSource()
Returns aHostPortrepresenting the source server.- Returns:
- a
HostPortrepresenting the source server
-
-