类 RemoteInvocationTraceInterceptor

  • 所有已实现的接口:
    Advice, Interceptor, MethodInterceptor

    public class RemoteInvocationTraceInterceptor
    extends Object
    implements MethodInterceptor
    AOP Alliance MethodInterceptor for tracing remote invocations. Automatically applied by RemoteExporter and its subclasses.

    Logs an incoming remote call as well as the finished processing of a remote call at DEBUG level. If the processing of a remote call results in a checked exception, the exception will get logged at INFO level; if it results in an unchecked exception (or error), the exception will get logged at WARN level.

    The logging of exceptions is particularly useful to save the stacktrace information on the server-side rather than just propagating the exception to the client (who might or might not log it properly).

    从以下版本开始:
    1.2
    作者:
    Juergen Hoeller
    另请参阅:
    RemoteExporter.setRegisterTraceInterceptor(boolean), RemoteExporter.getProxyForService()
    • 字段详细资料

    • 构造器详细资料

      • RemoteInvocationTraceInterceptor

        public RemoteInvocationTraceInterceptor​(String exporterName)
        Create a new RemoteInvocationTraceInterceptor.
        参数:
        exporterName - the name of the remote exporter (to be used as context information in log messages)