Class SegmentCopy.Builder

    • 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 destination SegmentNodeStorePersistence.
        Parameters:
        srcPersistence - the destination SegmentNodeStorePersistence.
        Returns:
        this builder.
      • withDestPersistence

        public SegmentCopy.Builder withDestPersistence​(org.apache.jackrabbit.oak.segment.spi.persistence.SegmentNodeStorePersistence destPersistence)
        The destination SegmentNodeStorePersistence.
        Parameters:
        destPersistence - the destination SegmentNodeStorePersistence.
        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 last revisionsCount revisions to be copied. This parameter is not required and defaults to 1.
        Parameters:
        revisionsCount - number of revisions to copied.
        Returns:
        this builder.
      • build

        public SegmentCopy build()
        Create an executable version of the Check command.
        Returns:
        an instance of Runnable.