| | |
| | | * information: "Portions Copyright [year] [name of copyright owner]". |
| | | * |
| | | * Copyright 2008-2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011-2015 ForgeRock AS. |
| | | * Portions Copyright 2011-2016 ForgeRock AS. |
| | | */ |
| | | package org.opends.quicksetup; |
| | | |
| | |
| | | import org.opends.quicksetup.installer.NewSuffixOptions; |
| | | import org.opends.quicksetup.installer.SuffixesToReplicateOptions; |
| | | import org.opends.quicksetup.util.Utils; |
| | | import org.opends.server.types.HostPort; |
| | | import org.opends.server.util.CollectionUtils; |
| | | |
| | | import com.forgerock.opendj.cli.CliConstants; |
| | |
| | | public class UserData |
| | | { |
| | | private String serverLocation; |
| | | private String hostName; |
| | | private int serverPort; |
| | | private HostPort hostPort = new HostPort(null, 0); |
| | | private int adminConnectorPort; |
| | | private String directoryManagerDn; |
| | | private String directoryManagerPwd; |
| | |
| | | */ |
| | | public void setHostName(String hostName) |
| | | { |
| | | this.hostName = hostName; |
| | | hostPort = new HostPort(hostName, hostPort.getPort()); |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | public String getHostName() |
| | | { |
| | | return hostName; |
| | | return hostPort.getHost(); |
| | | } |
| | | |
| | | /** |
| | | * Returns the server host name and LDAP port. |
| | | * @return the server host name and LDAP port. |
| | | */ |
| | | public HostPort getHostPort() |
| | | { |
| | | return hostPort; |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | public void setServerPort(int serverPort) |
| | | { |
| | | this.serverPort = serverPort; |
| | | hostPort = new HostPort(hostPort.getHost(), serverPort); |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | public int getServerPort() |
| | | { |
| | | return serverPort; |
| | | return hostPort.getPort(); |
| | | } |
| | | |
| | | /** |