Merge "code cleanup"
[openflowplugin.git] / openflowplugin-api / src / main / java / org / opendaylight / openflowplugin / api / openflow / device / DeviceManager.java
1 /*
2  * Copyright (c) 2015 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8
9 package org.opendaylight.openflowplugin.api.openflow.device;
10
11 import org.opendaylight.controller.md.sal.binding.api.NotificationPublishService;
12 import org.opendaylight.controller.md.sal.binding.api.NotificationService;
13 import org.opendaylight.openflowplugin.api.openflow.device.handlers.DeviceConnectedHandler;
14 import org.opendaylight.openflowplugin.api.openflow.device.handlers.DeviceContextClosedHandler;
15 import org.opendaylight.openflowplugin.api.openflow.device.handlers.DeviceInitializationPhaseHandler;
16 import org.opendaylight.openflowplugin.api.openflow.device.handlers.DeviceInitializator;
17 import org.opendaylight.openflowplugin.api.openflow.translator.TranslatorLibrarian;
18
19 /**
20  * This interface is responsible for instantiating DeviceContext and
21  * registering transaction chain for each DeviceContext. Each device
22  * has its own device context managed by this manager.
23  * Created by Martin Bobak <mbobak@cisco.com> on 25.2.2015.
24  */
25 public interface DeviceManager extends DeviceConnectedHandler,
26         TranslatorLibrarian,
27         DeviceInitializator,
28         DeviceInitializationPhaseHandler, DeviceContextClosedHandler {
29
30     /**
31      * Sets notification receiving service
32      *
33      * @param notificationService
34      */
35     void setNotificationService(NotificationService notificationService);
36
37     /**
38      * Sets notification publish service
39      *
40      * @param notificationPublishService
41      */
42     void setNotificationPublishService(NotificationPublishService notificationPublishService);
43
44 }
45