Package org.dspace.checker
Class ResultsLogger
- java.lang.Object
-
- org.dspace.checker.ResultsLogger
-
- All Implemented Interfaces:
ChecksumResultsCollector
public class ResultsLogger extends Object implements ChecksumResultsCollector
Collects results from a Checksum process and outputs them to a Log4j Logger.
- Author:
- Jim Downing, Grace Carpenter, Nathan Sarr
-
-
Constructor Summary
Constructors Constructor Description ResultsLogger(Date startDt)Main constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcollect(Context context, MostRecentChecksum info)Collect a result for logging.protected Stringmsg(String key)Get the i18N string.
-
-
-
Constructor Detail
-
ResultsLogger
public ResultsLogger(Date startDt)
Main constructor.- Parameters:
startDt- Date the checking run started.
-
-
Method Detail
-
msg
protected String msg(String key)
Get the i18N string.- Parameters:
key- to get the message.- Returns:
- the message found.
-
collect
public void collect(Context context, MostRecentChecksum info) throws SQLException
Collect a result for logging.- Specified by:
collectin interfaceChecksumResultsCollector- Parameters:
context- Contextinfo- the BitstreamInfo representing the result.- Throws:
SQLException- if database error- See Also:
ChecksumResultsCollector.collect(org.dspace.core.Context, org.dspace.checker .MostRecentChecksum)
-
-