| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_MAX_FILE_SIZE |
| Modifier and Type | Method and Description |
|---|---|
FileStore |
build()
Create a new
FileStore instance with the settings specified in this
builder. |
ReadOnlyFileStore |
buildReadOnly()
Create a new
ReadOnlyFileStore instance with the settings specified in this
builder. |
static FileStoreBuilder |
fileStoreBuilder(File directory)
Create a new instance of a
FileStoreBuilder for a file store. |
int |
getMaxFileSize() |
String |
toString() |
FileStoreBuilder |
withBlobStore(org.apache.jackrabbit.oak.spi.blob.BlobStore blobStore)
Specify the
BlobStore. |
FileStoreBuilder |
withDefaultMemoryMapping()
Set memory mapping to the default value based on OS properties
|
FileStoreBuilder |
withGCMonitor(org.apache.jackrabbit.oak.spi.gc.GCMonitor gcMonitor)
GCMonitor for monitoring this files store's gc process. |
FileStoreBuilder |
withGCOptions(SegmentGCOptions gcOptions)
SegmentGCOptions the garbage collection options of the store |
FileStoreBuilder |
withMaxFileSize(int maxFileSize)
Maximal size of the generated tar files in MB.
|
FileStoreBuilder |
withMemoryMapping(boolean memoryMapping)
Turn memory mapping on or off
|
FileStoreBuilder |
withNodeDeduplicationCacheSize(int nodeDeduplicationCacheSize)
Number of items to keep in the node deduplication cache
|
FileStoreBuilder |
withSegmentCacheSize(int segmentCacheSize)
Size of the segment cache in MB.
|
FileStoreBuilder |
withSnfeListener(SegmentNotFoundExceptionListener snfeListener)
SegmentNotFoundExceptionListener listener for SegmentNotFoundException |
FileStoreBuilder |
withStatisticsProvider(org.apache.jackrabbit.oak.stats.StatisticsProvider statisticsProvider)
StatisticsProvider for collecting statistics related to FileStore |
FileStoreBuilder |
withStringCacheSize(int stringCacheSize)
Size of the string cache in MB.
|
FileStoreBuilder |
withStringDeduplicationCacheSize(int stringDeduplicationCacheSize)
Number of items to keep in the string deduplication cache
|
FileStoreBuilder |
withTemplateCacheSize(int templateCacheSize)
Size of the template cache in MB.
|
FileStoreBuilder |
withTemplateDeduplicationCacheSize(int templateDeduplicationCacheSize)
Number of items to keep in the template deduplication cache
|
public static final int DEFAULT_MAX_FILE_SIZE
@Nonnull public static FileStoreBuilder fileStoreBuilder(@Nonnull File directory)
FileStoreBuilder for a file store.directory - directory where the tar files are storedFileStoreBuilder instance.@Nonnull public FileStoreBuilder withBlobStore(@Nonnull org.apache.jackrabbit.oak.spi.blob.BlobStore blobStore)
BlobStore.blobStore - @Nonnull public FileStoreBuilder withMaxFileSize(int maxFileSize)
maxFileSize - @Nonnull public FileStoreBuilder withSegmentCacheSize(int segmentCacheSize)
segmentCacheSize - None negative cache size@Nonnull public FileStoreBuilder withStringCacheSize(int stringCacheSize)
stringCacheSize - None negative cache size@Nonnull public FileStoreBuilder withTemplateCacheSize(int templateCacheSize)
templateCacheSize - None negative cache size@Nonnull public FileStoreBuilder withStringDeduplicationCacheSize(int stringDeduplicationCacheSize)
stringDeduplicationCacheSize - None negative cache size@Nonnull public FileStoreBuilder withTemplateDeduplicationCacheSize(int templateDeduplicationCacheSize)
templateDeduplicationCacheSize - None negative cache size@Nonnull public FileStoreBuilder withNodeDeduplicationCacheSize(int nodeDeduplicationCacheSize)
nodeDeduplicationCacheSize - None negative cache size. Must be a power of 2.@Nonnull public FileStoreBuilder withMemoryMapping(boolean memoryMapping)
memoryMapping - @Nonnull public FileStoreBuilder withDefaultMemoryMapping()
@Nonnull public FileStoreBuilder withGCMonitor(@Nonnull org.apache.jackrabbit.oak.spi.gc.GCMonitor gcMonitor)
GCMonitor for monitoring this files store's gc process.gcMonitor - @Nonnull public FileStoreBuilder withStatisticsProvider(@Nonnull org.apache.jackrabbit.oak.stats.StatisticsProvider statisticsProvider)
StatisticsProvider for collecting statistics related to FileStorestatisticsProvider - @Nonnull public FileStoreBuilder withGCOptions(SegmentGCOptions gcOptions)
SegmentGCOptions the garbage collection options of the storegcOptions - @Nonnull public FileStoreBuilder withSnfeListener(@Nonnull SegmentNotFoundExceptionListener snfeListener)
SegmentNotFoundExceptionListener listener for SegmentNotFoundExceptionsnfeListener, - the actual listener@Nonnull public FileStore build() throws InvalidFileStoreVersionException, 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 trackingStatisticsProvider.NOOPSegmentGCOptions.defaultGCOptions()IOExceptionInvalidFileStoreVersionException@Nonnull public ReadOnlyFileStore buildReadOnly() throws InvalidFileStoreVersionException, IOException
ReadOnlyFileStore 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 trackingStatisticsProvider.NOOPSegmentGCOptions.defaultGCOptions()IOExceptionInvalidFileStoreVersionExceptionpublic int getMaxFileSize()
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.