2 * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved.
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
8 package org.opendaylight.controller.protocol_plugin.openflow;
10 import java.util.List;
12 import org.openflow.protocol.statistics.OFStatistics;
15 * Interface which defines the notification functions which will get called when
16 * the information contained in the OF statistics reply message received from a
17 * network node is different from the cached one.
19 public interface IOFStatisticsListener {
21 * Notifies that a new list of description statistics objects for the given
25 * The datapath id of the openflow switch
27 * The new list of description statistics objects
29 public void descriptionStatisticsRefreshed(Long switchId, List<OFStatistics> description);
32 * Notifies that a new list of flows statistics objects for the given switch
36 * The datapath id of the openflow switch
38 * The new list of flow statistics objects
40 public void flowStatisticsRefreshed(Long switchId, List<OFStatistics> flows);
43 * Notifies that a new list of port statistics objects for the given switch
47 * The datapath id of the openflow switch
49 * The new list of port statistics objects
51 public void portStatisticsRefreshed(Long switchId, List<OFStatistics> ports);
54 * Notifies that a new list of table statistics objects for the given switch
58 * The datapath id of the openflow switch
60 * The new list of table statistics objects
62 public void tableStatisticsRefreshed(Long switchId, List<OFStatistics> tables);