X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fmdsal-trace%2Fdom-impl%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fmd%2Fsal%2Ftrace%2Fdom%2Fimpl%2FTracingBroker.java;h=c01c1d9cd3b36bae78ecb03c0bf2fc00173091ef;hp=2e16b0ca0ff45736155ffad14a5d0e3dd2724fda;hb=0792888092341cbb7db5f851a5e3bcbca9609e73;hpb=42d888e224d77ec341a0ac3a34c46ff215d63c44 diff --git a/opendaylight/md-sal/mdsal-trace/dom-impl/src/main/java/org/opendaylight/controller/md/sal/trace/dom/impl/TracingBroker.java b/opendaylight/md-sal/mdsal-trace/dom-impl/src/main/java/org/opendaylight/controller/md/sal/trace/dom/impl/TracingBroker.java index 2e16b0ca0f..c01c1d9cd3 100644 --- a/opendaylight/md-sal/mdsal-trace/dom-impl/src/main/java/org/opendaylight/controller/md/sal/trace/dom/impl/TracingBroker.java +++ b/opendaylight/md-sal/mdsal-trace/dom-impl/src/main/java/org/opendaylight/controller/md/sal/trace/dom/impl/TracingBroker.java @@ -46,13 +46,18 @@ import org.slf4j.LoggerFactory; * the objects themselves, as well as the stack trace of the call invoking the registration or write operation. * It works by operating as a "bump on the stack" between the application and actual DataBroker, intercepting write * and registration calls and writing to the log. + * + *

In addition, it (optionally) can also keep track of the stack trace of all new transaction allocations + * (including TransactionChains, and transactions created in turn from them), in order to detect and report leaks + * results from transactions which were not closed. + * *

Wiring:

* TracingBroker is designed to be easy to use. In fact, for bundles using Blueprint to inject their DataBroker * TracingBroker can be used without modifying your code at all in two simple steps: *
    *
  1. * Simply add the dependency "mdsaltrace-features" to - * your karaf pom: + * your Karaf pom: *
      * {@code
      *