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 aDocumentNodeStore
backed 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 MissingLastRevSeeker
createMissingLastRevSeeker()
java.lang.Iterable<org.apache.jackrabbit.oak.plugins.blob.ReferencedBlob>
createReferencedBlobs(DocumentNodeStore ns)
VersionGCSupport
createVersionGCSupport()
static RDBDocumentNodeStoreBuilder
newRDBDocumentNodeStoreBuilder()
RDBDocumentNodeStoreBuilder
setRDBConnection(javax.sql.DataSource ds)
Sets aDataSource
to use for the RDB document and blob stores.RDBDocumentNodeStoreBuilder
setRDBConnection(javax.sql.DataSource documentStoreDataSource, javax.sql.DataSource blobStoreDataSource)
Sets aDataSource
s to use for the RDB document and blob stores.RDBDocumentNodeStoreBuilder
setRDBConnection(javax.sql.DataSource documentStoreDataSource, javax.sql.DataSource blobStoreDataSource, RDBOptions options)
Sets aDataSource
s to use for the RDB document and blob stores, includingRDBOptions
.RDBDocumentNodeStoreBuilder
setRDBConnection(javax.sql.DataSource ds, RDBOptions options)
Sets aDataSource
to 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, getDocStoreThrottlingFeature, getDocumentCacheSize, getDocumentStore, getDocumentStoreStatsCollector, getExecutor, getGCMonitor, getJournalGCMaxAge, getJournalPropertyHandlerFactory, getLeaseCheck, getLeaseFailureHandler, getLocalDiffCacheSize, getLogging, getMemoryDiffCacheSize, getNodeCachePathPredicate, getNodeCachePredicate, getNodeCacheSize, getNodeStoreStatsCollector, getPersistenceCacheStats, getPersistentCache, getPrefetchFeature, getPrevDocumentCacheSize, getReadOnlyMode, getRevisionGCMaxAge, getStatisticsProvider, getSuspendTimeoutMillis, getThrottlingStatsCollector, getTiming, getUpdateLimit, getWeigher, isBundlingDisabled, isClusterInvisible, isDisableBranches, isPrefetchExternalChanges, isThrottlingEnabled, isUseSimpleRevision, memoryCacheDistribution, memoryCacheSize, newDocumentNodeStoreBuilder, setAsyncDelay, setBlobStore, setBundlingDisabled, setCacheEmptyCommitValue, setCacheSegmentCount, setCacheStackMoveDistance, setClusterId, setClusterInvisible, setCommitValueCacheSize, setDocStoreThrottlingFeature, setDocumentStore, setDocumentStoreStatsCollector, setExecutor, setGCMonitor, setJournalCache, setJournalGCMaxAge, setJournalPropertyHandlerFactory, setLeaseCheck, setLeaseCheckMode, setLeaseFailureHandler, setLogging, setLoggingPrefix, setNodeCachePathPredicate, setNodeCachePredicate, setNodeStoreStatsCollector, setPersistentCache, setPrefetchExternalChanges, setPrefetchFeature, setReadOnlyMode, setRevisionGCMaxAge, setStatisticsProvider, setSuspendTimeoutMillis, setThrottlingEnabled, setThrottlingStatsCollector, 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 aDataSource
to use for the RDB document and blob stores.- Returns:
- this
-
setRDBConnection
public RDBDocumentNodeStoreBuilder setRDBConnection(javax.sql.DataSource ds, RDBOptions options)
Sets aDataSource
to use for the RDB document and blob stores, includingRDBOptions
.- Returns:
- this
-
setRDBConnection
public RDBDocumentNodeStoreBuilder setRDBConnection(javax.sql.DataSource documentStoreDataSource, javax.sql.DataSource blobStoreDataSource)
Sets aDataSource
s 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 aDataSource
s to use for the RDB document and blob stores, includingRDBOptions
.- Returns:
- this
-
createVersionGCSupport
public VersionGCSupport createVersionGCSupport()
- Overrides:
createVersionGCSupport
in classDocumentNodeStoreBuilder<RDBDocumentNodeStoreBuilder>
-
createReferencedBlobs
public java.lang.Iterable<org.apache.jackrabbit.oak.plugins.blob.ReferencedBlob> createReferencedBlobs(DocumentNodeStore ns)
- Overrides:
createReferencedBlobs
in classDocumentNodeStoreBuilder<RDBDocumentNodeStoreBuilder>
-
createMissingLastRevSeeker
public MissingLastRevSeeker createMissingLastRevSeeker()
- Overrides:
createMissingLastRevSeeker
in classDocumentNodeStoreBuilder<RDBDocumentNodeStoreBuilder>
-
-