| | |
| | | |
| | | import org.opends.admin.ads.ServerDescriptor; |
| | | import org.opends.admin.ads.SuffixDescriptor; |
| | | import org.opends.admin.ads.util.ConnectionUtils; |
| | | import org.opends.quicksetup.installer.AuthenticationData; |
| | | import org.opends.quicksetup.installer.DataReplicationOptions; |
| | | import org.opends.quicksetup.installer.NewSuffixOptions; |
| | |
| | | |
| | | private static String defaultHostName; |
| | | |
| | | private int connectTimeout = ConnectionUtils.getDefaultLDAPTimeout(); |
| | | |
| | | /** |
| | | * The script name to be used to get and set the java arguments for the |
| | | * server runtime. |
| | |
| | | "upgrade", "verify-index", "dbtest" |
| | | }; |
| | | } |
| | | |
| | | /** |
| | | * Sets the timeout to be used to establish a connection. |
| | | * @param connectTimeout the timeout to be used to establish a connection. |
| | | */ |
| | | public void setConnectTimeout(int connectTimeout) |
| | | { |
| | | this.connectTimeout = connectTimeout; |
| | | } |
| | | |
| | | /** |
| | | * Returns the timeout to be used to connect in milliseconds. |
| | | * @return the timeout to be used to connect in milliseconds. Returns |
| | | * {@code 0} if there is no timeout. |
| | | */ |
| | | public int getConnectTimeout() |
| | | { |
| | | return connectTimeout; |
| | | } |
| | | } |