public class MockProcessingFeedbackHandler extends Object implements ProcessingFeedbackHandler
Modifier and Type | Class and Description |
---|---|
static class |
MockProcessingFeedbackHandler.Type
Different types of feedback given to the feedback handler.
|
Constructor and Description |
---|
MockProcessingFeedbackHandler() |
Modifier and Type | Method and Description |
---|---|
void |
debug(IngestDocument doc,
String message,
Object... args)
Return a debug message result to the client about the processing results of the current document.
|
void |
drop(IngestDocument doc)
Report a dropped document
|
void |
drop(PlatformMessage message)
Report a dropped message
|
void |
error(IngestDocument doc,
Exception e,
String message,
Object... args)
Report an error to the client about the processing results of the current document.
|
void |
fail(IngestDocument doc,
ErrorCode code,
Throwable e) |
List<String> |
getDropped() |
List<Throwable> |
getExceptions() |
List<String> |
getMessages() |
List<MockProcessingFeedbackHandler.Type> |
getTypes() |
void |
warn(IngestDocument doc,
ErrorCode code,
Throwable e) |
void |
warn(IngestDocument doc,
Exception e,
String message,
Object... args)
Warn the client about the processing results of the current document.
|
public void warn(IngestDocument doc, Exception e, String message, Object... args)
ProcessingFeedbackHandler
message
is null
and an AttivioException is provided.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.public void error(IngestDocument doc, Exception e, String message, Object... args)
ProcessingFeedbackHandler
message
is null
and an AttivioException is provided.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.public void debug(IngestDocument doc, String message, Object... args)
ProcessingFeedbackHandler
debug
in interface ProcessingFeedbackHandler
public List<MockProcessingFeedbackHandler.Type> getTypes()
public void drop(IngestDocument doc)
drop
in interface ProcessingFeedbackHandler
public void drop(PlatformMessage message)
drop
in interface ProcessingFeedbackHandler
public void warn(IngestDocument doc, ErrorCode code, Throwable e)
warn
in interface ProcessingFeedbackHandler
public void fail(IngestDocument doc, ErrorCode code, Throwable e)
fail
in interface ProcessingFeedbackHandler
Copyright © 2018 Attivio, Inc. All Rights Reserved.
PATENT NOTICE: Attivio, Inc. Software Related Patents. With respect to the Attivio software product(s) being used, the following patents apply: Querying Joined Data Within A Search Engine Index: United States Patent No.(s): 8,073,840. Ordered Processing of Groups of Messages: U.S. Patent No.(s) 8,495,656. Signal processing approach to sentiment analysis for entities in documents: U.S. Patent No.(s) 8,725,494. Other U.S. and International Patents Pending.