Interface NetServerAttributesGetter<REQUEST>
- All Known Implementing Classes:
InetSocketAddressNetServerAttributesGetter
public interface NetServerAttributesGetter<REQUEST>
An interface for getting server-based network attributes. It adapts an instrumentation-specific
request type into the 3 common attributes (transport, sockPeerPort, sockPeerAddr).
Instrumentation authors will create implementations of this interface for their specific
server library/framework. It will be used by the NetServerAttributesExtractor to obtain
the various network attributes in a type-generic way.
-
Method Summary
Modifier and TypeMethodDescriptiondefault StringgetHostName(REQUEST request) default IntegergetHostPort(REQUEST request) default StringgetSockFamily(REQUEST request) default StringgetSockHostAddr(REQUEST request) default IntegergetSockHostPort(REQUEST request) default StringgetSockPeerAddr(REQUEST request) default IntegergetSockPeerPort(REQUEST request) default StringgetTransport(REQUEST request) default StringDeprecated.default IntegerDeprecated.UsegetHostPort(Object)instead.default StringsockFamily(REQUEST request) Deprecated.UsegetSockFamily(Object)instead.default StringsockHostAddr(REQUEST request) Deprecated.UsegetSockHostAddr(Object)instead.default IntegersockHostPort(REQUEST request) Deprecated.UsegetSockHostPort(Object)instead.default StringsockPeerAddr(REQUEST request) Deprecated.UsegetSockPeerAddr(Object)instead.default IntegersockPeerPort(REQUEST request) Deprecated.UsegetSockPeerPort(Object)instead.default StringDeprecated.UsegetTransport(Object)instead.
-
Method Details
-
getTransport
-
transport
Deprecated.UsegetTransport(Object)instead.This method is deprecated and will be removed in the subsequent release. -
getHostName
-
hostName
Deprecated.UsegetHostName(Object)instead.This method is deprecated and will be removed in the subsequent release. -
getHostPort
-
hostPort
Deprecated.UsegetHostPort(Object)instead.This method is deprecated and will be removed in the subsequent release. -
getSockFamily
-
sockFamily
Deprecated.UsegetSockFamily(Object)instead.This method is deprecated and will be removed in the subsequent release. -
getSockPeerAddr
-
sockPeerAddr
Deprecated.UsegetSockPeerAddr(Object)instead.This method is deprecated and will be removed in the subsequent release. -
getSockPeerPort
-
sockPeerPort
Deprecated.UsegetSockPeerPort(Object)instead.This method is deprecated and will be removed in the subsequent release. -
getSockHostAddr
-
sockHostAddr
Deprecated.UsegetSockHostAddr(Object)instead.This method is deprecated and will be removed in the subsequent release. -
getSockHostPort
-
sockHostPort
Deprecated.UsegetSockHostPort(Object)instead.This method is deprecated and will be removed in the subsequent release.
-
getHostName(Object)instead.