Modifier and Type | Method and Description |
---|---|
Check |
build()
Create an executable version of the
Check command. |
Check.Builder |
withCheckBinaries(boolean checkBinaries)
Instruct the command to scan the full content of binary properties.
|
Check.Builder |
withCheckHead(boolean checkHead)
Instruct the command to check head state.
|
Check.Builder |
withCheckpoints(Set<String> checkpoints)
Instruct the command to check specified checkpoints.
|
Check.Builder |
withDebugInterval(long debugInterval)
Number of seconds between successive debug print statements.
|
Check.Builder |
withErrWriter(PrintWriter errWriter)
The text error stream writer used to print erroneous output.
|
Check.Builder |
withFilterPaths(Set<String> filterPaths)
Content paths to be checked.
|
Check.Builder |
withIOStatistics(boolean ioStatistics)
Instruct the command to print statistics about I/O operations
performed during the check.
|
Check.Builder |
withJournal(File journal)
The path to the journal of the segment store.
|
Check.Builder |
withMmap(boolean mmap)
Whether to use memory mapped access or file access.
|
Check.Builder |
withOutWriter(PrintWriter outWriter)
The text output stream writer used to print normal output.
|
Check.Builder |
withPath(File path)
The path to an existing segment store.
|
Check.Builder |
withRepositoryStatistics(Check.RepositoryStatistics repoStatistics)
Attach a repository statistics instance to collect info on nodes
and properties checked on head.
|
Check.Builder |
withRevisionsCount(Integer revisionsCount)
Instruct the command to check only the last
revisionsCount revisions. |
public Check.Builder withPath(File path)
path
- the path to an existing segment store.public Check.Builder withMmap(boolean mmap)
mmap
- true
for memory mapped access, false
for
file access null
to determine the access mode
from the system architecture: memory mapped on 64 bit
systems, file access on 32 bit systems.public Check.Builder withJournal(File journal)
journal
- the path to the journal of the segment store.public Check.Builder withDebugInterval(long debugInterval)
debugInterval
- number of seconds between successive debug print
statements. It must be positive.public Check.Builder withCheckBinaries(boolean checkBinaries)
false
.checkBinaries
- true
if binary properties should be
scanned, false
otherwise.public Check.Builder withCheckHead(boolean checkHead)
true
.checkHead
- if true
, will check the head state.public Check.Builder withRevisionsCount(Integer revisionsCount)
revisionsCount
revisions.
This parameter is not required and defaults to 1
.revisionsCount
- number of revisions to check.public Check.Builder withCheckpoints(Set<String> checkpoints)
checkpoints
- checkpoints to be checkedpublic Check.Builder withFilterPaths(Set<String> filterPaths)
filterPaths
- paths to be checkedpublic Check.Builder withIOStatistics(boolean ioStatistics)
false
.ioStatistics
- true
if I/O statistics should be
provided, false
otherwise.public Check.Builder withRepositoryStatistics(Check.RepositoryStatistics repoStatistics)
repoStatistics
- instance to collect statisticspublic Check.Builder withOutWriter(PrintWriter outWriter)
outWriter
- the output writer.public Check.Builder withErrWriter(PrintWriter errWriter)
errWriter
- the error writer.Copyright © 2012–2020 The Apache Software Foundation. All rights reserved.