Fix the dispatcher not being threadsafe 64/1464/4
authorRobert Varga <rovarga@cisco.com>
Thu, 19 Sep 2013 06:45:40 +0000 (08:45 +0200)
committerGerrit Code Review <gerrit@opendaylight.org>
Fri, 27 Sep 2013 20:36:15 +0000 (20:36 +0000)
commit162cc147d4e8cd76eb476ee2371834f95da36881
tree2a13bffc1015009ee3b7d8502d12d4fd49873d7e
parentf11687b9af6d78ad5c5c0572c23ebec7d6f8ddf4
Fix the dispatcher not being threadsafe

It turns out that the createServer/createClient calls actually need a
initializer which is protocol-specific and that listener needs to be
more than an abstract method, as there is protocol-specific state which
needs to be maintained.

Change-Id: Ia70c01183b23f79f7f1d8376cbe04c6af2f549d1
Signed-off-by: Robert Varga <rovarga@cisco.com>
bgp/rib-impl/src/main/java/org/opendaylight/protocol/bgp/rib/impl/BGPDispatcherImpl.java
bgp/testtool/src/test/java/org/opendaylight/protocol/bgp/testtool/BGPSpeakerMock.java
framework/src/main/java/org/opendaylight/protocol/framework/AbstractDispatcher.java
framework/src/main/java/org/opendaylight/protocol/framework/ReconnectPromise.java
framework/src/test/java/org/opendaylight/protocol/framework/ServerTest.java
framework/src/test/java/org/opendaylight/protocol/framework/SimpleDispatcher.java
pcep/api/src/main/java/org/opendaylight/protocol/pcep/PCEPDispatcher.java
pcep/impl/src/main/java/org/opendaylight/protocol/pcep/impl/PCEPDispatcherImpl.java
pcep/testtool/src/test/java/org/opendaylight/protocol/pcep/testtool/PCCMock.java