872c458e00757e8f1bc8ef44b1032440c1b7caf7
Files Diff
- Added: 2
- Removed: 1
- Renamed: 0
- Modified: 22
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Merge Attribute | 1 | ||
Merge Attribute [localLeader : MemberId, term : long] to leaderInfo : LeaderInfo in class org.neo4j.causalclustering.discovery.HazelcastCoreTopologyService | From | To | |
Rename Method | 1 | ||
Rename Method public receive(leader MemberId) : void renamed to public onLeaderSwitch(leaderInfo LeaderInfo) : void in class org.neo4j.causalclustering.core.replication.RaftReplicator | From | To | |
Change Parameter Type | 4 | ||
Change Parameter Type listener : Listener to listener : LeaderListener in method public unregisterListener(listener LeaderListener) : void in class org.neo4j.causalclustering.core.consensus.RaftMachine | From | To | |
Change Parameter Type memberId : MemberId to leaderInfo : LeaderInfo in method public setLeader(leaderInfo LeaderInfo, dbName String) : void in class org.neo4j.causalclustering.discovery.CoreTopologyService | From | To | |
Change Parameter Type leader : MemberId to leaderInfo : LeaderInfo in method public onLeaderSwitch(leaderInfo LeaderInfo) : void in class org.neo4j.causalclustering.core.replication.RaftReplicator | From | To | |
Change Parameter Type memberId : MemberId to leaderInfo : LeaderInfo in method public setLeader(leaderInfo LeaderInfo, dbName String) : void in class org.neo4j.causalclustering.discovery.HazelcastCoreTopologyService | From | To | |
Change Return Type | 2 | ||
Change Return Type boolean to void in method package casLeaders(hazelcastInstance HazelcastInstance, leaderInfo LeaderInfo, dbName String) : void in class org.neo4j.causalclustering.discovery.HazelcastClusterTopology | From | To | |
Change Return Type Optional<RaftLeader> to Optional<LeaderInfo> in method private getLeaderForDBName(hazelcastInstance HazelcastInstance, dbName String) : Optional<LeaderInfo> in class org.neo4j.causalclustering.discovery.HazelcastClusterTopology | From | To | |
Move And Rename Class | 1 | ||
Move And Rename Class org.neo4j.causalclustering.discovery.RaftLeader moved and renamed to org.neo4j.causalclustering.core.consensus.LeaderInfo | From | To | |
Merge Parameter | 1 | ||
Merge Parameter [term : long, memberId : MemberId] to newLeader : LeaderInfo in method public setLeader(newLeader LeaderInfo, dbName String) : void in class org.neo4j.causalclustering.discovery.SharedDiscoveryCoreClient | From | To | |
Rename Attribute | 2 | ||
Rename Attribute memberUUID : UUID to memberId : MemberId in class org.neo4j.causalclustering.core.consensus.LeaderInfo | From | To | |
Rename Attribute localLeader : MemberId to leaderInfo : LeaderInfo in class org.neo4j.causalclustering.discovery.SharedDiscoveryCoreClient | From | To | |
Change Variable Type | 5 | ||
Change Variable Type leaderRef : IAtomicReference<RaftLeader> to leaderRef : IAtomicReference<LeaderInfo> in method public shouldCorrectlyReturnCoreMemberRoles() : void in class org.neo4j.causalclustering.discovery.HazelcastClusterTopologyTest | From | To | |
Change Variable Type leaderRef : IAtomicReference<RaftLeader> to leaderRef : IAtomicReference<LeaderInfo> in method package casLeaders(hazelcastInstance HazelcastInstance, leaderInfo LeaderInfo, dbName String) : void in class org.neo4j.causalclustering.discovery.HazelcastClusterTopology | From | To | |
Change Variable Type leader : IAtomicReference<RaftLeader> to leader : IAtomicReference<LeaderInfo> in method private getLeaderForDBName(hazelcastInstance HazelcastInstance, dbName String) : Optional<LeaderInfo> in class org.neo4j.causalclustering.discovery.HazelcastClusterTopology | From | To | |
Change Variable Type expected : RaftLeader to expected : LeaderInfo in method package casLeaders(hazelcastInstance HazelcastInstance, leaderInfo LeaderInfo, dbName String) : void in class org.neo4j.causalclustering.discovery.HazelcastClusterTopology | From | To | |
Change Variable Type current : Optional<RaftLeader> to current : Optional<LeaderInfo> in method package casLeaders(leaderInfo LeaderInfo, dbName String) : void in class org.neo4j.causalclustering.discovery.SharedDiscoveryService | From | To | |
Change Attribute Type | 4 | ||
Change Attribute Type localLeader : MemberId to leaderInfo : LeaderInfo in class org.neo4j.causalclustering.discovery.SharedDiscoveryCoreClient | From | To | |
Change Attribute Type leaderMap : ConcurrentMap<String,RaftLeader> to leaderMap : ConcurrentMap<String,LeaderInfo> in class org.neo4j.causalclustering.discovery.SharedDiscoveryService | From | To | |
Change Attribute Type memberUUID : UUID to memberId : MemberId in class org.neo4j.causalclustering.core.consensus.LeaderInfo | From | To | |
Change Attribute Type leaderListeners : Collection<Listener<MemberId>> to leaderListeners : Collection<LeaderListener> in class org.neo4j.causalclustering.core.consensus.RaftMachine | From | To | |
Rename Parameter | 3 | ||
Rename Parameter memberId : MemberId to leaderInfo : LeaderInfo in method public setLeader(leaderInfo LeaderInfo, dbName String) : void in class org.neo4j.causalclustering.discovery.HazelcastCoreTopologyService | From | To | |
Rename Parameter memberId : MemberId to leaderInfo : LeaderInfo in method public setLeader(leaderInfo LeaderInfo, dbName String) : void in class org.neo4j.causalclustering.discovery.CoreTopologyService | From | To | |
Rename Parameter leader : MemberId to leaderInfo : LeaderInfo in method public onLeaderSwitch(leaderInfo LeaderInfo) : void in class org.neo4j.causalclustering.core.replication.RaftReplicator | From | To |