public abstract class ServerConfigurator extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_DATA_DIR |
static String |
DEFAULT_TMP_DIR |
static List<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.
|
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() |
String |
getDefaultTmpDir() |
File |
getDirectory(String key) |
abstract File |
getLogConfFile() |
File |
getLogDir() |
File |
getNuxeoLibDir() |
File |
getPidDir() |
abstract File |
getServerLibDir() |
File |
getTmpDir() |
void |
initLogs()
Initialize logs
|
boolean |
isWizardAvailable()
Override it to make the wizard available for a given server.
|
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) |
void |
verifyInstallation() |
public static final String DEFAULT_DATA_DIR
public static final String DEFAULT_TMP_DIR
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 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 void prepareWizardStart()
public void cleanupPostWizard()
public boolean isWizardAvailable()
prepareWizardStart()
,
cleanupPostWizard()
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()
public void verifyInstallation() throws ConfigurationException
ConfigurationException
Copyright © 2013 Nuxeo SA. All Rights Reserved.