public class InstanceLayout extends AbstractLayout
<instance directory> | +-- conf/ | | | +-- config.ldif | | | +-- wrapper.conf | | | +-- log4j.properties | | | +-- <keystore file> | +-- partitions/ | | | +-- system/ | | | | | +-- master.db | | | | | +-- objectclass.db | | | | | +-- objectclass.lg | | | | | +-- <index XXX lg and db files> | | | +-- schema/ | | | | | : | | | +-- <partition XXX>/ | | | | : : | +-- log/ | | | [+-- journal.ldif] | | | +-- <log file> | +-- run/ | +-- cache/ | +-- syncrepl-data/
Modifier and Type | Field and Description |
---|---|
static String |
CONF_NAME |
static String |
LOG_NAME
Static directory names
|
static String |
PARTITIONS_NAME |
static String |
RUN_NAME |
Constructor and Description |
---|
InstanceLayout(File instanceDirectory)
Creates a new instance of InstanceLayout.
|
InstanceLayout(String instanceDirectoryPath)
Creates a new instance of InstanceLayout.
|
Modifier and Type | Method and Description |
---|---|
File |
getApacheDsConfigurationLdifFile()
Gets the apacheds configuration ldif file ('<instance>/conf/config.ldif').
|
File |
getCacheDirectory()
Gets the 'cache' directory ('<instance>/cache').
|
File |
getConfDirectory()
Gets the 'conf' directory ('<instance>/conf').
|
File |
getInstanceDirectory()
Gets the instance directory.
|
File |
getKeyStoreFile()
Gets the apacheds KeyStore file ('<instance>/conf/apacheds.ks').
|
File |
getLogConfigurationFile()
Gets the log configuration file ('<instance>/conf/log4j.properties').
|
File |
getLogDirectory()
Gets the 'log' directory ('<instance>/log').
|
File |
getPartitionsDirectory()
Gets the 'partitions' directory ('<instance>/partitions')
|
File |
getReplDirectory()
Gets the 'replication' directory where replication journals are stored
('<instance>/syncrepl-data').
|
File |
getRunDirectory()
Gets the 'run' directory in the installation directory ('<instance>/run').
|
File |
getWrapperConfigurationFile()
Gets the wrapper configuration file ('<instance>/conf/wrapper.conf').
|
void |
setCacheDir(File cacheDir) |
void |
setConfDir(File confDir) |
void |
setLogDir(File logDir) |
void |
setPartitionsDir(File partitionsDir) |
void |
setReplDirectory(File replDir)
Sets the directory where the replication data are stored
|
void |
setRunDir(File runDir) |
String |
toString() |
getDirectory, getRequiredDirectories, getRequiredFiles, mkdirs, setRequiredDirectories, setRequiredFiles, verifyInstallation
public static final String LOG_NAME
public static final String RUN_NAME
public static final String CONF_NAME
public static final String PARTITIONS_NAME
public InstanceLayout(File instanceDirectory)
instanceDirectory
- the instance directorypublic InstanceLayout(String instanceDirectoryPath)
instanceDirectoryPath
- the path to the instance directorypublic File getConfDirectory()
public void setConfDir(File confDir)
confDir
- the confDir to setpublic File getCacheDirectory()
public void setCacheDir(File cacheDir)
cacheDir
- the confDir to setpublic File getLogDirectory()
public File getPartitionsDirectory()
public void setPartitionsDir(File partitionsDir)
partitionsDir
- the partitionsDir to setpublic File getRunDirectory()
public File getInstanceDirectory()
public File getLogConfigurationFile()
public File getWrapperConfigurationFile()
public File getApacheDsConfigurationLdifFile()
public File getKeyStoreFile()
public File getReplDirectory()
public void setReplDirectory(File replDir)
replDir
- the replication journal data directorypublic String toString()
toString
in class Object
String.toString()
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.