X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-dom-spi%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Fcore%2Fspi%2Fdata%2Fstatistics%2FDOMStoreStatsTracker.java;fp=opendaylight%2Fmd-sal%2Fsal-dom-spi%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Fcore%2Fspi%2Fdata%2Fstatistics%2FDOMStoreStatsTracker.java;h=12713b2f4594d68e8a91a53dc51a7fa1efb21e8a;hb=51cab2fd826650fa11e624ea4982dbc4a3eb332e;hp=0000000000000000000000000000000000000000;hpb=a8d731931e8d73926557150bcadf478a983ea3dc;p=controller.git diff --git a/opendaylight/md-sal/sal-dom-spi/src/main/java/org/opendaylight/controller/sal/core/spi/data/statistics/DOMStoreStatsTracker.java b/opendaylight/md-sal/sal-dom-spi/src/main/java/org/opendaylight/controller/sal/core/spi/data/statistics/DOMStoreStatsTracker.java new file mode 100644 index 0000000000..12713b2f45 --- /dev/null +++ b/opendaylight/md-sal/sal-dom-spi/src/main/java/org/opendaylight/controller/sal/core/spi/data/statistics/DOMStoreStatsTracker.java @@ -0,0 +1,44 @@ +/* + * Copyright (c) 2014 Brocade Communications Systems, Inc. and others. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + */ + +package org.opendaylight.controller.sal.core.spi.data.statistics; + +import java.util.concurrent.ExecutorService; + +import javax.annotation.Nonnull; + +import org.opendaylight.yangtools.util.concurrent.QueuedNotificationManager; + +/** + * Interface for a class that tracks statistics for a data store. + * + * @author Thomas Pantelis + */ +public interface DOMStoreStatsTracker { + + /** + * Sets the executor used for DataChangeListener notifications. + * + * @param dclExecutor the executor + */ + void setDataChangeListenerExecutor( @Nonnull ExecutorService dclExecutor ); + + /** + * Sets the executor used internally by the data store. + * + * @param dsExecutor the executor + */ + void setDataStoreExecutor( @Nonnull ExecutorService dsExecutor ); + + /** + * Sets the QueuedNotificationManager use for DataChangeListener notifications, + * + * @param manager the manager + */ + void setNotificationManager( @Nonnull QueuedNotificationManager manager ); +}