Add voting state to shard mbean FollowerInfo 78/40178/2
authorTom Pantelis <tpanteli@brocade.com>
Fri, 10 Jun 2016 02:25:05 +0000 (22:25 -0400)
committerTom Pantelis <tpanteli@brocade.com>
Wed, 15 Jun 2016 04:45:26 +0000 (04:45 +0000)
commit28ecb323a3108041e8acdb3431bbd319285208a1
tree291d1bec1419b04cee53d44e2c9484c68d1d0ebf
parent6ce89595f9e74fb38e92f8889a5df056006f3a31
Add voting state to shard mbean FollowerInfo

The shard mbean displays the peer voting states map but it's also useful
to see the voting state in the leader's FollowerInfo.

Also fixed an NPE when JMX accesses the peerAddresses when a peer's
address is null. We use guava's Map.Joiner to output the map but it
throws an NPE for a null entry vlaue. I chnaged RaftActor to put "" in
the map if null.

Change-Id: I1eb963808fd7878dfe1e4935f3ac06a579a3504e
Signed-off-by: Tom Pantelis <tpanteli@brocade.com>
opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/RaftActor.java
opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/client/messages/FollowerInfo.java