Bug 4957 OpenflowPluginProviderImpl.close() fixing 52/33252/8
authorJozef Bacigal <jbacigal@cisco.com>
Wed, 20 Jan 2016 19:43:40 +0000 (20:43 +0100)
committerJozef Bacigal <jbacigal@cisco.com>
Thu, 4 Feb 2016 10:01:36 +0000 (11:01 +0100)
commit21b97e8f2f71082482229302574c666e9652420b
tree5bbab63728b659e0b561f60538f42db673f06195
parentac7a95aad51b82d6384dc9b0c232d1ade93f31ef
Bug 4957 OpenflowPluginProviderImpl.close() fixing

 - added close invocation of all underlying managers
 - added TODOs for later reconsideration
 - OFPlugin-Li closing process has to wait for cleaning OperDS
   so we could have unclosed (MASTER) instances in context of
   RoleManager. Fist step was merge OpenflowOwnershipListener
   with RoleManager because Manager is here for managing
   all not finished RoleCtx.
   Second step was unregistred new OwnershipListener (RoleManager)
   as OwnershipListener and for every undstanding RoleCtx ask
   OwnershipService for actual state. If the Entity is still
   registred, NOOP otherwise clean OperDS.

Change-Id: Ie041d6e0fb02b153850d8c9645740cf1164b6ac5
Signed-off-by: Jozef Bacigal <jbacigal@cisco.com>
openflowplugin-api/src/main/java/org/opendaylight/openflowplugin/api/openflow/device/DeviceContext.java
openflowplugin-api/src/main/java/org/opendaylight/openflowplugin/api/openflow/role/RoleChangeListener.java
openflowplugin-api/src/main/java/org/opendaylight/openflowplugin/api/openflow/role/RoleContext.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/OpenFlowPluginProviderImpl.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/device/DeviceContextImpl.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/device/DeviceManagerImpl.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/role/OpenflowOwnershipListener.java [deleted file]
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/role/RoleContextImpl.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/role/RoleManagerImpl.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/role/RoleContextImplTest.java