Class AwsSegmentCopy.Builder
- java.lang.Object
-
- org.apache.jackrabbit.oak.segment.aws.tool.AwsSegmentCopy.Builder
-
- Enclosing class:
- AwsSegmentCopy
public static class AwsSegmentCopy.Builder extends Object
Collect options for theAwsSegmentCopycommand.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AwsSegmentCopybuild()Create an executable version of theCheckcommand.AwsSegmentCopy.BuilderwithDestination(String destination)The destination path/URI to an existing segment store.AwsSegmentCopy.BuilderwithDestPersistence(SegmentNodeStorePersistence destPersistence)The destinationSegmentNodeStorePersistence.AwsSegmentCopy.BuilderwithErrWriter(PrintWriter errWriter)The text error stream writer used to print erroneous output.AwsSegmentCopy.BuilderwithOutWriter(PrintWriter outWriter)The text output stream writer used to print normal output.AwsSegmentCopy.BuilderwithRevisionsCount(Integer revisionsCount)The lastrevisionsCountrevisions to be copied.AwsSegmentCopy.BuilderwithSource(String source)The source path/URI to an existing segment store.AwsSegmentCopy.BuilderwithSrcPersistencee(SegmentNodeStorePersistence srcPersistence)The destinationSegmentNodeStorePersistence.
-
-
-
Method Detail
-
withSource
public AwsSegmentCopy.Builder withSource(String source)
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
public AwsSegmentCopy.Builder withDestination(String destination)
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
public AwsSegmentCopy.Builder withSrcPersistencee(SegmentNodeStorePersistence srcPersistence)
The destinationSegmentNodeStorePersistence.- Parameters:
srcPersistence- the destinationSegmentNodeStorePersistence.- Returns:
- this builder.
-
withDestPersistence
public AwsSegmentCopy.Builder withDestPersistence(SegmentNodeStorePersistence destPersistence)
The destinationSegmentNodeStorePersistence.- Parameters:
destPersistence- the destinationSegmentNodeStorePersistence.- Returns:
- this builder.
-
withOutWriter
public AwsSegmentCopy.Builder withOutWriter(PrintWriter outWriter)
The text output stream writer used to print normal output.- Parameters:
outWriter- the output writer.- Returns:
- this builder.
-
withErrWriter
public AwsSegmentCopy.Builder withErrWriter(PrintWriter errWriter)
The text error stream writer used to print erroneous output.- Parameters:
errWriter- the error writer.- Returns:
- this builder.
-
withRevisionsCount
public AwsSegmentCopy.Builder withRevisionsCount(Integer revisionsCount)
The lastrevisionsCountrevisions to be copied. This parameter is not required and defaults to1.- Parameters:
revisionsCount- number of revisions to copied.- Returns:
- this builder.
-
build
public AwsSegmentCopy build()
Create an executable version of theCheckcommand.- Returns:
- an instance of
Runnable.
-
-