Search in sources :

Example 1 with TNonblockingTransportFieldGetter

use of com.navercorp.pinpoint.plugin.thrift.field.getter.TNonblockingTransportFieldGetter in project pinpoint by naver.

the class TAsyncMethodCallConstructInterceptor method after.

@Override
public void after(Object target, Object[] args, Object result, Throwable throwable) {
    if (isDebug) {
        logger.afterInterceptor(target, args, result, throwable);
    }
    if (validate(target)) {
        TNonblockingTransport transport = ((TNonblockingTransportFieldGetter) target)._$PINPOINT$_getTNonblockingTransport();
        if (validateTransport(transport)) {
            SocketAddress socketAddress = ((SocketAddressFieldAccessor) transport)._$PINPOINT$_getSocketAddress();
            ((SocketAddressFieldAccessor) target)._$PINPOINT$_setSocketAddress(socketAddress);
        }
    }
}
Also used : SocketAddressFieldAccessor(com.navercorp.pinpoint.plugin.thrift.field.accessor.SocketAddressFieldAccessor) TNonblockingTransport(org.apache.thrift.transport.TNonblockingTransport) TNonblockingTransportFieldGetter(com.navercorp.pinpoint.plugin.thrift.field.getter.TNonblockingTransportFieldGetter) SocketAddress(java.net.SocketAddress)

Aggregations

SocketAddressFieldAccessor (com.navercorp.pinpoint.plugin.thrift.field.accessor.SocketAddressFieldAccessor)1 TNonblockingTransportFieldGetter (com.navercorp.pinpoint.plugin.thrift.field.getter.TNonblockingTransportFieldGetter)1 SocketAddress (java.net.SocketAddress)1 TNonblockingTransport (org.apache.thrift.transport.TNonblockingTransport)1