Add voting state to shard mbean FollowerInfo 73/40173/2
authorTom Pantelis <tpanteli@brocade.com>
Fri, 10 Jun 2016 02:25:05 +0000 (22:25 -0400)
committerTom Pantelis <tpanteli@brocade.com>
Tue, 14 Jun 2016 02:27:50 +0000 (02:27 +0000)
commit61e85d54cfcd70053993f910092eba1ab3fcc850
treecc9ec15dc01e04c1b5b3736123fe0dce104a0a98
parenta740ebb4e83668a2a41e9facb4632d8379258df7
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: Ibe9f8ec1bb01231c1aa960e104da58c0ce72d9b6
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