public class MongoDBChecker extends Object implements BackingChecker
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_CHECK_TIMEOUT_IN_SECONDS |
static String |
PARAM_MONGODB_CHECK_TIMEOUT |
static String |
TEMPLATE_NAME |
| Constructor and Description |
|---|
MongoDBChecker() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(ConfigurationGenerator cg)
Test if the check has to be done for the given configuration.
|
void |
check(ConfigurationGenerator cg)
Test the availbilty of the backing service.
|
public static final String TEMPLATE_NAME
public static final String PARAM_MONGODB_CHECK_TIMEOUT
public static final int DEFAULT_CHECK_TIMEOUT_IN_SECONDS
public MongoDBChecker()
public boolean accepts(ConfigurationGenerator cg)
BackingCheckeraccepts in interface BackingCheckercg - The current configurationBackingChecker.check(ConfigurationGenerator) has to be called.public void check(ConfigurationGenerator cg) throws ConfigurationException
BackingCheckercheck in interface BackingCheckercg - The current configurationConfigurationException - if backing service is not available.Copyright © 2019 Nuxeo. All rights reserved.