java.lang.Object
org.elasticsearch.ingest.AbstractProcessor
- All Implemented Interfaces:
Processor
- Direct Known Subclasses:
ConditionalProcessor
,DropProcessor
,PipelineProcessor
An Abstract Processor that holds tag and description information
about the processor.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.ingest.Processor
Processor.Factory, Processor.Parameters
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the description of a processor.getTag()
Gets the tag of a processor.protected ElasticsearchException
logAndBuildException
(String message, Throwable throwable) Helper method to be used by processors that need to catch and log Throwables.
-
Field Details
-
tag
-
description
-
-
Constructor Details
-
AbstractProcessor
-
-
Method Details
-
getTag
Description copied from interface:Processor
Gets the tag of a processor. -
getDescription
Description copied from interface:Processor
Gets the description of a processor.- Specified by:
getDescription
in interfaceProcessor
-
logAndBuildException
Helper method to be used by processors that need to catch and log Throwables.If trace logging is enabled, then we log the provided message and the full stacktrace On the other hand if trace logging isn't enabled, then we log the provided message and the message from the Throwable (but not a stacktrace).
Regardless of the logging level, we throw an ElasticsearchException that has the context in its message
- Parameters:
message
- A message to be logged and to be included in the message of the returned ElasticsearchExceptionthrowable
- The Throwable that has been caught- Returns:
- A new ElasticsearchException whose message includes the passed-in message and the message from the passed-in Throwable. It will not however wrap the given Throwable.
-