public abstract class ServerConfigurator extends Object
Modifier and Type | Field and Description |
---|---|
static String[] |
NUXEO_SYSTEM_PROPERTIES |
Constructor and Description |
---|
ServerConfigurator(ConfigurationGenerator configurationGenerator) |
Modifier and Type | Method and Description |
---|---|
void |
checkPaths()
Check server paths; warn if existing deprecated paths.
|
abstract void |
cleanupPostWizard() |
void |
dumpProperties(Properties userConfig) |
Properties |
filterSystemProperties(Properties properties)
Extract Nuxeo properties from given Properties (System properties are
removed, except those set by Nuxeo)
|
abstract File |
getConfigDir() |
File |
getDataDir() |
abstract String |
getDefaultTmpDir() |
File |
getDirectory(String key) |
abstract File |
getLogConfFile() |
File |
getLogDir() |
File |
getNuxeoLibDir() |
File |
getPidDir() |
abstract File |
getServerLibDir() |
File |
getTmpDir() |
void |
initLogs()
Initialize logs
|
abstract boolean |
isWizardAvailable() |
abstract void |
prepareWizardStart() |
void |
removeExistingLocks()
Remove locks on file system (dedicated to Lucene locks)
|
void |
setDataDir(String dataDirStr) |
void |
setDirectory(String key,
String directory) |
void |
setLogDir(String logDirStr) |
void |
setPidDir(String pidDirStr) |
void |
setTmpDir(String tmpDirStr) |
public static final String[] NUXEO_SYSTEM_PROPERTIES
public ServerConfigurator(ConfigurationGenerator configurationGenerator)
public File getDataDir()
public File getLogDir()
public void setDataDir(String dataDirStr)
dataDirStr
- Data directory path to setpublic void setLogDir(String logDirStr)
logDirStr
- Log directory path to setpublic void initLogs()
public File getPidDir()
public void setPidDir(String pidDirStr)
pidDirStr
- Pid directory path to setpublic void checkPaths() throws ConfigurationException
ConfigurationException
- If deprecated paths have been detectedpublic File getTmpDir()
public abstract String getDefaultTmpDir()
public void setTmpDir(String tmpDirStr)
tmpDirStr
- Temporary directory path to setpublic void setDirectory(String key, String directory)
key
- directory system keydirectory
- absolute or relative directory pathEnvironment
public File getDirectory(String key)
key
- directory system keyEnvironment
public abstract File getLogConfFile()
public void removeExistingLocks()
public abstract File getConfigDir()
public abstract void prepareWizardStart()
public abstract void cleanupPostWizard()
public abstract boolean isWizardAvailable()
public void dumpProperties(Properties userConfig)
userConfig
- Properties to dump into config directorypublic Properties filterSystemProperties(Properties properties)
properties
- Properties to be filteredpublic File getNuxeoLibDir()
public abstract File getServerLibDir()
Copyright © 2011 Nuxeo SA. All Rights Reserved.