public class Configuration extends Object
Constructor and Description |
---|
Configuration(Installation install,
File file)
Create a Configuration from a file.
|
Modifier and Type | Method and Description |
---|---|
int |
getAdminConnectorPort()
Provides the administration port as is specified in the config.ldif file.
|
Set<String> |
getBaseDNs()
Returns the list of base dns as they appear in the configuration file.
|
String |
getContents()
Provides the contents of the config.ldif file in a String.
|
Set<String> |
getDatabasePaths()
Returns the list of paths where the databases are installed as they appear
in the configuration file.
|
Set<String> |
getDirectoryManagerDns()
Returns the list of directory manager dns as they appear in the
configuration file.
|
Set<String> |
getLogPaths()
Returns the list of paths where the logs files are located as they appear
in the configuration file.
|
String |
getLowerCaseContents()
Provides the contents of the config.ldif file in a lower case String.
|
Set<String> |
getOutsideDbs()
Returns a Set of relative paths containing the db paths outside the
installation.
|
Set<String> |
getOutsideLogs()
Returns a Set of relative paths containing the log paths outside the
installation.
|
int |
getPort()
Provides the LDAP port as is specified in the config.ldif file.
|
int |
getReplicationPort()
Provides the Replication port as is specified in the config.ldif file.
|
boolean |
hasBeenModified()
Indicates whether the config.ldif file has been modified (compared to what
we had in the zip file).
|
boolean |
isReplicationServer()
Tells whether this server is configured as a replication server or not.
|
public Configuration(Installation install, File file)
install
- of which this configuration is partfile
- config.ldif filepublic Set<String> getDirectoryManagerDns() throws IOException
IOException
- if there were problems reading the information from
the configuration file.public int getPort() throws IOException
IOException
- if there were problems reading the information from
the configuration file.public int getAdminConnectorPort() throws IOException
IOException
- if there were problems reading the information from
the configuration file.public boolean isReplicationServer() throws IOException
true
if the server is configured as a Replication
Server and false
otherwise.IOException
- if there were problems reading the information from
the configuration file.public int getReplicationPort() throws IOException
IOException
- if there were problems reading the information from
the configuration file.public Set<String> getLogPaths() throws IOException
IOException
- if there were problems reading the information from
the configuration file.public boolean hasBeenModified() throws IOException
true
if the config.ldif file has been modified, or
false
if not.IOException
- if there were problems reading the information from
the configuration file.public Set<String> getOutsideLogs() throws IOException
IOException
- if there is trouble reading the config filepublic Set<String> getOutsideDbs() throws IOException
IOException
- if there is trouble reading the config filepublic String getContents() throws IOException
IOException
- if there was a problem reading the filepublic String getLowerCaseContents() throws IOException
IOException
- if there was a problem reading the filepublic Set<String> getDatabasePaths() throws IOException
IOException
- if there is a problem reading the config file.public Set<String> getBaseDNs() throws IOException
IOException
- if there is a problem reading the config file.Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.