Prevent ConfigPusher from killing its thread
[controller.git] / opendaylight / protocol_plugins / openflow / src / main / java / org / opendaylight / controller / protocol_plugin / openflow / IOFStatisticsListener.java
1 package org.opendaylight.controller.protocol_plugin.openflow;
2
3 import java.util.List;
4
5 import org.openflow.protocol.statistics.OFStatistics;
6
7 /**
8  * Interface which defines the notification functions which will get called when
9  * the information contained in the OF statistics reply message received from a
10  * network node is different from the cached one.
11  */
12 public interface IOFStatisticsListener {
13     /**
14      * Notifies that a new list of description statistics objects for the given
15      * switch is available
16      *
17      * @param switchId
18      *            The datapath id of the openflow switch
19      * @param description
20      *            The new list of description statistics objects
21      */
22     public void descriptionStatisticsRefreshed(Long switchId, List<OFStatistics> description);
23
24     /**
25      * Notifies that a new list of flows statistics objects for the given switch
26      * is available
27      *
28      * @param switchId
29      *            The datapath id of the openflow switch
30      * @param flows
31      *            The new list of flow statistics objects
32      */
33     public void flowStatisticsRefreshed(Long switchId, List<OFStatistics> flows);
34
35     /**
36      * Notifies that a new list of port statistics objects for the given switch
37      * is available
38      *
39      * @param switchId
40      *            The datapath id of the openflow switch
41      * @param flows
42      *            The new list of port statistics objects
43      */
44     public void portStatisticsRefreshed(Long switchId, List<OFStatistics> ports);
45
46     /**
47      * Notifies that a new list of table statistics objects for the given switch
48      * is available
49      *
50      * @param switchId
51      *            The datapath id of the openflow switch
52      * @param flows
53      *            The new list of table statistics objects
54      */
55     public void tableStatisticsRefreshed(Long switchId, List<OFStatistics> tables);
56 }