| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Copyright 2008 Sun Microsystems, Inc. |
| | | * Copyright 2008-2009 Sun Microsystems, Inc. |
| | | */ |
| | | |
| | | package org.opends.server.tools.dsreplication; |
| | |
| | | * mode the ReplicationCliArgumentParser is not enough. |
| | | * |
| | | */ |
| | | class InitializeReplicationUserData extends ReplicationUserData |
| | | public class InitializeReplicationUserData extends ReplicationUserData |
| | | { |
| | | private String hostNameSource; |
| | | private int portSource; |
| | |
| | | * Returns the host name of the source server. |
| | | * @return the host name of the source server. |
| | | */ |
| | | String getHostNameSource() |
| | | public String getHostNameSource() |
| | | { |
| | | return hostNameSource; |
| | | } |
| | |
| | | * Sets the host name of the source server. |
| | | * @param hostNameSource the host name of the source server. |
| | | */ |
| | | void setHostNameSource(String hostNameSource) |
| | | public void setHostNameSource(String hostNameSource) |
| | | { |
| | | this.hostNameSource = hostNameSource; |
| | | } |
| | |
| | | * Returns the port of the source server. |
| | | * @return the port of the source server. |
| | | */ |
| | | int getPortSource() |
| | | public int getPortSource() |
| | | { |
| | | return portSource; |
| | | } |
| | |
| | | * Sets the port of the source server. |
| | | * @param portSource the port of the source server. |
| | | */ |
| | | void setPortSource(int portSource) |
| | | public void setPortSource(int portSource) |
| | | { |
| | | this.portSource = portSource; |
| | | } |
| | |
| | | * Returns the host name of the destination server. |
| | | * @return the host name of the destination server. |
| | | */ |
| | | String getHostNameDestination() |
| | | public String getHostNameDestination() |
| | | { |
| | | return hostNameDestination; |
| | | } |
| | |
| | | * Sets the host name of the destination server. |
| | | * @param hostNameDestination the host name of the destination server. |
| | | */ |
| | | void setHostNameDestination(String hostNameDestination) |
| | | public void setHostNameDestination(String hostNameDestination) |
| | | { |
| | | this.hostNameDestination = hostNameDestination; |
| | | } |
| | |
| | | * Returns the port of the destination server. |
| | | * @return the port of the destination server. |
| | | */ |
| | | int getPortDestination() |
| | | public int getPortDestination() |
| | | { |
| | | return portDestination; |
| | | } |
| | |
| | | * Sets the port of the destination server. |
| | | * @param portDestination the port of the destination server. |
| | | */ |
| | | void setPortDestination(int portDestination) |
| | | public void setPortDestination(int portDestination) |
| | | { |
| | | this.portDestination = portDestination; |
| | | } |