BUG-8618: refactor SyncStatusTracker state 17/59017/1
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 14 Jun 2017 23:29:01 +0000 (01:29 +0200)
committerTom Pantelis <tompantelis@gmail.com>
Thu, 15 Jun 2017 11:32:53 +0000 (11:32 +0000)
commitf782b6b1af793cafc89bda53cbb940dd71bc25ba
treece35d3544430e6a98813bba3ac2272266df866c9
parente6922e3dc95c97418f7158350448fd6e9a74eb87
BUG-8618: refactor SyncStatusTracker state

Introducing a leader target encapsulation allows us to
enfore state transitions (i.e. state is guaranteed to be
non-null when we need its bits).

This enables us to eliminate the need for a magic constant.

Change-Id: Iab7178694edc3c62032e32c4386c371630f67b6f
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 2c42c1d35a45fb7eced5a3ffd07b52bdc26f7e40)
opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/behaviors/SyncStatusTracker.java