Class MockProcessingFeedbackHandler

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  MockProcessingFeedbackHandler.Type
      Different types of feedback given to the feedback handler.
    • 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 message
      void drop​(IngestDocument doc)
      Report a dropped document
      void 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)
      ***************************************************************************************************************
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MockProcessingFeedbackHandler

        public MockProcessingFeedbackHandler()
    • Method Detail

      • warn

        public void warn​(IngestDocument doc,
                         java.lang.Exception e,
                         java.lang.String message,
                         java.lang.Object... args)
        ***************************************************************************************************************
        Specified by:
        warn in interface ProcessingFeedbackHandler
        e - if e is an AttivioException and message is null, then the warning is composed entirely of the exception. Otherwise the warning will reference the exception but the message 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 interface ProcessingFeedbackHandler
        e - if e is an AttivioException and message is null, then the error is composed entirely of the exception. Otherwise the error will reference the exception but the message will be used.
      • debug

        public void debug​(IngestDocument doc,
                          java.lang.String message,
                          java.lang.Object... args)
        ***************************************************************************************************************
        Specified by:
        debug in interface ProcessingFeedbackHandler
      • 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()
        ***************************************************************************************************************
      • getDropped

        public java.util.List<java.lang.String> getDropped()