2 * Copyright (c) 2015, 2017 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
8 package org.opendaylight.openflowplugin.api.openflow.device;
10 import com.google.common.util.concurrent.ListenableFuture;
11 import javax.annotation.Nonnull;
12 import org.opendaylight.openflowplugin.api.openflow.OFPManager;
13 import org.opendaylight.openflowplugin.api.openflow.connection.ConnectionContext;
14 import org.opendaylight.openflowplugin.api.openflow.lifecycle.ContextChainHolder;
15 import org.opendaylight.openflowplugin.api.openflow.translator.TranslatorLibrarian;
16 import org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.Node;
17 import org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.NodeKey;
18 import org.opendaylight.yangtools.yang.binding.KeyedInstanceIdentifier;
21 * This interface is responsible for instantiating DeviceContext and
22 * registering transaction chain for each DeviceContext. Each device
23 * has its own device context managed by this manager.
25 public interface DeviceManager extends
30 * invoked after all services injected.
34 ListenableFuture<?> removeDeviceFromOperationalDS(@Nonnull KeyedInstanceIdentifier<Node, NodeKey> ii);
36 DeviceContext createContext(@Nonnull ConnectionContext connectionContext);
39 void sendNodeAddedNotification(
40 @Nonnull KeyedInstanceIdentifier<Node, NodeKey> instanceIdentifier);
42 void sendNodeRemovedNotification(
43 @Nonnull KeyedInstanceIdentifier<Node, NodeKey> instanceIdentifier);
45 void setContextChainHolder(@Nonnull ContextChainHolder contextChainHolder);