Improve cleanup after device disconnected event
[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 org.opendaylight.openflowplugin.api.openflow.OFPManager;
12 import org.opendaylight.openflowplugin.api.openflow.device.DeviceInfo;
13
14 /**
15  * Manager to start or stop scheduling statistics
16  */
17 public interface StatisticsManager extends OFPManager {
18
19     /**
20      * Start scheduling statistic gathering for given device info
21      * @param deviceInfo for this device should be running statistics gathering
22      */
23     void startScheduling(final DeviceInfo deviceInfo);
24
25     /**
26      * Stop scheduling statistic gathering for given device info
27      * @param deviceInfo for this device should be stopped statistics gathering
28      */
29     void stopScheduling(final DeviceInfo deviceInfo);
30
31     @Override
32     void close();
33
34     void setIsStatisticsPollingOn(boolean isStatisticsPollingOn);
35
36 }