use of com.navercorp.pinpoint.plugin.thrift.field.accessor.SocketFieldAccessor 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