Class ElasticsearchSegmentDecorator
- java.lang.Object
-
- org.apache.camel.component.aws.xray.decorators.AbstractSegmentDecorator
-
- org.apache.camel.component.aws.xray.decorators.ElasticsearchSegmentDecorator
-
- All Implemented Interfaces:
SegmentDecorator
public class ElasticsearchSegmentDecorator extends AbstractSegmentDecorator
-
-
Field Summary
Fields Modifier and Type Field Description static StringELASTICSARCH_DB_TYPEstatic StringELASTICSEARCH_CLUSTER_TAG-
Fields inherited from interface org.apache.camel.component.aws.xray.SegmentDecorator
CAMEL_COMPONENT, DEFAULT
-
-
Constructor Summary
Constructors Constructor Description ElasticsearchSegmentDecorator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetComponent()The camel component associated with the decorator.StringgetOperationName(org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint)This method returns the operation name to use with the segment representing this exchange and endpoint.voidpre(com.amazonaws.xray.entities.Entity segment, org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint)This method adds appropriate details (tags/logs) to the supplied segment based on the pre processing of the exchange.-
Methods inherited from class org.apache.camel.component.aws.xray.decorators.AbstractSegmentDecorator
newSegment, post, stripSchemeAndOptions, toQueryParameters
-
-
-
-
Field Detail
-
ELASTICSARCH_DB_TYPE
public static final String ELASTICSARCH_DB_TYPE
- See Also:
- Constant Field Values
-
ELASTICSEARCH_CLUSTER_TAG
public static final String ELASTICSEARCH_CLUSTER_TAG
- See Also:
- Constant Field Values
-
-
Method Detail
-
getComponent
public String getComponent()
Description copied from interface:SegmentDecoratorThe camel component associated with the decorator.- Returns:
- The camel component name
-
getOperationName
public String getOperationName(org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint)
Description copied from interface:SegmentDecoratorThis method returns the operation name to use with the segment representing this exchange and endpoint.- Specified by:
getOperationNamein interfaceSegmentDecorator- Overrides:
getOperationNamein classAbstractSegmentDecorator- Parameters:
exchange- The exchangeendpoint- The endpoint- Returns:
- The operation name
-
pre
public void pre(com.amazonaws.xray.entities.Entity segment, org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint)Description copied from interface:SegmentDecoratorThis method adds appropriate details (tags/logs) to the supplied segment based on the pre processing of the exchange.- Specified by:
prein interfaceSegmentDecorator- Overrides:
prein classAbstractSegmentDecorator- Parameters:
segment- The segmentexchange- The exchangeendpoint- The endpoint
-
-