1073N/A * The contents of this file are subject to the terms of the 1073N/A * Common Development and Distribution License, Version 1.0 only 1073N/A * (the "License"). You may not use this file except in compliance 1073N/A * You can obtain a copy of the license at 1073N/A * See the License for the specific language governing permissions 1073N/A * and limitations under the License. 1073N/A * When distributing Covered Code, include this CDDL HEADER in each 1073N/A * file and include the License file at 1073N/A * add the following below this CDDL HEADER, with the fields enclosed 1073N/A * by brackets "[]" replaced with your own identifying information: 1073N/A * Portions Copyright [yyyy] [name of copyright owner] 5035N/A * Copyright 2006-2010 Sun Microsystems, Inc. 6238N/A * Portions Copyright 2013 ForgeRock AS. 1073N/A * Represents the contents of an OpenDS configuration file. 1073N/A * Create a Configuration from a file. 1570N/A * @param install of which this configuration is part 1073N/A * @param file config.ldif file 1073N/A // Leave open the possibility that the file might be 1073N/A * Returns the list of directory manager dns as they appear in the 1073N/A * @return the list of directory manager dns as they appear in the 1073N/A * @throws IOException if there were problems reading the information from 1073N/A * Provides the LDAP port as is specified in the config.ldif file. 1073N/A * @return the LDAP port specified in the config.ldif file. 1073N/A * @throws IOException if there were problems reading the information from 4576N/A * Provides the administration port as is specified in the config.ldif file. 4576N/A * @return the administration port specified in the config.ldif file. 4576N/A * @throws IOException if there were problems reading the information from 1970N/A * Tells whether this server is configured as a replication server or not. 1970N/A * @return <CODE>true</CODE> if the server is configured as a Replication 1970N/A * Server and <CODE>false</CODE> otherwise. 1970N/A * @throws IOException if there were problems reading the information from 1970N/A * Provides the Replication port as is specified in the config.ldif file. 1970N/A * Returns -1 if this server is not a Replication Server. 1970N/A * @return the Replication port specified in the config.ldif file. 1970N/A * @throws IOException if there were problems reading the information from 1073N/A * Returns the list of paths where the logs files are located as they appear 1073N/A * in the configuration file. 1073N/A * @return the list of paths where the logs files are located as they appear 1073N/A * in the configuration file. 1073N/A * @throws IOException if there were problems reading the information from 1073N/A * Indicates whether the config.ldif file has been modified (compared to what 1073N/A * we had in the zip file). This is used to know if we have configured the 1073N/A * @return <CODE>true</CODE> if the config.ldif file has been modified, or 1073N/A * <CODE>false</CODE> if not. 1073N/A * @throws IOException if there were problems reading the information from 1073N/A // TODO: this is not really stable 1073N/A // Note: a better way might be to diff this file with 1570N/A * Returns a Set of relative paths containing the log paths outside the 1570N/A * @return a Set of relative paths containing the log paths outside the 1570N/A * @throws IOException if there is trouble reading the config file 1570N/A * Returns a Set of relative paths containing the db paths outside the 1570N/A * @return a Set of relative paths containing the db paths outside the 1570N/A * @throws IOException if there is trouble reading the config file 1073N/A * Provides the contents of the config.ldif file in a String. 1073N/A * @return a String representing the contents of the config.ldif file. 1073N/A * @throws IOException if there was a problem reading the file 2707N/A * Provides the contents of the config.ldif file in a lower case String. 2707N/A * @return a lower case String representing the contents of the config.ldif 2707N/A * @throws IOException if there was a problem reading the file 1570N/A * Returns the list of paths where the databases are installed as they appear 1570N/A * in the configuration file. 1570N/A * @return the list of paths where the databases are installed as they appear 1570N/A * in the configuration file. 1570N/A * @throws IOException if there is a problem reading the config file. 1970N/A * Returns the list of base dns as they appear in the configuration file. 1970N/A * @return the list of base dns as they appear in the configuration file. 1970N/A * @throws IOException if there is a problem reading the config file. 1073N/A * Loads the contents of the configuration file into memory. 1073N/A * @throws IOException if there were problems loading the file 1073N/A // We do not care about encoding: we are just interested in the ports