public static class AzureCompact.Builder extends Object
Compact command.| Modifier and Type | Method and Description |
|---|---|
AzureCompact |
build()
Create an executable version of the
Compact command. |
AzureCompact.Builder |
withCompactorType(org.apache.jackrabbit.oak.segment.compaction.SegmentGCOptions.CompactorType compactorType)
The compactor type to be used by compaction.
|
AzureCompact.Builder |
withForce(boolean force)
Whether to fail if run on an older version of the store of force upgrading
its format.
|
AzureCompact.Builder |
withGCLogInterval(long gcLogInterval)
The number of nodes after which an update about the compaction process is
logged.
|
AzureCompact.Builder |
withPath(String path)
The path (URI) to an existing segment store.
|
AzureCompact.Builder |
withSegmentCacheSize(int segmentCacheSize)
The size of the segment cache in MB.
|
public AzureCompact.Builder withPath(String path)
path - the path to an existing segment store.public AzureCompact.Builder withForce(boolean force)
force - upgrade iff truepublic AzureCompact.Builder withSegmentCacheSize(int segmentCacheSize)
SegmentCache.DEFAULT_SEGMENT_CACHE_MB when this method is not
invoked.segmentCacheSize - cache size in MBIllegalArgumentException - if segmentCacheSize is not a positive integer.public AzureCompact.Builder withGCLogInterval(long gcLogInterval)
gcLogInterval - The log interval.public AzureCompact.Builder withCompactorType(org.apache.jackrabbit.oak.segment.compaction.SegmentGCOptions.CompactorType compactorType)
compactorType - the compactor typepublic AzureCompact build()
Compact command.Runnable.Copyright © 2012–2021 The Apache Software Foundation. All rights reserved.