public final class CheckerCommand
extends java.lang.Object
Main class for the checksum checker tool, which calculates checksums for each bitstream whose ID is in the most_recent_checksum table, and compares it against the last calculated checksum for that bitstream.
| Constructor and Description |
|---|
CheckerCommand()
Default constructor uses DSpace plugin manager to construct dependencies.
|
| Modifier and Type | Method and Description |
|---|---|
ChecksumResultsCollector |
getCollector()
Get the collector that holds/logs the results for this process run.
|
BitstreamDispatcher |
getDispatcher()
Get dispatcher being used by this run of the checker.
|
java.util.Date |
getProcessStartDate()
Get time at which checker process began.
|
boolean |
isReportVerbose()
Determine if any errors are reported
|
void |
process()
Uses the options set up on this checker to determine a mode of execution,
and then accepts bitstream ids from the dispatcher and checks their
bitstreams against the db records.
|
void |
setCollector(ChecksumResultsCollector collector)
Set the collector that holds/logs the results for this process run.
|
void |
setDispatcher(BitstreamDispatcher dispatcher)
Set the dispatcher to be used by this run of the checker.
|
void |
setProcessStartDate(java.util.Date startDate)
Set time at which checker process began.
|
void |
setReportVerbose(boolean reportVerbose)
Set report errors only
|
public CheckerCommand()
public void process()
Uses the options set up on this checker to determine a mode of execution, and then accepts bitstream ids from the dispatcher and checks their bitstreams against the db records.
N.B. a valid BitstreamDispatcher must be provided using setBitstreamDispatcher before calling this method
public BitstreamDispatcher getDispatcher()
public void setDispatcher(BitstreamDispatcher dispatcher)
dispatcher - Dispatcher to use.public ChecksumResultsCollector getCollector()
public void setCollector(ChecksumResultsCollector collector)
collector - the collector to be used for this runpublic java.util.Date getProcessStartDate()
public void setProcessStartDate(java.util.Date startDate)
startDate - start timepublic boolean isReportVerbose()
public void setReportVerbose(boolean reportVerbose)
reportVerbose - true to report only errors in the logs.Copyright © 2018 DuraSpace. All Rights Reserved.