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 class
MockProcessingFeedbackHandler.Type
Different 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 void
debug(IngestDocument doc, java.lang.String message, java.lang.Object... args)
***************************************************************************************************************void
drop(PlatformMessage message)
Report a dropped messagevoid
drop(IngestDocument doc)
Report a dropped documentvoid
error(IngestDocument doc, java.lang.Exception e, java.lang.String message, java.lang.Object... args)
***************************************************************************************************************void
fail(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()
***************************************************************************************************************void
warn(IngestDocument doc, ErrorCode code, java.lang.Throwable e)
void
warn(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:
warn
in interfaceProcessingFeedbackHandler
e
- ife
is anAttivioException
andmessage
isnull
, then the warning is composed entirely of the exception. Otherwise the warning will reference the exception but themessage
will be used.
-
error
public void error(IngestDocument doc, java.lang.Exception e, java.lang.String message, java.lang.Object... args)
***************************************************************************************************************- Specified by:
error
in interfaceProcessingFeedbackHandler
e
- ife
is anAttivioException
andmessage
isnull
, then the error is composed entirely of the exception. Otherwise the error will reference the exception but themessage
will be used.
-
debug
public void debug(IngestDocument doc, java.lang.String message, java.lang.Object... args)
***************************************************************************************************************- Specified by:
debug
in 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:
drop
in interfaceProcessingFeedbackHandler
-
getDropped
public java.util.List<java.lang.String> getDropped()
-
drop
public void drop(PlatformMessage message)
Report a dropped message- Specified by:
drop
in interfaceProcessingFeedbackHandler
-
warn
public void warn(IngestDocument doc, ErrorCode code, java.lang.Throwable e)
- Specified by:
warn
in interfaceProcessingFeedbackHandler
-
fail
public void fail(IngestDocument doc, ErrorCode code, java.lang.Throwable e)
- Specified by:
fail
in interfaceProcessingFeedbackHandler
-
-