Class TraceWrap


  • public class TraceWrap
    extends Object
    To move trace data from client to server, the RPC call must be annotated to take a TInfo object as its first argument. The user can simply pass null, so long as they wrap their Client and Service objects with these functions.
     Trace.on("remoteMethod");
     Iface c = new Client();
     c = TraceWrap.client(c);
     c.remoteMethod(null, arg2, arg3);
     Trace.off();
     
    The wrapper will see the annotated method and send or re-establish the trace information. Note that the result of these calls is a Proxy object that conforms to the basic interfaces, but is not your concrete instance.
    • Constructor Detail

      • TraceWrap

        public TraceWrap()
    • Method Detail

      • service

        public static <T> T service​(T instance)
      • client

        public static <T> T client​(T instance)