Class DeviceManagerImpl
java.lang.Object
org.opendaylight.openflowplugin.impl.device.DeviceManagerImpl
- All Implemented Interfaces:
AutoCloseable
,DeviceManager
,DeviceRemovedHandler
,FlowGroupInfoHistories
,OFPManager
,TranslatorLibrarian
,ExtensionConverterProviderKeeper
public class DeviceManagerImpl
extends Object
implements DeviceManager, ExtensionConverterProviderKeeper
-
Constructor Summary
ConstructorDescriptionDeviceManagerImpl
(@NonNull OpenflowProviderConfig config, @NonNull org.opendaylight.mdsal.binding.api.DataBroker dataBroker, @NonNull MessageSpy messageSpy, @NonNull org.opendaylight.mdsal.binding.api.NotificationPublishService notificationPublishService, @NonNull io.netty.util.HashedWheelTimer hashedWheelTimer, @NonNull ConvertorExecutor convertorExecutor, @NonNull DeviceInitializerProvider deviceInitializerProvider, @NonNull ExecutorService executorService) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
createContext
(@NonNull ConnectionContext connectionContext) Returns the extension converters registry access point for by inner infrastructure.getFlowGroupHistory
(NodeId nodeId) void
invoked after all services injected.void
onDeviceRemoved
(DeviceInfo deviceInfo) Method is used to propagate information about device being removed from manager.oook()
Method provides translator library held by Librarian.com.google.common.util.concurrent.ListenableFuture
<?> removeDeviceFromOperationalDS
(@NonNull org.opendaylight.yangtools.yang.binding.KeyedInstanceIdentifier<Node, NodeKey> ii) void
sendNodeAddedNotification
(@NonNull org.opendaylight.yangtools.yang.binding.KeyedInstanceIdentifier<Node, NodeKey> instanceIdentifier) void
sendNodeRemovedNotification
(@NonNull org.opendaylight.yangtools.yang.binding.KeyedInstanceIdentifier<Node, NodeKey> instanceIdentifier) void
setContextChainHolder
(@NonNull ContextChainHolder contextChainHolder) void
setExtensionConverterProvider
(ExtensionConverterProvider extensionConverterProvider) Sets the ExtensionConverterProvider.void
setTranslatorLibrary
(TranslatorLibrary translatorLibrary) Method registers translator library for translating message objects.
-
Constructor Details
-
DeviceManagerImpl
public DeviceManagerImpl(@NonNull OpenflowProviderConfig config, @NonNull org.opendaylight.mdsal.binding.api.DataBroker dataBroker, @NonNull MessageSpy messageSpy, @NonNull org.opendaylight.mdsal.binding.api.NotificationPublishService notificationPublishService, @NonNull io.netty.util.HashedWheelTimer hashedWheelTimer, @NonNull ConvertorExecutor convertorExecutor, @NonNull DeviceInitializerProvider deviceInitializerProvider, @NonNull ExecutorService executorService)
-
-
Method Details
-
oook
Description copied from interface:TranslatorLibrarian
Method provides translator library held by Librarian.- Specified by:
oook
in interfaceTranslatorLibrarian
- Returns:
- translator library
-
setTranslatorLibrary
Description copied from interface:TranslatorLibrarian
Method registers translator library for translating message objects.- Specified by:
setTranslatorLibrary
in interfaceTranslatorLibrarian
- Parameters:
translatorLibrary
- translator library
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceOFPManager
-
initialize
public void initialize()Description copied from interface:DeviceManager
invoked after all services injected.- Specified by:
initialize
in interfaceDeviceManager
-
setExtensionConverterProvider
Description copied from interface:ExtensionConverterProviderKeeper
Sets the ExtensionConverterProvider. Extension converters will be kept in order to be accessible by inner infrastructure.- Specified by:
setExtensionConverterProvider
in interfaceExtensionConverterProviderKeeper
- Parameters:
extensionConverterProvider
- the ExtensionConverterProvider
-
getExtensionConverterProvider
Description copied from interface:ExtensionConverterProviderKeeper
Returns the extension converters registry access point for by inner infrastructure.- Specified by:
getExtensionConverterProvider
in interfaceExtensionConverterProviderKeeper
- Returns:
- extensionConverterProvider
-
removeDeviceFromOperationalDS
public com.google.common.util.concurrent.ListenableFuture<?> removeDeviceFromOperationalDS(@NonNull org.opendaylight.yangtools.yang.binding.KeyedInstanceIdentifier<Node, NodeKey> ii) - Specified by:
removeDeviceFromOperationalDS
in interfaceDeviceManager
-
createContext
- Specified by:
createContext
in interfaceDeviceManager
-
onDeviceRemoved
Description copied from interface:DeviceRemovedHandler
Method is used to propagate information about device being removed from manager.- Specified by:
onDeviceRemoved
in interfaceDeviceRemovedHandler
-
sendNodeRemovedNotification
public void sendNodeRemovedNotification(@NonNull org.opendaylight.yangtools.yang.binding.KeyedInstanceIdentifier<Node, NodeKey> instanceIdentifier) - Specified by:
sendNodeRemovedNotification
in interfaceDeviceManager
-
setContextChainHolder
- Specified by:
setContextChainHolder
in interfaceDeviceManager
-
sendNodeAddedNotification
public void sendNodeAddedNotification(@NonNull org.opendaylight.yangtools.yang.binding.KeyedInstanceIdentifier<Node, NodeKey> instanceIdentifier) - Specified by:
sendNodeAddedNotification
in interfaceDeviceManager
-
getAllFlowGroupHistories
- Specified by:
getAllFlowGroupHistories
in interfaceFlowGroupInfoHistories
-
getFlowGroupHistory
- Specified by:
getFlowGroupHistory
in interfaceFlowGroupInfoHistories
-