Search in sources :

Example 1 with RDBVersionGCSupport

use of org.apache.jackrabbit.oak.plugins.document.rdb.RDBVersionGCSupport in project jackrabbit-oak by apache.

the class VersionGCSupportTest method fixtures.

@Parameterized.Parameters(name = "{0}")
public static java.util.Collection<Object[]> fixtures() {
    List<Object[]> fixtures = Lists.newArrayList();
    if (RDB_H2.isAvailable()) {
        RDBDocumentStore store = (RDBDocumentStore) RDB_H2.createDocumentStore();
        fixtures.add(new Object[] { RDB_H2, store, new RDBVersionGCSupport(store) });
    }
    if (MONGO.isAvailable()) {
        MongoDocumentStore store = (MongoDocumentStore) MONGO.createDocumentStore();
        fixtures.add(new Object[] { MONGO, store, new MongoVersionGCSupport(store) });
    }
    if (MEMORY.isAvailable()) {
        DocumentStore store = new MemoryDocumentStore();
        fixtures.add(new Object[] { MEMORY, store, new VersionGCSupport(store) });
    }
    return fixtures;
}
Also used : RDBDocumentStore(org.apache.jackrabbit.oak.plugins.document.rdb.RDBDocumentStore) MongoDocumentStore(org.apache.jackrabbit.oak.plugins.document.mongo.MongoDocumentStore) RDBDocumentStore(org.apache.jackrabbit.oak.plugins.document.rdb.RDBDocumentStore) MemoryDocumentStore(org.apache.jackrabbit.oak.plugins.document.memory.MemoryDocumentStore) MongoVersionGCSupport(org.apache.jackrabbit.oak.plugins.document.mongo.MongoVersionGCSupport) RDBVersionGCSupport(org.apache.jackrabbit.oak.plugins.document.rdb.RDBVersionGCSupport) RDBVersionGCSupport(org.apache.jackrabbit.oak.plugins.document.rdb.RDBVersionGCSupport) MemoryDocumentStore(org.apache.jackrabbit.oak.plugins.document.memory.MemoryDocumentStore) MongoVersionGCSupport(org.apache.jackrabbit.oak.plugins.document.mongo.MongoVersionGCSupport) MongoDocumentStore(org.apache.jackrabbit.oak.plugins.document.mongo.MongoDocumentStore)

Aggregations

MemoryDocumentStore (org.apache.jackrabbit.oak.plugins.document.memory.MemoryDocumentStore)1 MongoDocumentStore (org.apache.jackrabbit.oak.plugins.document.mongo.MongoDocumentStore)1 MongoVersionGCSupport (org.apache.jackrabbit.oak.plugins.document.mongo.MongoVersionGCSupport)1 RDBDocumentStore (org.apache.jackrabbit.oak.plugins.document.rdb.RDBDocumentStore)1 RDBVersionGCSupport (org.apache.jackrabbit.oak.plugins.document.rdb.RDBVersionGCSupport)1