1 package org.opendaylight.openflowplugin.openflow.md.core;
5 import org.opendaylight.openflowplugin.openflow.md.queue.PopListener;
6 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.OfHeader;
7 import org.opendaylight.yangtools.yang.binding.DataObject;
9 public interface IMDController {
12 * Allows application to start translating OF messages received from switches.
15 * the type of OF message that applications want to receive
16 * @param version corresponding OF version
18 * : Object that implements the {@link IMDMessageTranslator}
20 public void addMessageTranslator(Class<? extends DataObject> messageType, int version, IMDMessageTranslator<OfHeader, List<DataObject>> translator);
23 * Allows application to stop receiving OF message received from switches.
26 * The type of OF message that applications want to stop
30 * The object that implements the {@link IMDMessageTranslator}
32 public void removeMessageTranslator(Class<? extends DataObject> messageType, int version, IMDMessageTranslator<OfHeader, List<DataObject>> translator);
35 * Allows application to start pop-listening MD-SAL messages received from switches.
38 * the type of OF message that applications want to receive
40 * : Object that implements the {@link PopListener}
42 void removeMessagePopListener(Class<? extends DataObject> messageType, PopListener<DataObject> popListener);
45 * Allows application to stop pop-listening MD-SAL messages received from switches.
48 * the type of OF message that applications want to receive
50 * : Object that implements the {@link PopListener}
52 void addMessagePopListener(Class<? extends DataObject> messageType, PopListener<DataObject> popListener);