Interface ProcessingFeedbackHandler
-
- All Known Implementing Classes:
MockProcessingFeedbackHandler
public interface ProcessingFeedbackHandlerInterface for ingest transformers to implement if they wish to pass additional feedback to the client about the processing of the message or document.The current document/message will automatically be inserted into the message results.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddebug(IngestDocument doc, java.lang.String message, java.lang.Object... args)Return a debug message result to the client about the processing results of the current document.voiddrop(PlatformMessage message)Report a dropped messagevoiddrop(IngestDocument ingestDocument)Report a dropped documentvoiderror(IngestDocument doc, java.lang.Exception e, java.lang.String message, java.lang.Object... args)Report an error to the client about the processing results of the current document.voidfail(IngestDocument doc, ErrorCode code, java.lang.Throwable e)voidwarn(IngestDocument doc, ErrorCode code, java.lang.Throwable e)voidwarn(IngestDocument doc, java.lang.Exception e, java.lang.String message, java.lang.Object... args)Warn the client about the processing results of the current document.
-
-
-
Method Detail
-
warn
void warn(IngestDocument doc, java.lang.Exception e, java.lang.String message, java.lang.Object... args)
Warn the client about the processing results of the current document. Prints the most direct information whenmessageisnulland an AttivioException is provided.- Parameters:
doc-e- ifeis anAttivioExceptionandmessageisnull, then the warning is composed entirely of the exception. Otherwise the warning will reference the exception but themessagewill be used.message-args-
-
error
void error(IngestDocument doc, java.lang.Exception e, java.lang.String message, java.lang.Object... args)
Report an error to the client about the processing results of the current document. Prints the most direct information whenmessageisnulland an AttivioException is provided.- Parameters:
doc-e- ifeis anAttivioExceptionandmessageisnull, then the error is composed entirely of the exception. Otherwise the error will reference the exception but themessagewill be used.message-args-
-
debug
void debug(IngestDocument doc, java.lang.String message, java.lang.Object... args)
Return a debug message result to the client about the processing results of the current document.
-
warn
void warn(IngestDocument doc, ErrorCode code, java.lang.Throwable e)
-
fail
void fail(IngestDocument doc, ErrorCode code, java.lang.Throwable e)
-
drop
void drop(IngestDocument ingestDocument)
Report a dropped document- Parameters:
ingestDocument-
-
drop
void drop(PlatformMessage message)
Report a dropped message- Parameters:
message-
-
-