2 * Copyright (c) 2015 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.api.openflow.device;
11 import org.opendaylight.controller.md.sal.binding.api.NotificationPublishService;
12 import org.opendaylight.openflowplugin.api.openflow.device.handlers.DeviceConnectedHandler;
13 import org.opendaylight.openflowplugin.api.openflow.device.handlers.DeviceDisconnectedHandler;
14 import org.opendaylight.openflowplugin.api.openflow.device.handlers.DeviceInitializationPhaseHandler;
15 import org.opendaylight.openflowplugin.api.openflow.device.handlers.DeviceLifecycleSupervisor;
16 import org.opendaylight.openflowplugin.api.openflow.device.handlers.DeviceTerminationPhaseHandler;
17 import org.opendaylight.openflowplugin.api.openflow.translator.TranslatorLibrarian;
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.
25 public interface DeviceManager extends DeviceConnectedHandler, DeviceDisconnectedHandler, DeviceLifecycleSupervisor,
26 DeviceInitializationPhaseHandler, DeviceTerminationPhaseHandler, TranslatorLibrarian, AutoCloseable {
29 * Sets notification publish service
31 * @param notificationPublishService
33 void setNotificationPublishService(NotificationPublishService notificationPublishService);
36 * invoked after all services injected
41 * Returning device context from map maintained in device manager
42 * This prevent to send whole device context to another context
43 * If device context not exists for nodeId it will return null
45 * @param deviceInfo@return device context or null
47 DeviceContext getDeviceContextFromNodeId(DeviceInfo deviceInfo);
49 void setStatisticsRpcEnabled(boolean isStatisticsRpcEnabled);