Encapsulate OpenFlowPlugin configuration
[openflowplugin.git] / openflowplugin-api / src / main / java / org / opendaylight / openflowplugin / api / openflow / statistics / StatisticsManager.java
1 /*
2  * Copyright (c) 2015 Cisco 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.openflowplugin.api.openflow.statistics;
10
11 import javax.annotation.Nonnull;
12 import org.opendaylight.openflowplugin.api.openflow.OFPManager;
13 import org.opendaylight.openflowplugin.api.openflow.device.DeviceContext;
14 import org.opendaylight.openflowplugin.api.openflow.device.DeviceInfo;
15
16 /**
17  * Manager to start or stop scheduling statistics.
18  */
19 public interface StatisticsManager extends OFPManager {
20
21     /**
22      * Start scheduling statistic gathering for given device info.
23      * @param deviceInfo for this device should be running statistics gathering
24      */
25     void startScheduling(DeviceInfo deviceInfo);
26
27     /**
28      * Stop scheduling statistic gathering for given device info.
29      * @param deviceInfo for this device should be stopped statistics gathering
30      */
31     void stopScheduling(DeviceInfo deviceInfo);
32
33     @Override
34     void close();
35
36     StatisticsContext createContext(@Nonnull DeviceContext deviceContext);
37
38 }