public static class SegmentCopy.Builder
extends java.lang.Object
SegmentCopy
command.Modifier and Type | Method and Description |
---|---|
SegmentCopy |
build()
Create an executable version of the
Check command. |
SegmentCopy.Builder |
withDestination(java.lang.String destination)
The destination path/URI to an existing segment store.
|
SegmentCopy.Builder |
withDestPersistence(SegmentNodeStorePersistence destPersistence)
The destination
SegmentNodeStorePersistence . |
SegmentCopy.Builder |
withErrWriter(java.io.PrintWriter errWriter)
The text error stream writer used to print erroneous output.
|
SegmentCopy.Builder |
withFlat(java.lang.Boolean flat)
If enabled, the segments hierarchy will be copied without any
TAR archive being created, in a flat hierarchy.
|
SegmentCopy.Builder |
withMaxSizeGb(java.lang.Integer maxSizeGb)
Parameter for configuring the maximum size of the segment store transfer
|
SegmentCopy.Builder |
withOutWriter(java.io.PrintWriter outWriter)
The text output stream writer used to print normal output.
|
SegmentCopy.Builder |
withRevisionsCount(java.lang.Integer revisionsCount)
The last
revisionsCount revisions to be copied. |
SegmentCopy.Builder |
withSource(java.lang.String source)
The source path/URI to an existing segment store.
|
SegmentCopy.Builder |
withSrcPersistencee(SegmentNodeStorePersistence srcPersistence)
The destination
SegmentNodeStorePersistence . |
public SegmentCopy.Builder withSource(java.lang.String source)
source
- the source path/URI to an existing segment store.public SegmentCopy.Builder withDestination(java.lang.String destination)
destination
- the destination path/URI to an existing segment store.public SegmentCopy.Builder withSrcPersistencee(SegmentNodeStorePersistence srcPersistence)
SegmentNodeStorePersistence
.srcPersistence
- the destination SegmentNodeStorePersistence
.public SegmentCopy.Builder withDestPersistence(SegmentNodeStorePersistence destPersistence)
SegmentNodeStorePersistence
.destPersistence
- the destination SegmentNodeStorePersistence
.public SegmentCopy.Builder withOutWriter(java.io.PrintWriter outWriter)
outWriter
- the output writer.public SegmentCopy.Builder withErrWriter(java.io.PrintWriter errWriter)
errWriter
- the error writer.public SegmentCopy.Builder withRevisionsCount(java.lang.Integer revisionsCount)
revisionsCount
revisions to be copied.
This parameter is not required and defaults to 1
.revisionsCount
- number of revisions to copied.public SegmentCopy.Builder withFlat(java.lang.Boolean flat)
flat
- flag controlling the copying in flat hierarchypublic SegmentCopy.Builder withMaxSizeGb(java.lang.Integer maxSizeGb)
maxSizeGb
- the maximum size up to which repository data will be copiedpublic SegmentCopy build()
Check
command.Runnable
.Copyright © 2012–2022 The Apache Software Foundation. All rights reserved.