Class TraceableTcpTransportChannel
java.lang.Object
org.opensearch.transport.BaseTcpTransportChannel
org.opensearch.telemetry.tracing.channels.TraceableTcpTransportChannel
- All Implemented Interfaces:
TransportChannel
Tracer wrapped
TransportChannel
-
Field Summary
Fields inherited from interface org.opensearch.transport.TransportChannel
logger
-
Constructor Summary
ConstructorsConstructorDescriptionTraceableTcpTransportChannel
(TcpTransportChannel delegate, org.opensearch.telemetry.tracing.Span span, org.opensearch.telemetry.tracing.Tracer tracer) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic TransportChannel
create
(TcpTransportChannel delegate, org.opensearch.telemetry.tracing.Span span, org.opensearch.telemetry.tracing.Tracer tracer) Factory method.<T> Optional
<T> Returns the contextual property associated with this specific transport channel (the implementation of how such properties are managed depends on the particular transport engine).org.opensearch.Version
Returns the version of the other party that this channel will send a response to.void
sendResponse
(Exception exception) void
sendResponse
(org.opensearch.core.transport.TransportResponse response) Methods inherited from class org.opensearch.transport.BaseTcpTransportChannel
getChannel
-
Constructor Details
-
TraceableTcpTransportChannel
public TraceableTcpTransportChannel(TcpTransportChannel delegate, org.opensearch.telemetry.tracing.Span span, org.opensearch.telemetry.tracing.Tracer tracer) Constructor.- Parameters:
delegate
- delegatespan
- spantracer
- tracer
-
-
Method Details
-
create
public static TransportChannel create(TcpTransportChannel delegate, org.opensearch.telemetry.tracing.Span span, org.opensearch.telemetry.tracing.Tracer tracer) Factory method.- Parameters:
delegate
- delegatespan
- spantracer
- tracer- Returns:
- transport channel
-
getProfileName
-
getChannelType
-
sendResponse
public void sendResponse(org.opensearch.core.transport.TransportResponse response) throws IOException - Throws:
IOException
-
sendResponse
- Throws:
IOException
-
getVersion
public org.opensearch.Version getVersion()Description copied from interface:TransportChannel
Returns the version of the other party that this channel will send a response to. -
get
Description copied from interface:TransportChannel
Returns the contextual property associated with this specific transport channel (the implementation of how such properties are managed depends on the particular transport engine).- Parameters:
name
- the name of the propertyclazz
- the expected type of the property- Returns:
- the value of the property.
-