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=58bb6fc0210cce91549c4d3e4d78a8df8a499de7;hb=4ac927548dfd7f66ded8a636b518fbac3f17ec8c;hp=4e4d1d11eb10cc386c0db5bf71aa37d78fd56802;hpb=fedc92b12e0bf6a50fa2ff757116a2fce0b5dac7;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 4e4d1d11eb..58bb6fc021 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 @@ -8,45 +8,39 @@ package org.opendaylight.openflowplugin.api.openflow.device; -import org.opendaylight.controller.md.sal.binding.api.NotificationPublishService; +import com.google.common.util.concurrent.CheckedFuture; +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.device.handlers.DeviceInitializationPhaseHandler; -import org.opendaylight.openflowplugin.api.openflow.device.handlers.DeviceLifecycleSupervisor; -import org.opendaylight.openflowplugin.api.openflow.device.handlers.DeviceTerminationPhaseHandler; import org.opendaylight.openflowplugin.api.openflow.translator.TranslatorLibrarian; /** * This interface is responsible for instantiating DeviceContext and * registering transaction chain for each DeviceContext. Each device * has its own device context managed by this manager. - * Created by Martin Bobak <mbobak@cisco.com> on 25.2.2015. */ -public interface DeviceManager extends DeviceConnectedHandler, DeviceDisconnectedHandler, DeviceLifecycleSupervisor, - DeviceInitializationPhaseHandler, DeviceTerminationPhaseHandler, TranslatorLibrarian, AutoCloseable, OFPManager { - - /** - * Sets notification publish service - * - * @param notificationPublishService - */ - void setNotificationPublishService(NotificationPublishService notificationPublishService); +public interface DeviceManager extends + OFPManager, + DeviceConnectedHandler, + DeviceDisconnectedHandler, + TranslatorLibrarian { /** * invoked after all services injected */ void initialize(); - /** - * Returning device context from map maintained in device manager - * This prevent to send whole device context to another context - * If device context not exists for nodeId it will return null - * - * @param deviceInfo@return device context or null - */ - DeviceContext getDeviceContextFromNodeId(DeviceInfo deviceInfo); + void setIsNotificationFlowRemovedOff(boolean value); + + boolean getIsNotificationFlowRemovedOff(); + + void setSkipTableFeatures(boolean skipTableFeatures); + + void setBarrierCountLimit(int barrierCountLimit); + + void setBarrierInterval(long barrierTimeoutLimit); - void setStatisticsRpcEnabled(boolean isStatisticsRpcEnabled); + CheckedFuture removeDeviceFromOperationalDS(DeviceInfo deviceInfo); }