BUG 2817 - Create reusable classes for doing an action on finding primary 37/29837/5
authorMoiz Raja <moraja@cisco.com>
Wed, 18 Nov 2015 02:55:23 +0000 (18:55 -0800)
committerTom Pantelis <tpanteli@brocade.com>
Thu, 19 Nov 2015 02:09:30 +0000 (02:09 +0000)
commitb5c9af022a7f22bdaaac386bdcda4a5f5cc5eb6c
tree42088fb6c2486a1ec5a50e25b56872260eff1e64
parent4680d02510a884b3a893345f423cedcc8c5af0f4
BUG 2817 - Create reusable classes for doing an action on finding primary

For AddShardReplica we are finding the primary and when it is found we send
a ForwardedAddServer* message to self. I need to do something similar for
RemoveShardReplica - so I've extracted the design pattern that was used for
AddShardReplica into a set of reusable classes. To start with this I can
use this for RemoveShardReplica but I think it can be used for other such
messages in future.

Change-Id: Ib625403f6eab5b07bc126af9db3d4e6e566e2038
Signed-off-by: Moiz Raja <moraja@cisco.com>
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ShardManager.java