|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dspace.checker.CheckerCommand
public final class CheckerCommand
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 Summary | |
|---|---|
CheckerCommand()
Default constructor uses DSpace plugin manager to construct dependencies. |
|
| Method Summary | |
|---|---|
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. |
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(Date startDate)
Set time at which checker process began. |
void |
setReportVerbose(boolean reportVerbose)
Set report errors only |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CheckerCommand()
| Method Detail |
|---|
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 Date getProcessStartDate()
public void setProcessStartDate(Date startDate)
startDate - start timepublic boolean isReportVerbose()
public void setReportVerbose(boolean reportVerbose)
reportErrorsOnly - true to report only errors in the logs.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||