Package com.attivio.sdk.test
Class MockProcessingFeedbackHandler
- java.lang.Object
- 
- com.attivio.sdk.test.MockProcessingFeedbackHandler
 
- 
- All Implemented Interfaces:
- ProcessingFeedbackHandler
 
 public class MockProcessingFeedbackHandler extends java.lang.Object implements ProcessingFeedbackHandler 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classMockProcessingFeedbackHandler.TypeDifferent types of feedback given to the feedback handler.
 - 
Constructor SummaryConstructors Constructor Description MockProcessingFeedbackHandler()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddebug(IngestDocument doc, java.lang.String message, java.lang.Object... args)***************************************************************************************************************voiddrop(PlatformMessage message)Report a dropped messagevoiddrop(IngestDocument doc)Report a dropped documentvoiderror(IngestDocument doc, java.lang.Exception e, java.lang.String message, java.lang.Object... args)***************************************************************************************************************voidfail(IngestDocument doc, ErrorCode code, java.lang.Throwable e)java.util.List<java.lang.String>getDropped()java.util.List<java.lang.Throwable>getExceptions()***************************************************************************************************************java.util.List<java.lang.String>getMessages()***************************************************************************************************************java.util.List<MockProcessingFeedbackHandler.Type>getTypes()***************************************************************************************************************voidwarn(IngestDocument doc, ErrorCode code, java.lang.Throwable e)voidwarn(IngestDocument doc, java.lang.Exception e, java.lang.String message, java.lang.Object... args)***************************************************************************************************************
 
- 
- 
- 
Method Detail- 
warnpublic void warn(IngestDocument doc, java.lang.Exception e, java.lang.String message, java.lang.Object... args) ***************************************************************************************************************- Specified by:
- warnin interface- ProcessingFeedbackHandler
- e- if- eis an- AttivioExceptionand- messageis- null, then the warning is composed entirely of the exception. Otherwise the warning will reference the exception but the- messagewill be used.
 
 - 
errorpublic void error(IngestDocument doc, java.lang.Exception e, java.lang.String message, java.lang.Object... args) ***************************************************************************************************************- Specified by:
- errorin interface- ProcessingFeedbackHandler
- e- if- eis an- AttivioExceptionand- messageis- null, then the error is composed entirely of the exception. Otherwise the error will reference the exception but the- messagewill be used.
 
 - 
debugpublic void debug(IngestDocument doc, java.lang.String message, java.lang.Object... args) ***************************************************************************************************************- Specified by:
- debugin interface- ProcessingFeedbackHandler
 
 - 
getTypespublic java.util.List<MockProcessingFeedbackHandler.Type> getTypes() ***************************************************************************************************************
 - 
getExceptionspublic java.util.List<java.lang.Throwable> getExceptions() ***************************************************************************************************************
 - 
getMessagespublic java.util.List<java.lang.String> getMessages() ***************************************************************************************************************
 - 
droppublic void drop(IngestDocument doc) Report a dropped document- Specified by:
- dropin interface- ProcessingFeedbackHandler
 
 - 
getDroppedpublic java.util.List<java.lang.String> getDropped() 
 - 
droppublic void drop(PlatformMessage message) Report a dropped message- Specified by:
- dropin interface- ProcessingFeedbackHandler
 
 - 
warnpublic void warn(IngestDocument doc, ErrorCode code, java.lang.Throwable e) - Specified by:
- warnin interface- ProcessingFeedbackHandler
 
 - 
failpublic void fail(IngestDocument doc, ErrorCode code, java.lang.Throwable e) - Specified by:
- failin interface- ProcessingFeedbackHandler
 
 
- 
 
-