Class RDBDocumentNodeStoreBuilder
- java.lang.Object
-
- org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreBuilder<RDBDocumentNodeStoreBuilder>
-
- org.apache.jackrabbit.oak.plugins.document.rdb.RDBDocumentNodeStoreBuilder
-
public class RDBDocumentNodeStoreBuilder extends DocumentNodeStoreBuilder<RDBDocumentNodeStoreBuilder>
A builder for aDocumentNodeStorebacked by a relational database.
-
-
Field Summary
-
Fields inherited from class org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreBuilder
blobStoreSupplier, DEFAULT_CACHE_SEGMENT_COUNT, DEFAULT_CACHE_STACK_MOVE_DISTANCE, DEFAULT_CHILDREN_CACHE_PERCENTAGE, DEFAULT_DIFF_CACHE_PERCENTAGE, DEFAULT_MEMORY_CACHE_SIZE, DEFAULT_NODE_CACHE_PERCENTAGE, DEFAULT_PREV_DOC_CACHE_PERCENTAGE, DEFAULT_UPDATE_LIMIT, documentStoreSupplier
-
-
Constructor Summary
Constructors Constructor Description RDBDocumentNodeStoreBuilder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MissingLastRevSeekercreateMissingLastRevSeeker()java.lang.Iterable<org.apache.jackrabbit.oak.plugins.blob.ReferencedBlob>createReferencedBlobs(DocumentNodeStore ns)VersionGCSupportcreateVersionGCSupport()static RDBDocumentNodeStoreBuildernewRDBDocumentNodeStoreBuilder()RDBDocumentNodeStoreBuildersetRDBConnection(javax.sql.DataSource ds)Sets aDataSourceto use for the RDB document and blob stores.RDBDocumentNodeStoreBuildersetRDBConnection(javax.sql.DataSource documentStoreDataSource, javax.sql.DataSource blobStoreDataSource)Sets aDataSources to use for the RDB document and blob stores.RDBDocumentNodeStoreBuildersetRDBConnection(javax.sql.DataSource documentStoreDataSource, javax.sql.DataSource blobStoreDataSource, RDBOptions options)Sets aDataSources to use for the RDB document and blob stores, includingRDBOptions.RDBDocumentNodeStoreBuildersetRDBConnection(javax.sql.DataSource ds, RDBOptions options)Sets aDataSourceto use for the RDB document and blob stores, includingRDBOptions.-
Methods inherited from class org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreBuilder
build, buildChildrenCache, buildDocumentCache, buildLocalDiffCache, buildMemoryDiffCache, buildNodeCache, buildNodeDocumentCache, buildPrevDocumentsCache, clock, disableBranches, getAsyncDelay, getBlobStore, getBlobStoreCacheStats, getBlobStoreStats, getCacheEmptyCommitValue, getChildrenCacheSize, getClock, getClusterId, getCommitValueCacheSize, getDiffCache, getDiffCacheSize, getDocumentCacheSize, getDocumentStore, getDocumentStoreStatsCollector, getExecutor, getGCMonitor, getJournalGCMaxAge, getJournalPropertyHandlerFactory, getLeaseCheck, getLeaseFailureHandler, getLocalDiffCacheSize, getLogging, getMemoryDiffCacheSize, getNodeCachePathPredicate, getNodeCachePredicate, getNodeCacheSize, getNodeStoreStatsCollector, getPersistenceCacheStats, getPersistentCache, getPrevDocumentCacheSize, getReadOnlyMode, getRevisionGCMaxAge, getStatisticsProvider, getTiming, getUpdateLimit, getWeigher, isBundlingDisabled, isClusterInvisible, isDisableBranches, isPrefetchExternalChanges, isUseSimpleRevision, memoryCacheDistribution, memoryCacheSize, newDocumentNodeStoreBuilder, setAsyncDelay, setBlobStore, setBundlingDisabled, setCacheEmptyCommitValue, setCacheSegmentCount, setCacheStackMoveDistance, setClusterId, setClusterInvisible, setCommitValueCacheSize, setDocumentStore, setDocumentStoreStatsCollector, setExecutor, setGCMonitor, setJournalCache, setJournalGCMaxAge, setJournalPropertyHandlerFactory, setLeaseCheck, setLeaseCheckMode, setLeaseFailureHandler, setLogging, setLoggingPrefix, setNodeCachePathPredicate, setNodeCachePredicate, setNodeStoreStatsCollector, setPersistentCache, setPrefetchExternalChanges, setReadOnlyMode, setRevisionGCMaxAge, setStatisticsProvider, setTiming, setUpdateLimit, setUseSimpleRevision, thisBuilder, withWeigher
-
-
-
-
Method Detail
-
newRDBDocumentNodeStoreBuilder
public static RDBDocumentNodeStoreBuilder newRDBDocumentNodeStoreBuilder()
- Returns:
- a new
RDBDocumentNodeStoreBuilder.
-
setRDBConnection
public RDBDocumentNodeStoreBuilder setRDBConnection(javax.sql.DataSource ds)
Sets aDataSourceto use for the RDB document and blob stores.- Returns:
- this
-
setRDBConnection
public RDBDocumentNodeStoreBuilder setRDBConnection(javax.sql.DataSource ds, RDBOptions options)
Sets aDataSourceto use for the RDB document and blob stores, includingRDBOptions.- Returns:
- this
-
setRDBConnection
public RDBDocumentNodeStoreBuilder setRDBConnection(javax.sql.DataSource documentStoreDataSource, javax.sql.DataSource blobStoreDataSource)
Sets aDataSources to use for the RDB document and blob stores.- Returns:
- this
-
setRDBConnection
public RDBDocumentNodeStoreBuilder setRDBConnection(javax.sql.DataSource documentStoreDataSource, javax.sql.DataSource blobStoreDataSource, RDBOptions options)
Sets aDataSources to use for the RDB document and blob stores, includingRDBOptions.- Returns:
- this
-
createVersionGCSupport
public VersionGCSupport createVersionGCSupport()
- Overrides:
createVersionGCSupportin classDocumentNodeStoreBuilder<RDBDocumentNodeStoreBuilder>
-
createReferencedBlobs
public java.lang.Iterable<org.apache.jackrabbit.oak.plugins.blob.ReferencedBlob> createReferencedBlobs(DocumentNodeStore ns)
- Overrides:
createReferencedBlobsin classDocumentNodeStoreBuilder<RDBDocumentNodeStoreBuilder>
-
createMissingLastRevSeeker
public MissingLastRevSeeker createMissingLastRevSeeker()
- Overrides:
createMissingLastRevSeekerin classDocumentNodeStoreBuilder<RDBDocumentNodeStoreBuilder>
-
-