SLING-5437 add connection check for couchbase resource provider
define separate NoSqlAdapter methods for creating index definitions, to ensure they are only executed after connection test succeeds
set versions to 1.1.0

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1725576 13f79535-47bb-0310-9956-ffa450edef68
2 files changed
tree: b9eb4a86d420cc27bac9ea3a36913c2f0d8145db
  1. src/
  2. pom.xml
  3. README.md
README.md

Apache Sling NoSQL Couchbase Resource Provider

Sling ResourceProvider implementation that uses Couchbase NoSQL database as persistence.

Based on the “Apache Sling NoSQL Generic Resource Provider” and “Apache Sling NoSQL Couchbase Client”.

Couchbase Server 4.0 with N1QL support is required for this implementation.

Configuration on deployment

  • To use the resource provider you have to to create a factory configuration for “Apache Sling NoSQL Couchbase Client” with clientId = ´sling-resourceprovider-couchbase´ and propert couchbase host and bucket configuration.
  • Additionally a factory configuration for “Apache Sling NoSQL Couchbase Resource Provider Factory” defines the root of the resource tree that should be stored in Couchbase

Run integration tests

To run the integration tests you have to set up a real couchbase server and run the tests with this command line (inserting the correct parameters for couchbase host and bucket):

mvn -Pcouchbase-integration-test -DcouchbaseHosts=localhost:8091 -DbucketName=test integration-test