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
9 package org.opendaylight.openflowplugin.learningswitch;
11 import org.opendaylight.controller.md.sal.binding.api.DataBroker;
12 import org.opendaylight.controller.sal.binding.api.NotificationService;
13 import org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.PacketProcessingService;
15 public interface LearningSwitchManager {
23 * Starts this manager.
28 * Set's Data Broker dependency.
31 * Data Broker is used to access overall operational and configuration tree.
34 * In simple Learning Switch handler, data broker is used to listen
35 * for changes in Openflow tables and to configure flows which will
36 * be provisioned down to the Openflow switch.
39 * inject {@link DataBroker}
41 void setDataBroker(DataBroker data);
44 * Set's Packet Processing dependency.
47 * Packet Processing service is used to send packet Out on Openflow switch.
50 * inject {@link PacketProcessingService}
52 void setPacketProcessingService(
53 PacketProcessingService packetProcessingService);
56 * Set's Notification service dependency.
59 * Notification service is used to register for listening packet-in notifications.
62 * inject {@link NotificationService}
64 void setNotificationService(NotificationService notificationService);