Make RaftActor.initiateLeadershipTransfer() private 70/36870/3
authorRobert Varga <rovarga@cisco.com>
Wed, 30 Mar 2016 09:04:51 +0000 (11:04 +0200)
committerRobert Varga <rovarga@cisco.com>
Wed, 30 Mar 2016 09:27:08 +0000 (11:27 +0200)
commitd639c62a1e743ec846b15bf755b830b00f4cc7eb
tree33c744553125b1e14948c5c4a0e0599549ca527e
parentbd4d8d7de8c075062ccb517f0a2eefe02617bdd7
Make RaftActor.initiateLeadershipTransfer() private

the only external caller is RaftActorServerConfigurationSupport,
which invokes the method when the actor should become non-voting.

Expose an explicit method for this case and make the leadership
transfer an implementation detail -- making it easier to refactor.

Change-Id: I06c9d1c0c07a92490ddf111d5723c8361001437f
Signed-off-by: Robert Varga <rovarga@cisco.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/RaftActorServerConfigurationSupport.java