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 Summary
Nested Classes Modifier and Type Class Description static classMockProcessingFeedbackHandler.TypeDifferent types of feedback given to the feedback handler.
-
Constructor Summary
Constructors Constructor Description MockProcessingFeedbackHandler()
-
Method Summary
All 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
-
warn
public void warn(IngestDocument doc, java.lang.Exception e, java.lang.String message, java.lang.Object... args)
***************************************************************************************************************- Specified by:
warnin interfaceProcessingFeedbackHandlere- ifeis anAttivioExceptionandmessageisnull, then the warning is composed entirely of the exception. Otherwise the warning will reference the exception but themessagewill be used.
-
error
public void error(IngestDocument doc, java.lang.Exception e, java.lang.String message, java.lang.Object... args)
***************************************************************************************************************- Specified by:
errorin interfaceProcessingFeedbackHandlere- ifeis anAttivioExceptionandmessageisnull, then the error is composed entirely of the exception. Otherwise the error will reference the exception but themessagewill be used.
-
debug
public void debug(IngestDocument doc, java.lang.String message, java.lang.Object... args)
***************************************************************************************************************- Specified by:
debugin interfaceProcessingFeedbackHandler
-
getTypes
public java.util.List<MockProcessingFeedbackHandler.Type> getTypes()
***************************************************************************************************************
-
getExceptions
public java.util.List<java.lang.Throwable> getExceptions()
***************************************************************************************************************
-
getMessages
public java.util.List<java.lang.String> getMessages()
***************************************************************************************************************
-
drop
public void drop(IngestDocument doc)
Report a dropped document- Specified by:
dropin interfaceProcessingFeedbackHandler
-
getDropped
public java.util.List<java.lang.String> getDropped()
-
drop
public void drop(PlatformMessage message)
Report a dropped message- Specified by:
dropin interfaceProcessingFeedbackHandler
-
warn
public void warn(IngestDocument doc, ErrorCode code, java.lang.Throwable e)
- Specified by:
warnin interfaceProcessingFeedbackHandler
-
fail
public void fail(IngestDocument doc, ErrorCode code, java.lang.Throwable e)
- Specified by:
failin interfaceProcessingFeedbackHandler
-
-