Migrate OSGI compendium reference
[controller.git] / opendaylight / md-sal / mdsal-trace / api / src / main / java / org / opendaylight / controller / md / sal / trace / api / TracingDOMDataBroker.java
index 14d30b123e82c172eb1df421f0b4ad47d0054dbf..88e2261cae2ede3b8a31cf05cd07f387e99577d1 100644 (file)
@@ -7,11 +7,20 @@
  */
 package org.opendaylight.controller.md.sal.trace.api;
 
+import java.io.PrintStream;
 import org.opendaylight.controller.md.sal.dom.api.DOMDataBroker;
 
 /**
- * Tagging interface so that the tracing broker service can be more explicitly imported.
+ * Interface so that the tracing broker service can be more explicitly imported.
  */
 public interface TracingDOMDataBroker extends DOMDataBroker {
 
+    /**
+     * Prints a human-readable "report" of all opened but not closed transactions,
+     * including transactions chains and transactions opened by them, onto the printStream.
+     * @param minOpenTransactions minimum open number of transactions (leaks with fewer are not printed)
+     * @return true if there were any open transactions, false if none
+     */
+    boolean printOpenTransactions(PrintStream printStream, int minOpenTransactions);
+
 }