Package org.verapdf.processor
Class AbstractBatchHandler
- java.lang.Object
-
- org.verapdf.processor.AbstractBatchHandler
-
- All Implemented Interfaces:
Closeable,AutoCloseable,BatchProcessingHandler
- Direct Known Subclasses:
AbstractXmlHandler,JsonHandler
public abstract class AbstractBatchHandler extends Object implements BatchProcessingHandler
- Version:
- 0.1 Created 10 Nov 2016:20:54:24
- Author:
- Carl Wilson carlwilson AT github
-
-
Field Summary
Fields Modifier and Type Field Description static StringBATCH_SUMMARYstatic StringBUILD_INFORMATIONstatic StringFEATURES_REPORTstatic StringFIXER_REPORTstatic StringFIXER_RESULTstatic StringITEM_DETAILSstatic StringJOBstatic StringJOBSstatic StringLOGSstatic StringPROCESSING_TIMEstatic StringRELEASE_DETAILSstatic StringREPORTstatic StringTASK_RESULTstatic StringVALIDATION_RESULT
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractBatchHandler()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Collection<AuditDuration>getDurations(ProcessorResult result)voidhandleResult(ProcessorResult result, Boolean isLogsEnabled)This method is called by theBatchProcessorafter each item in the batch is processed allowing the implementor to take specific action for each item processed.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.verapdf.processor.BatchProcessingHandler
handleBatchEnd, handleBatchStart
-
-
-
-
Field Detail
-
VALIDATION_RESULT
public static final String VALIDATION_RESULT
- See Also:
- Constant Field Values
-
FEATURES_REPORT
public static final String FEATURES_REPORT
- See Also:
- Constant Field Values
-
FIXER_REPORT
public static final String FIXER_REPORT
- See Also:
- Constant Field Values
-
FIXER_RESULT
public static final String FIXER_RESULT
- See Also:
- Constant Field Values
-
REPORT
public static final String REPORT
- See Also:
- Constant Field Values
-
JOB
public static final String JOB
- See Also:
- Constant Field Values
-
JOBS
public static final String JOBS
- See Also:
- Constant Field Values
-
PROCESSING_TIME
public static final String PROCESSING_TIME
- See Also:
- Constant Field Values
-
BUILD_INFORMATION
public static final String BUILD_INFORMATION
- See Also:
- Constant Field Values
-
ITEM_DETAILS
public static final String ITEM_DETAILS
- See Also:
- Constant Field Values
-
RELEASE_DETAILS
public static final String RELEASE_DETAILS
- See Also:
- Constant Field Values
-
TASK_RESULT
public static final String TASK_RESULT
- See Also:
- Constant Field Values
-
BATCH_SUMMARY
public static final String BATCH_SUMMARY
- See Also:
- Constant Field Values
-
LOGS
public static final String LOGS
- See Also:
- Constant Field Values
-
-
Method Detail
-
handleResult
public void handleResult(ProcessorResult result, Boolean isLogsEnabled) throws VeraPDFException
Description copied from interface:BatchProcessingHandlerThis method is called by theBatchProcessorafter each item in the batch is processed allowing the implementor to take specific action for each item processed.- Specified by:
handleResultin interfaceBatchProcessingHandler- Parameters:
result- theProcessorResultfor the last item processed.- Throws:
VeraPDFException- if there's a problem with the particular result.
-
getDurations
public static Collection<AuditDuration> getDurations(ProcessorResult result)
-
-