| Modifier and Type | Method and Description |
|---|---|
FileStore |
create()
/**
Create a new
FileStore instance with the settings specified in this
builder. |
FileStore.Builder |
withBlobStore(org.apache.jackrabbit.oak.spi.blob.BlobStore blobStore)
Specify the
BlobStore. |
FileStore.Builder |
withCacheSize(int cacheSize)
Size of the cache in MB.
|
FileStore.Builder |
withDefaultMemoryMapping()
Set memory mapping to the default value based on OS properties
|
FileStore.Builder |
withGCMonitor(org.apache.jackrabbit.oak.spi.gc.GCMonitor gcMonitor)
GCMonitor for monitoring this files store's gc process. |
FileStore.Builder |
withMaxFileSize(int maxFileSize)
Maximal size of the generated tar files in MB.
|
FileStore.Builder |
withMemoryMapping(boolean memoryMapping)
Turn memory mapping on or off
|
FileStore.Builder |
withNoCache()
Turn caching off
|
FileStore.Builder |
withRoot(org.apache.jackrabbit.oak.spi.state.NodeState root)
Specify the initial root node state for the file store
|
FileStore.Builder |
withStatisticsProvider(org.apache.jackrabbit.oak.stats.StatisticsProvider statisticsProvider)
StatisticsProvider for collecting statistics related to FileStore |
@Nonnull public FileStore.Builder withBlobStore(@Nonnull org.apache.jackrabbit.oak.spi.blob.BlobStore blobStore)
BlobStore.blobStore - @Nonnull public FileStore.Builder withRoot(@Nonnull org.apache.jackrabbit.oak.spi.state.NodeState root)
root - @Nonnull public FileStore.Builder withMaxFileSize(int maxFileSize)
maxFileSize - @Nonnull public FileStore.Builder withCacheSize(int cacheSize)
cacheSize - @Nonnull public FileStore.Builder withNoCache()
@Nonnull public FileStore.Builder withMemoryMapping(boolean memoryMapping)
memoryMapping - @Nonnull public FileStore.Builder withDefaultMemoryMapping()
@Nonnull public FileStore.Builder withGCMonitor(@Nonnull org.apache.jackrabbit.oak.spi.gc.GCMonitor gcMonitor)
GCMonitor for monitoring this files store's gc process.gcMonitor - @Nonnull public FileStore.Builder withStatisticsProvider(@Nonnull org.apache.jackrabbit.oak.stats.StatisticsProvider statisticsProvider)
StatisticsProvider for collecting statistics related to FileStorestatisticsProvider - @Nonnull public FileStore create() throws IOException
FileStore instance with the settings specified in this
builder. If none of the with methods have been called before calling
this method, a file store with the following default settings is returned:
GCMonitor trackingIOExceptionCopyright © 2012-2018 The Apache Software Foundation. All Rights Reserved.