Close the SouthboundHandler Executor Gracefully 10/9710/1
authorDave Tucker <djt@redhat.com>
Tue, 5 Aug 2014 18:45:07 +0000 (19:45 +0100)
committerDave Tucker <djt@redhat.com>
Tue, 5 Aug 2014 18:48:50 +0000 (19:48 +0100)
commit7f66a24ebbd798e6e79aa13db80d29fe64683a5a
tree39e30971a83ddcabaa083d47e35b04f6b0e92c59
parent1d74e07e96f637b01630dd34ee6f8db260157d34
Close the SouthboundHandler Executor Gracefully

During the OSGi "stop" method try and close the Executor gracefully.
Stop accepting new work by calling shutdown()
Wait a given time for  the current task to terminate before issuing a
shutdownNow()

Fixes bug 281

Change-Id: I0823a3dce87e67ca3e5d18640e9ecd5d4e75b7ba
Signed-off-by: Dave Tucker <djt@redhat.com>
openstack/net-virt/src/main/java/org/opendaylight/ovsdb/openstack/netvirt/SouthboundHandler.java