Nuxeo Enterprise Platform 5.4

org.nuxeo.launcher.config
Class TomcatConfigurator

java.lang.Object
  extended by org.nuxeo.launcher.config.ServerConfigurator
      extended by org.nuxeo.launcher.config.TomcatConfigurator

public class TomcatConfigurator
extends ServerConfigurator

Author:
jcarsique

Field Summary
static String DEFAULT_DATA_DIR
           
static String DEFAULT_TMP_DIR
           
static String STARTUP_CLASS
           
static String TOMCAT_CONFIG
          Deprecated. Use getTomcatConfig()
 
Fields inherited from class org.nuxeo.launcher.config.ServerConfigurator
NUXEO_SYSTEM_PROPERTIES
 
Constructor Summary
TomcatConfigurator(ConfigurationGenerator configurationGenerator)
           
 
Method Summary
 void checkPaths()
          Check server paths; warn if existing deprecated paths.
 void cleanupPostWizard()
           
 File getConfigDir()
           
 String getDefaultTmpDir()
           
 File getLogConfFile()
           
 File getRuntimeHome()
          Returns the Home of NuxeoRuntime (same as Framework.getRuntime().getHome().getAbsolutePath())
 File getServerLibDir()
           
 String getTomcatConfig()
           
 boolean isWizardAvailable()
           
 void prepareWizardStart()
           
 
Methods inherited from class org.nuxeo.launcher.config.ServerConfigurator
dumpProperties, filterSystemProperties, getDataDir, getDirectory, getLogDir, getNuxeoLibDir, getPidDir, getTmpDir, initLogs, removeExistingLocks, setDataDir, setDirectory, setLogDir, setPidDir, setTmpDir
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TOMCAT_CONFIG

@Deprecated
public static final String TOMCAT_CONFIG
Deprecated. Use getTomcatConfig()
See Also:
Constant Field Values

DEFAULT_DATA_DIR

public static final String DEFAULT_DATA_DIR

DEFAULT_TMP_DIR

public static final String DEFAULT_TMP_DIR
Since:
5.4.2
See Also:
Constant Field Values

STARTUP_CLASS

public static final String STARTUP_CLASS
Since:
5.4.2
See Also:
Constant Field Values
Constructor Detail

TomcatConfigurator

public TomcatConfigurator(ConfigurationGenerator configurationGenerator)
Method Detail

checkPaths

public void checkPaths()
                throws ConfigurationException
Description copied from class: ServerConfigurator
Check server paths; warn if existing deprecated paths. Override this method to perform server specific checks.

Overrides:
checkPaths in class ServerConfigurator
Throws:
ConfigurationException - If deprecated paths have been detected

getDefaultTmpDir

public String getDefaultTmpDir()
Specified by:
getDefaultTmpDir in class ServerConfigurator
Returns:
Default temporary directory path relative to Nuxeo Home

getLogConfFile

public File getLogConfFile()
Specified by:
getLogConfFile in class ServerConfigurator
Returns:
Log4J configuration file

getConfigDir

public File getConfigDir()
Specified by:
getConfigDir in class ServerConfigurator
Returns:
Nuxeo config directory

getTomcatConfig

public String getTomcatConfig()
Returns:
Path to Tomcat configuration of Nuxeo context
Since:
5.4.2

prepareWizardStart

public void prepareWizardStart()
Specified by:
prepareWizardStart in class ServerConfigurator

cleanupPostWizard

public void cleanupPostWizard()
Specified by:
cleanupPostWizard in class ServerConfigurator

isWizardAvailable

public boolean isWizardAvailable()
Specified by:
isWizardAvailable in class ServerConfigurator
Returns:
true if configuration wizard is required before starting Nuxeo

getRuntimeHome

public File getRuntimeHome()
Description copied from class: ServerConfigurator
Returns the Home of NuxeoRuntime (same as Framework.getRuntime().getHome().getAbsolutePath())

Returns:

getServerLibDir

public File getServerLibDir()
Specified by:
getServerLibDir in class ServerConfigurator
Returns:
Server's third party libraries directory

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.