org.apache.accumulo.trace.instrument.thrift
Class TraceWrap
java.lang.Object
org.apache.accumulo.trace.instrument.thrift.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.
Method Summary |
static
|
client(T instance)
|
static
|
service(T instance)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TraceWrap
public TraceWrap()
service
public static <T> T service(T instance)
client
public static <T> T client(T instance)
Copyright © 2013 Apache Accumulo Project. All Rights Reserved.