Class AbstractMessagingSegmentDecorator
- java.lang.Object
-
- org.apache.camel.component.aws.xray.decorators.AbstractSegmentDecorator
-
- org.apache.camel.component.aws.xray.decorators.messaging.AbstractMessagingSegmentDecorator
-
- All Implemented Interfaces:
SegmentDecorator
- Direct Known Subclasses:
AmqpSegmentDecorator,CometdSegmentDecorator,IronmqSegmentDecorator,JmsSegmentDecorator,KafkaSegmentDecorator,PahoSegmentDecorator,RabbitmqSegmentDecorator,SjmsSegmentDecorator,StompSegmentDecorator
public abstract class AbstractMessagingSegmentDecorator extends AbstractSegmentDecorator
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringMESSAGE_BUS_ID-
Fields inherited from interface org.apache.camel.component.aws.xray.SegmentDecorator
CAMEL_COMPONENT, DEFAULT
-
-
Constructor Summary
Constructors Constructor Description AbstractMessagingSegmentDecorator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetDestination(org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint)Gets the (component-specific) destinationprotected StringgetMessageId(org.apache.camel.Exchange exchange)Gets the message ID from the exchangeStringgetOperationName(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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.camel.component.aws.xray.SegmentDecorator
getComponent
-
-
-
-
Field Detail
-
MESSAGE_BUS_ID
protected static final String MESSAGE_BUS_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
-
getDestination
protected String getDestination(org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint)
Gets the (component-specific) destination- Parameters:
exchange- the exchange to extract the destination info fromendpoint- the endpoint being used- Returns:
- A String with the destination
-
getMessageId
protected String getMessageId(org.apache.camel.Exchange exchange)
Gets the message ID from the exchange- Parameters:
exchange- the exchange from which to extract the message ID- Returns:
- A String with the message ID or null if not applicable
-
-