Class History.Builder
java.lang.Object
org.apache.jackrabbit.oak.segment.tool.History.Builder
- Enclosing class:
- History
Collect options for the
History
command.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Create an executable version of theHistory
command.withDepth
(int depth) Maximum depth of the history.withJournal
(File journal) The path to the journal.A path to a node.The path to an existing segment store.
-
Method Details
-
withPath
The path to an existing segment store. This parameter is required.- Parameters:
path
- the path to an existing segment store.- Returns:
- this builder.
-
withJournal
The path to the journal. This parameter is required.- Parameters:
journal
- the path to the journal.- Returns:
- this builder.
-
withNode
A path to a node. If specified, the history will be restricted to the subtree pointed to by this node. This parameter is not mandatory and defaults to the entire tree.- Parameters:
node
- a path to a node.- Returns:
- this builder.
-
withDepth
Maximum depth of the history. If specified, this command will print information about the history of every node at or below the provided depth. This parameter is not mandatory and defaults to zero.- Parameters:
depth
- the depth of the subtree.- Returns:
- this builder.
-
build
Create an executable version of theHistory
command.- Returns:
- an instance of
History
.
-