Interface ProcessingFeedbackHandler
-
- All Known Implementing Classes:
MockProcessingFeedbackHandler
public interface ProcessingFeedbackHandler
Interface 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 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.void
drop(PlatformMessage message)
Report a dropped messagevoid
drop(IngestDocument ingestDocument)
Report a dropped documentvoid
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.void
fail(IngestDocument doc, ErrorCode code, java.lang.Throwable e)
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)
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 whenmessage
isnull
and an AttivioException is provided.- Parameters:
doc
-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.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 whenmessage
isnull
and an AttivioException is provided.- Parameters:
doc
-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.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
-
-
-