Merge "Bug 1666: Fixing the clustering config file issue"
[controller.git] / opendaylight / md-sal / sal-dom-spi / src / main / java / org / opendaylight / controller / sal / core / spi / data / statistics / DOMStoreStatsTracker.java
1 /*
2  * Copyright (c) 2014 Brocade Communications Systems, 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
9 package org.opendaylight.controller.sal.core.spi.data.statistics;
10
11 import java.util.concurrent.ExecutorService;
12
13 import javax.annotation.Nonnull;
14
15 import org.opendaylight.yangtools.util.concurrent.QueuedNotificationManager;
16
17 /**
18  * Interface for a class that tracks statistics for a data store.
19  *
20  * @author Thomas Pantelis
21  */
22 public interface DOMStoreStatsTracker {
23
24     /**
25      * Sets the executor used for DataChangeListener notifications.
26      *
27      * @param dclExecutor the executor
28      */
29     void setDataChangeListenerExecutor( @Nonnull ExecutorService dclExecutor );
30
31     /**
32      * Sets the executor used internally by the data store.
33      *
34      * @param dsExecutor the executor
35      */
36     void setDataStoreExecutor( @Nonnull ExecutorService dsExecutor );
37
38     /**
39      * Sets the QueuedNotificationManager use for DataChangeListener notifications,
40      *
41      * @param manager the manager
42      */
43     void setNotificationManager( @Nonnull QueuedNotificationManager<?, ?> manager );
44 }