use of org.talend.components.marklogic.runtime.TMarkLogicConnectionStandalone in project components by Talend.
the class MarkLogicDatastoreRuntime method doHealthChecks.
@Override
public Iterable<ValidationResult> doHealthChecks(RuntimeContainer container) {
TMarkLogicConnectionStandalone standalone = new TMarkLogicConnectionStandalone();
ValidationResult validationResult;
try {
standalone.initialize(container, properties);
standalone.connect(container);
validationResult = ValidationResult.OK;
} catch (ComponentException ce) {
validationResult = new ValidationResult(ce);
}
return Collections.singletonList(validationResult);
}
Aggregations