BUG-2218: Keep existing link augmentations during discovery process
[controller.git] / opendaylight / adsal / protocol_plugins / openflow / src / main / java / org / opendaylight / controller / protocol_plugin / openflow / core / IMessageListener.java
1
2 /*
3  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
4  *
5  * This program and the accompanying materials are made available under the
6  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
7  * and is available at http://www.eclipse.org/legal/epl-v10.html
8  */
9
10 package org.opendaylight.controller.protocol_plugin.openflow.core;
11
12 import org.openflow.protocol.OFMessage;
13
14 /**
15  * Interface to be implemented by applications that want to receive OF messages.
16  *
17  */
18 public interface IMessageListener {
19     /**
20      * This method is called by the Controller when a message is received from a switch.
21      * Application who is interested in receiving OF Messages needs to implement this method.
22      * @param sw The ISwitch which sent the OF message
23      * @param msg The OF message
24      */
25     public void receive(ISwitch sw, OFMessage msg);
26 }