X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=openflowplugin-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fopenflowplugin%2Fapi%2Fopenflow%2Fdevice%2FDeviceManager.java;h=223cb4c14f110e039d4d07a33b8012c6c2357ee5;hb=bb5487ecc9d866af16d2f80e3fae7e35b9a8bf2e;hp=e86e06fdd80b7adc4ad847c3f1efb76a69aa8205;hpb=c373ae004e9e04a40ea9c3a7d7476fdf47faee09;p=openflowplugin.git diff --git a/openflowplugin-api/src/main/java/org/opendaylight/openflowplugin/api/openflow/device/DeviceManager.java b/openflowplugin-api/src/main/java/org/opendaylight/openflowplugin/api/openflow/device/DeviceManager.java index e86e06fdd8..223cb4c14f 100644 --- a/openflowplugin-api/src/main/java/org/opendaylight/openflowplugin/api/openflow/device/DeviceManager.java +++ b/openflowplugin-api/src/main/java/org/opendaylight/openflowplugin/api/openflow/device/DeviceManager.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved. + * Copyright (c) 2015, 2017 Cisco Systems, Inc. and others. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this distribution, @@ -9,11 +9,14 @@ package org.opendaylight.openflowplugin.api.openflow.device; import com.google.common.util.concurrent.CheckedFuture; +import javax.annotation.Nonnull; import org.opendaylight.controller.md.sal.common.api.data.TransactionCommitFailedException; import org.opendaylight.openflowplugin.api.openflow.OFPManager; -import org.opendaylight.openflowplugin.api.openflow.device.handlers.DeviceConnectedHandler; -import org.opendaylight.openflowplugin.api.openflow.device.handlers.DeviceDisconnectedHandler; +import org.opendaylight.openflowplugin.api.openflow.connection.ConnectionContext; import org.opendaylight.openflowplugin.api.openflow.translator.TranslatorLibrarian; +import org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.Node; +import org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.NodeKey; +import org.opendaylight.yangtools.yang.binding.KeyedInstanceIdentifier; /** * This interface is responsible for instantiating DeviceContext and @@ -22,27 +25,23 @@ import org.opendaylight.openflowplugin.api.openflow.translator.TranslatorLibrari */ public interface DeviceManager extends OFPManager, - DeviceConnectedHandler, - DeviceDisconnectedHandler, TranslatorLibrarian { /** - * invoked after all services injected + * invoked after all services injected. */ void initialize(); - void setFlowRemovedNotificationOn(boolean value); + CheckedFuture removeDeviceFromOperationalDS( + @Nonnull KeyedInstanceIdentifier ii); - boolean isFlowRemovedNotificationOn(); + DeviceContext createContext(@Nonnull ConnectionContext connectionContext); - void setSkipTableFeatures(boolean skipTableFeatures); - void setBarrierCountLimit(int barrierCountLimit); + void sendNodeAddedNotification( + @Nonnull KeyedInstanceIdentifier instanceIdentifier); - void setBarrierInterval(long barrierTimeoutLimit); - - CheckedFuture removeDeviceFromOperationalDS(DeviceInfo deviceInfo); - - void setUseSingleLayerSerialization(Boolean useSingleLayerSerilization); + void sendNodeRemovedNotification( + @Nonnull KeyedInstanceIdentifier instanceIdentifier); }