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;
18 public interface LearningSwitchManager {
31 * Set's Data Broker dependency.
33 * Data Broker is used to access overal operational and configuration
36 * In simple Learning Switch handler, data broker is used to listen
37 * for changes in Openflow tables and to configure flows which will
38 * be provisioned down to the Openflow switch.
40 * inject {@link DataBroker}
44 void setDataBroker(DataBroker data);
47 * Set's Packet Processing dependency.
49 * Packet Processing service is used to send packet Out on Openflow
52 * inject {@link PacketProcessingService}
54 * @param packetProcessingService
56 void setPacketProcessingService(
57 PacketProcessingService packetProcessingService);
60 * Set's Notification service dependency.
62 * Notification service is used to register for listening
63 * packet-in notifications.
65 * inject {@link NotificationService}
67 * @param notificationService
69 void setNotificationService(NotificationService notificationService);