Class MongoDBChecker
- java.lang.Object
-
- org.nuxeo.ecm.core.storage.mongodb.MongoDBChecker
-
- All Implemented Interfaces:
BackingChecker
public class MongoDBChecker extends Object implements BackingChecker
-
-
Field Summary
Fields Modifier and Type Field Description static String
CONFIG_NAME
static int
DEFAULT_CHECK_TIMEOUT_IN_SECONDS
static String
PARAM_MONGODB_CHECK_TIMEOUT
static String
TEMPLATE_NAME
-
Constructor Summary
Constructors Constructor Description MongoDBChecker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.<T> T
getDescriptor(File file, Class<T> klass)
Creates a descriptor instance for the specified file and descriptor class.
-
-
-
Field Detail
-
TEMPLATE_NAME
public static final String TEMPLATE_NAME
- See Also:
- Constant Field Values
-
CONFIG_NAME
public static final String CONFIG_NAME
- See Also:
- Constant Field Values
-
PARAM_MONGODB_CHECK_TIMEOUT
public static final String PARAM_MONGODB_CHECK_TIMEOUT
- Since:
- 9.3
- See Also:
- Constant Field Values
-
DEFAULT_CHECK_TIMEOUT_IN_SECONDS
public static final int DEFAULT_CHECK_TIMEOUT_IN_SECONDS
- Since:
- 9.3
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MongoDBChecker
public MongoDBChecker()
-
-
Method Detail
-
accepts
public boolean accepts(ConfigurationGenerator cg)
Description copied from interface:BackingChecker
Test if the check has to be done for the given configuration.- Specified by:
accepts
in interfaceBackingChecker
- Parameters:
cg
- The current configuration- Returns:
- true if
BackingChecker.check(ConfigurationGenerator)
has to be called.
-
check
public void check(ConfigurationGenerator cg) throws ConfigurationException
Description copied from interface:BackingChecker
Test the availbilty of the backing service.- Specified by:
check
in interfaceBackingChecker
- Parameters:
cg
- The current configuration- Throws:
ConfigurationException
- if backing service is not available.
-
getDescriptor
public <T> T getDescriptor(File file, Class<T> klass) throws ConfigurationException
Creates a descriptor instance for the specified file and descriptor class.- Throws:
ConfigurationException
- Since:
- 11.1
-
-