Search in sources :

Example 11 with RepositoryContext

use of org.apache.jackrabbit.core.RepositoryContext in project jackrabbit-oak by apache.

the class MigrationFactory method createUpgrade.

public RepositoryUpgrade createUpgrade() throws IOException, RepositoryException, CliArgumentException {
    RepositoryContext src = stores.getSrcStore().create(closer);
    BlobStore srcBlobStore = new DataStoreBlobStore(src.getDataStore());
    NodeStore dstStore = createTarget(closer, srcBlobStore);
    return createUpgrade(src, dstStore);
}
Also used : RepositoryContext(org.apache.jackrabbit.core.RepositoryContext) NodeStore(org.apache.jackrabbit.oak.spi.state.NodeStore) BlobStore(org.apache.jackrabbit.oak.spi.blob.BlobStore) DataStoreBlobStore(org.apache.jackrabbit.oak.plugins.blob.datastore.DataStoreBlobStore) DataStoreBlobStore(org.apache.jackrabbit.oak.plugins.blob.datastore.DataStoreBlobStore)

Aggregations

RepositoryContext (org.apache.jackrabbit.core.RepositoryContext)11 RepositoryConfig (org.apache.jackrabbit.core.config.RepositoryConfig)7 Session (javax.jcr.Session)3 RepositoryImpl (org.apache.jackrabbit.core.RepositoryImpl)2 NodeStore (org.apache.jackrabbit.oak.spi.state.NodeStore)2 File (java.io.File)1 Writer (java.io.Writer)1 Node (javax.jcr.Node)1 RepositoryException (javax.jcr.RepositoryException)1 RepositoryStatistics (org.apache.jackrabbit.api.stats.RepositoryStatistics)1 Oak (org.apache.jackrabbit.oak.Oak)1 Jcr (org.apache.jackrabbit.oak.jcr.Jcr)1 DataStoreBlobStore (org.apache.jackrabbit.oak.plugins.blob.datastore.DataStoreBlobStore)1 DocumentMK (org.apache.jackrabbit.oak.plugins.document.DocumentMK)1 DocumentNodeStore (org.apache.jackrabbit.oak.plugins.document.DocumentNodeStore)1 MemoryNodeStore (org.apache.jackrabbit.oak.plugins.memory.MemoryNodeStore)1 MemoryStore (org.apache.jackrabbit.oak.segment.memory.MemoryStore)1 BlobStore (org.apache.jackrabbit.oak.spi.blob.BlobStore)1 RepositoryInitializer (org.apache.jackrabbit.oak.spi.lifecycle.RepositoryInitializer)1 NodeBuilder (org.apache.jackrabbit.oak.spi.state.NodeBuilder)1