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.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.DeviceDisconnectedHandler;
15 import org.opendaylight.openflowplugin.api.openflow.device.handlers.DeviceInitializationPhaseHandler;
16 import org.opendaylight.openflowplugin.api.openflow.device.handlers.DeviceLifecycleSupervisor;
17 import org.opendaylight.openflowplugin.api.openflow.device.handlers.DeviceTerminationPhaseHandler;
18 import org.opendaylight.openflowplugin.api.openflow.translator.TranslatorLibrarian;
19 import org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeId;
22 * This interface is responsible for instantiating DeviceContext and
23 * registering transaction chain for each DeviceContext. Each device
24 * has its own device context managed by this manager.
25 * Created by Martin Bobak <mbobak@cisco.com> on 25.2.2015.
27 public interface DeviceManager extends DeviceConnectedHandler, DeviceDisconnectedHandler, DeviceLifecycleSupervisor,
28 DeviceInitializationPhaseHandler, DeviceTerminationPhaseHandler, TranslatorLibrarian, AutoCloseable {
31 * Sets notification publish service
33 * @param notificationPublishService
35 void setNotificationPublishService(NotificationPublishService notificationPublishService);
38 * invoked after all services injected
43 * Returning device context from map maintained in device manager
44 * This prevent to send whole device context to another context
45 * If device context not exists for nodeId it will return null
47 * @return device context or null
49 DeviceContext getDeviceContextFromNodeId(NodeId nodeId);
51 void setStatisticsRpcEnabled(boolean isStatisticsRpcEnabled);