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