@Retention(value=RUNTIME) @Target(value={METHOD,CONSTRUCTOR}) public @interface Trace
TraceAgent must be installed. Method
tracing is not limited to remote methods. Any method can be traced, even if no remote
features of Dirmi are being used.
When using this annotation on remote interfaces, tracing is applied only to client-side invocations. For server-side tracing, the implementing class must provide its own trace annotations.
Because method tracing increases execution overhead, use the feature judiciously. Ideal candidates are those which perform complex calculations or depend on external resources.
| Modifier and Type | Optional Element and Description |
|---|---|
boolean |
args
Set to true to pass method arguments to trace handler.
|
boolean |
exception
Set to true to pass thrown exception to trace handler.
|
boolean |
graft
Set to true to indicate to trace handlers that this trace should be
ignored unless the current thread is already being traced.
|
String |
operation
Optionally specify an operation name to pass to trace handler.
|
boolean |
result
Set to true to pass method return value to trace handler.
|
boolean |
root
Set to true to indicate to trace handlers that this trace should be
reported as a call entry root, even if the current thread is already
being traced.
|
boolean |
time
Set to false to disable method execution time measuring.
|
public abstract String operation
public abstract boolean args
public abstract boolean result
public abstract boolean exception
public abstract boolean time
Copyright © 2006–2015 Cojen. All rights reserved.