Class AwsSegmentCopy.Builder
java.lang.Object
org.apache.jackrabbit.oak.segment.aws.tool.AwsSegmentCopy.Builder
- Enclosing class:
- AwsSegmentCopy
Collect options for the
AwsSegmentCopy
command.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Create an executable version of theCheck
command.withDestination
(String destination) The destination path/URI to an existing segment store.withDestPersistence
(SegmentNodeStorePersistence destPersistence) The destinationSegmentNodeStorePersistence
.withErrWriter
(PrintWriter errWriter) The text error stream writer used to print erroneous output.withOutWriter
(PrintWriter outWriter) The text output stream writer used to print normal output.withRevisionsCount
(Integer revisionsCount) The lastrevisionsCount
revisions to be copied.withSource
(String source) The source path/URI to an existing segment store.withSrcPersistencee
(SegmentNodeStorePersistence srcPersistence) The destinationSegmentNodeStorePersistence
.
-
Method Details
-
withSource
The source path/URI to an existing segment store. This parameter is required.- Parameters:
source
- the source path/URI to an existing segment store.- Returns:
- this builder.
-
withDestination
The destination path/URI to an existing segment store. This parameter is required.- Parameters:
destination
- the destination path/URI to an existing segment store.- Returns:
- this builder.
-
withSrcPersistencee
The destinationSegmentNodeStorePersistence
.- Parameters:
srcPersistence
- the destinationSegmentNodeStorePersistence
.- Returns:
- this builder.
-
withDestPersistence
The destinationSegmentNodeStorePersistence
.- Parameters:
destPersistence
- the destinationSegmentNodeStorePersistence
.- Returns:
- this builder.
-
withOutWriter
The text output stream writer used to print normal output.- Parameters:
outWriter
- the output writer.- Returns:
- this builder.
-
withErrWriter
The text error stream writer used to print erroneous output.- Parameters:
errWriter
- the error writer.- Returns:
- this builder.
-
withRevisionsCount
The lastrevisionsCount
revisions to be copied. This parameter is not required and defaults to1
.- Parameters:
revisionsCount
- number of revisions to copied.- Returns:
- this builder.
-
build
Create an executable version of theCheck
command.- Returns:
- an instance of
Runnable
.
-