use of com.navercorp.pinpoint.plugin.thrift.field.accessor.SocketAddressFieldAccessor 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);
}
}
}
use of com.navercorp.pinpoint.plugin.thrift.field.accessor.SocketAddressFieldAccessor in project pinpoint by naver.
the class TNonblockingSocketConstructInterceptor 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, args)) {
Socket socket = ((TNonblockingSocket) target).getSocketChannel().socket();
((SocketFieldAccessor) target)._$PINPOINT$_setSocket(socket);
if (args[2] instanceof SocketAddress) {
SocketAddress socketAddress = (SocketAddress) args[2];
((SocketAddressFieldAccessor) target)._$PINPOINT$_setSocketAddress(socketAddress);
}
}
}
Aggregations