public abstract class MongoDocumentNodeStoreBuilderBase<T extends MongoDocumentNodeStoreBuilderBase<T>> extends DocumentNodeStoreBuilder<T>
DocumentNodeStore backed by
MongoDB.blobStore, 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 and Description |
|---|
MongoDocumentNodeStoreBuilderBase() |
| Modifier and Type | Method and Description |
|---|---|
MissingLastRevSeeker |
createMissingLastRevSeeker() |
Iterable<org.apache.jackrabbit.oak.plugins.blob.ReferencedBlob> |
createReferencedBlobs(DocumentNodeStore ns) |
VersionGCSupport |
createVersionGCSupport() |
boolean |
isSocketKeepAlive() |
T |
setClientSessionDisabled(boolean b)
Disables the use of a client session available with MongoDB 3.6 and
newer.
|
T |
setMaxReplicationLag(long duration,
TimeUnit unit) |
T |
setMongoDB(@NotNull com.mongodb.MongoClient client,
@NotNull String dbName)
Use the given MongoDB as backend storage for the DocumentNodeStore.
|
T |
setMongoDB(@NotNull com.mongodb.MongoClient client,
@NotNull String dbName,
int blobCacheSizeMB)
Use the given MongoDB as backend storage for the DocumentNodeStore.
|
T |
setMongoDB(@NotNull String uri,
@NotNull String name,
int blobCacheSizeMB)
Uses the given information to connect to to MongoDB as backend
storage for the DocumentNodeStore.
|
T |
setSocketKeepAlive(boolean enable)
Enables or disables the socket keep-alive option for MongoDB.
|
build, buildChildrenCache, buildDocumentCache, buildLocalDiffCache, buildMemoryDiffCache, buildNodeCache, buildNodeDocumentCache, buildPrevDocumentsCache, clock, disableBranches, getAsyncDelay, getBlobStore, getBlobStoreCacheStats, getBlobStoreStats, getChildrenCacheSize, getClock, getClusterId, getCommitValueCacheSize, getDiffCache, getDiffCacheSize, getDocumentCacheSize, getDocumentStore, getDocumentStoreStatsCollector, getExecutor, getGCMonitor, getJournalGCMaxAge, getJournalPropertyHandlerFactory, getLeaseCheck, getLeaseFailureHandler, getLocalDiffCacheSize, getLogging, getMemoryDiffCacheSize, getNodeCachePredicate, getNodeCacheSize, getNodeStoreStatsCollector, getPersistenceCacheStats, getPersistentCache, getPrevDocumentCacheSize, getReadOnlyMode, getStatisticsProvider, getTiming, getUpdateLimit, getWeigher, isBundlingDisabled, isDisableBranches, isPrefetchExternalChanges, isUseSimpleRevision, memoryCacheDistribution, memoryCacheSize, newDocumentNodeStoreBuilder, setAsyncDelay, setBlobStore, setBundlingDisabled, setCacheSegmentCount, setCacheStackMoveDistance, setClusterId, setCommitValueCacheSize, setDocumentStore, setDocumentStoreStatsCollector, setExecutor, setGCBlobStore, setGCMonitor, setJournalCache, setJournalGCMaxAge, setJournalPropertyHandlerFactory, setLeaseCheck, setLeaseCheckMode, setLeaseFailureHandler, setLogging, setNodeCachePredicate, setNodeStoreStatsCollector, setPersistentCache, setPrefetchExternalChanges, setReadOnlyMode, setStatisticsProvider, setTiming, setUpdateLimit, setUseSimpleRevision, thisBuilder, withWeigherpublic T setMongoDB(@NotNull @NotNull String uri, @NotNull @NotNull String name, int blobCacheSizeMB)
MAJORITY, otherwise
ACKNOWLEDGED.uri - a MongoDB URI.name - the name of the database to connect to. This overrides
any database name given in the uri.blobCacheSizeMB - the blob cache size in MB.public T setMongoDB(@NotNull @NotNull com.mongodb.MongoClient client, @NotNull @NotNull String dbName, int blobCacheSizeMB)
client - the MongoDB connectiondbName - the database nameblobCacheSizeMB - the size of the blob cache in MB.public T setMongoDB(@NotNull @NotNull com.mongodb.MongoClient client, @NotNull @NotNull String dbName)
client - the MongoDB connectiondbName - the database namepublic T setSocketKeepAlive(boolean enable)
enable - whether to enable or disable it.public boolean isSocketKeepAlive()
public T setClientSessionDisabled(boolean b)
b - whether to disable the use of a client session.public VersionGCSupport createVersionGCSupport()
createVersionGCSupport in class DocumentNodeStoreBuilder<T extends MongoDocumentNodeStoreBuilderBase<T>>public Iterable<org.apache.jackrabbit.oak.plugins.blob.ReferencedBlob> createReferencedBlobs(DocumentNodeStore ns)
createReferencedBlobs in class DocumentNodeStoreBuilder<T extends MongoDocumentNodeStoreBuilderBase<T>>public MissingLastRevSeeker createMissingLastRevSeeker()
createMissingLastRevSeeker in class DocumentNodeStoreBuilder<T extends MongoDocumentNodeStoreBuilderBase<T>>Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.