public static class AwsCompact.Builder extends Object
Compact command.| Modifier and Type | Method and Description |
|---|---|
AwsCompact |
build()
Create an executable version of the
Compact command. |
AwsCompact.Builder |
withForce(boolean force)
Whether to fail if run on an older version of the store of force upgrading
its format.
|
AwsCompact.Builder |
withGCLogInterval(long gcLogInterval)
The number of nodes after which an update about the compaction process is
logged.
|
AwsCompact.Builder |
withPath(String path)
The path (URI) to an existing segment store.
|
AwsCompact.Builder |
withSegmentCacheSize(int segmentCacheSize)
The size of the segment cache in MB.
|
public AwsCompact.Builder withPath(String path)
path - the path to an existing segment store.public AwsCompact.Builder withForce(boolean force)
force - upgrade iff truepublic AwsCompact.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 AwsCompact.Builder withGCLogInterval(long gcLogInterval)
gcLogInterval - The log interval.public AwsCompact build()
Compact command.Runnable.Copyright © 2012–2020 The Apache Software Foundation. All rights reserved.