public static class SegmentCopy.Builder extends Object
SegmentCopy command.public SegmentCopy.Builder withSource(String source)
source - the source path/URI to an existing segment store.public SegmentCopy.Builder withDestination(String destination)
destination - the destination path/URI to an existing segment store.public SegmentCopy.Builder withSrcPersistencee(org.apache.jackrabbit.oak.segment.spi.persistence.SegmentNodeStorePersistence srcPersistence)
SegmentNodeStorePersistence.srcPersistence - the destination SegmentNodeStorePersistence.public SegmentCopy.Builder withDestPersistence(org.apache.jackrabbit.oak.segment.spi.persistence.SegmentNodeStorePersistence destPersistence)
SegmentNodeStorePersistence.destPersistence - the destination SegmentNodeStorePersistence.public SegmentCopy.Builder withOutWriter(PrintWriter outWriter)
outWriter - the output writer.public SegmentCopy.Builder withErrWriter(PrintWriter errWriter)
errWriter - the error writer.public SegmentCopy.Builder withRevisionsCount(Integer revisionsCount)
revisionsCount revisions to be copied.
This parameter is not required and defaults to 1.revisionsCount - number of revisions to copied.public SegmentCopy build()
Check command.Runnable.Copyright © 2012–2021 The Apache Software Foundation. All rights reserved.