2 * Copyright (c) 2016 Red Hat, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.controller.md.sal.trace.api;
10 import java.io.PrintStream;
11 import org.opendaylight.controller.md.sal.dom.api.DOMDataBroker;
14 * Interface so that the tracing broker service can be more explicitly imported.
16 public interface TracingDOMDataBroker extends DOMDataBroker {
19 * Prints a human-readable "report" of all opened but not closed transactions,
20 * including transactions chains and transactions opened by them, onto the printStream.
21 * @param minOpenTransactions minimum open number of transactions (leaks with fewer are not printed)
22 * @return true if there were any open transactions, false if none
24 boolean printOpenTransactions(PrintStream printStream, int minOpenTransactions);