34d5eb4a2ad18aabaa4f16f6cc482ffd98b9e846
[controller.git] / opendaylight / md-sal / mdsal-trace / api / src / main / java / org / opendaylight / controller / md / sal / trace / api / TracingDOMDataBroker.java
1 /*
2  * Copyright (c) 2016 Red Hat, Inc. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.controller.md.sal.trace.api;
9
10 import java.io.PrintStream;
11 import org.opendaylight.controller.md.sal.dom.api.DOMDataBroker;
12
13 /**
14  * Tagging interface so that the tracing broker service can be more explicitly imported.
15  */
16 public interface TracingDOMDataBroker extends DOMDataBroker {
17
18     /**
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      * @return true if there were any open transactions, false if none
22      */
23     boolean printOpenTransactions(PrintStream printStream);
24
25 }