Class DeviceManagerImpl
- java.lang.Object
-
- org.opendaylight.openflowplugin.impl.device.DeviceManagerImpl
-
- All Implemented Interfaces:
AutoCloseable
,DeviceManager
,DeviceRemovedHandler
,OFPManager
,TranslatorLibrarian
,ExtensionConverterProviderKeeper
public class DeviceManagerImpl extends Object implements DeviceManager, ExtensionConverterProviderKeeper
-
-
Constructor Summary
Constructors Constructor Description 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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
DeviceContext
createContext(@NonNull ConnectionContext connectionContext)
ExtensionConverterProvider
getExtensionConverterProvider()
Returns the extension converters registry access point for by inner infrastructure.void
initialize()
invoked after all services injected.void
onDeviceRemoved(DeviceInfo deviceInfo)
Method is used to propagate information about device being removed from manager.TranslatorLibrary
oook()
Method provides translator library held by Librarian.com.google.common.util.concurrent.ListenableFuture<?>
removeDeviceFromOperationalDS(@NonNull org.opendaylight.yangtools.yang.binding.KeyedInstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.Node,org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.NodeKey> ii)
void
sendNodeAddedNotification(@NonNull org.opendaylight.yangtools.yang.binding.KeyedInstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.Node,org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.NodeKey> instanceIdentifier)
void
sendNodeRemovedNotification(@NonNull org.opendaylight.yangtools.yang.binding.KeyedInstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.Node,org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.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 Detail
-
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 Detail
-
oook
public TranslatorLibrary oook()
Description copied from interface:TranslatorLibrarian
Method provides translator library held by Librarian.- Specified by:
oook
in interfaceTranslatorLibrarian
- Returns:
- translator library
-
setTranslatorLibrary
public void setTranslatorLibrary(TranslatorLibrary translatorLibrary)
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
public void setExtensionConverterProvider(ExtensionConverterProvider extensionConverterProvider)
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
public 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<org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.Node,org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.NodeKey> ii)
- Specified by:
removeDeviceFromOperationalDS
in interfaceDeviceManager
-
createContext
public DeviceContext createContext(@NonNull ConnectionContext connectionContext)
- Specified by:
createContext
in interfaceDeviceManager
-
onDeviceRemoved
public void onDeviceRemoved(DeviceInfo deviceInfo)
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<org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.Node,org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.NodeKey> instanceIdentifier)
- Specified by:
sendNodeRemovedNotification
in interfaceDeviceManager
-
setContextChainHolder
public void setContextChainHolder(@NonNull ContextChainHolder contextChainHolder)
- Specified by:
setContextChainHolder
in interfaceDeviceManager
-
sendNodeAddedNotification
public void sendNodeAddedNotification(@NonNull org.opendaylight.yangtools.yang.binding.KeyedInstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.Node,org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.NodeKey> instanceIdentifier)
- Specified by:
sendNodeAddedNotification
in interfaceDeviceManager
-
-