Package org.nuxeo.launcher.config
Class BackingServiceConfigurator
- java.lang.Object
-
- org.nuxeo.launcher.config.BackingServiceConfigurator
-
public class BackingServiceConfigurator extends Object
Calls backing services checks to verify that they are ready to use before starting Nuxeo.- Since:
- 9.2
-
-
Field Summary
Fields Modifier and Type Field Description protected Set<BackingChecker>
checkers
protected ConfigurationGenerator
configurationGenerator
protected static String
JAR_EXTENSION
protected static Logger
log
static String
PARAM_CHECK_CLASSPATH_SUFFIX
static String
PARAM_CHECK_SUFFIX
static String
PARAM_POLICY_DEFAULT_DELAY_IN_MS
static String
PARAM_RETRY_POLICY_DEFAULT_RETRIES
static String
PARAM_RETRY_POLICY_DELAY_IN_MS
static String
PARAM_RETRY_POLICY_ENABLED
static String
PARAM_RETRY_POLICY_MAX_RETRIES
-
Constructor Summary
Constructors Constructor Description BackingServiceConfigurator(ConfigurationGenerator configurationGenerator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected net.jodah.failsafe.RetryPolicy
buildRetryPolicy()
protected Collection<BackingChecker>
getCheckers()
protected Optional<URLClassLoader>
getClassLoaderForTemplate(File templateDir, String classPathEntry)
Build a ClassLoader based on the classpath definition of a template.protected File
getTemplateDir(String item)
void
verifyInstallation()
Calls all BackingChecker if they accept the current configuration.
-
-
-
Field Detail
-
PARAM_RETRY_POLICY_ENABLED
public static final String PARAM_RETRY_POLICY_ENABLED
- See Also:
- Constant Field Values
-
PARAM_RETRY_POLICY_MAX_RETRIES
public static final String PARAM_RETRY_POLICY_MAX_RETRIES
- See Also:
- Constant Field Values
-
PARAM_RETRY_POLICY_DELAY_IN_MS
public static final String PARAM_RETRY_POLICY_DELAY_IN_MS
- See Also:
- Constant Field Values
-
PARAM_POLICY_DEFAULT_DELAY_IN_MS
public static final String PARAM_POLICY_DEFAULT_DELAY_IN_MS
- See Also:
- Constant Field Values
-
PARAM_RETRY_POLICY_DEFAULT_RETRIES
public static final String PARAM_RETRY_POLICY_DEFAULT_RETRIES
- See Also:
- Constant Field Values
-
PARAM_CHECK_CLASSPATH_SUFFIX
public static final String PARAM_CHECK_CLASSPATH_SUFFIX
- See Also:
- Constant Field Values
-
PARAM_CHECK_SUFFIX
public static final String PARAM_CHECK_SUFFIX
- See Also:
- Constant Field Values
-
JAR_EXTENSION
protected static final String JAR_EXTENSION
- See Also:
- Constant Field Values
-
checkers
protected Set<BackingChecker> checkers
-
configurationGenerator
protected ConfigurationGenerator configurationGenerator
-
-
Constructor Detail
-
BackingServiceConfigurator
public BackingServiceConfigurator(ConfigurationGenerator configurationGenerator)
-
-
Method Detail
-
verifyInstallation
public void verifyInstallation() throws ConfigurationException
Calls all BackingChecker if they accept the current configuration.- Throws:
ConfigurationException
-
buildRetryPolicy
protected net.jodah.failsafe.RetryPolicy buildRetryPolicy()
-
getCheckers
protected Collection<BackingChecker> getCheckers() throws ConfigurationException
- Throws:
ConfigurationException
-
getTemplateDir
protected File getTemplateDir(String item) throws ConfigurationException
- Throws:
ConfigurationException
-
getClassLoaderForTemplate
protected Optional<URLClassLoader> getClassLoaderForTemplate(File templateDir, String classPathEntry) throws ConfigurationException, IOException
Build a ClassLoader based on the classpath definition of a template.- Throws:
ConfigurationException
IOException
- Since:
- 9.2
-
-