f89920a60f797b41dab7a0c9ab27b2a488467571
Files Diff
- Added: 0
- Removed: 1
- Renamed: 0
- Modified: 23
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Rename Method | 1 | ||
Rename Method public refreshPeerState() : void renamed to package setPeerState(enabled boolean) : void in class org.apache.hadoop.hbase.replication.ReplicationPeerImpl | From | To | |
Move And Rename Method | 3 | ||
Move And Rename Method public getStatusOfPeer(id String) : boolean from class org.apache.hadoop.hbase.replication.ReplicationPeersZKImpl to public isPeerEnabled(peerId String) : boolean from class org.apache.hadoop.hbase.replication.ReplicationPeers | From | To | |
Move And Rename Method public getPeerConf(peerId String) : Pair<ReplicationPeerConfig,Configuration> from class org.apache.hadoop.hbase.replication.ReplicationPeersZKImpl to public getPeerClusterConfiguration(peerId String) : Configuration from class org.apache.hadoop.hbase.replication.ReplicationPeers | From | To | |
Move And Rename Method public getConnectedPeer(peerId String) : ReplicationPeerImpl from class org.apache.hadoop.hbase.replication.ReplicationPeersZKImpl to public getPeer(peerId String) : ReplicationPeerImpl from class org.apache.hadoop.hbase.replication.ReplicationPeers | From | To | |
Move And Inline Method | 1 | ||
Move And Inline Method public registerPeer(peerId String, peerConfig ReplicationPeerConfig) : void moved from class org.apache.hadoop.hbase.replication.ReplicationPeers to class org.apache.hadoop.hbase.replication.TestReplicationStateBasic & inlined to protected populateQueues() : void | From | To | |
Rename Variable | 3 | ||
Rename Variable pblen : int to pbLen : int in method public parsePeerFrom(bytes byte[]) : ReplicationPeerConfig in class org.apache.hadoop.hbase.client.replication.ReplicationPeerConfigUtil | From | To | |
Rename Variable peer : ReplicationPeerImpl to newState : PeerState in method public enablePeer(peerId String) : void in class org.apache.hadoop.hbase.replication.regionserver.PeerProcedureHandlerImpl | From | To | |
Rename Variable peer : ReplicationPeerImpl to newState : PeerState in method public disablePeer(peerId String) : void in class org.apache.hadoop.hbase.replication.regionserver.PeerProcedureHandlerImpl | From | To | |
Change Return Type | 3 | ||
Change Return Type Pair<ReplicationPeerConfig,Configuration> to Configuration in method public getPeerClusterConfiguration(peerId String) : Configuration in class org.apache.hadoop.hbase.replication.ReplicationPeers | From | To | |
Change Return Type Optional<ReplicationPeerConfig> to ReplicationPeerConfig in method public getPeerConfig(peerId String) : ReplicationPeerConfig in class org.apache.hadoop.hbase.replication.ReplicationPeerStorage | From | To | |
Change Return Type Optional<ReplicationPeerConfig> to ReplicationPeerConfig in method public getPeerConfig(peerId String) : ReplicationPeerConfig in class org.apache.hadoop.hbase.replication.ZKReplicationPeerStorage | From | To | |
Move Attribute | 1 | ||
Move Attribute private peerStorage : ReplicationPeerStorage from class org.apache.hadoop.hbase.replication.ReplicationPeerImpl to private peerStorage : ReplicationPeerStorage from class org.apache.hadoop.hbase.replication.ReplicationPeers | From | To | |
Rename Attribute | 1 | ||
Rename Attribute replicationPeers : ReplicationPeers to peerStorage : ReplicationPeerStorage in class org.apache.hadoop.hbase.master.cleaner.ReplicationZKNodeCleaner | From | To | |
Change Variable Type | 3 | ||
Change Variable Type peer : ReplicationPeerImpl to newState : PeerState in method public enablePeer(peerId String) : void in class org.apache.hadoop.hbase.replication.regionserver.PeerProcedureHandlerImpl | From | To | |
Change Variable Type peer : ReplicationPeerImpl to newState : PeerState in method public disablePeer(peerId String) : void in class org.apache.hadoop.hbase.replication.regionserver.PeerProcedureHandlerImpl | From | To | |
Change Variable Type peerConfig : Optional<ReplicationPeerConfig> to peerConfig : ReplicationPeerConfig in method public create(zk ZKWatcher, conf Configuration) : ReplicationPeerManager in class org.apache.hadoop.hbase.master.replication.ReplicationPeerManager | From | To | |
Change Attribute Type | 1 | ||
Change Attribute Type replicationPeers : ReplicationPeers to peerStorage : ReplicationPeerStorage in class org.apache.hadoop.hbase.master.cleaner.ReplicationZKNodeCleaner | From | To | |
Extract And Move Method | 2 | ||
Extract And Move Method public refreshPeerState(peerId String) : PeerState extracted from public enablePeer(peerId String) : void in class org.apache.hadoop.hbase.replication.regionserver.PeerProcedureHandlerImpl & moved to class org.apache.hadoop.hbase.replication.ReplicationPeers | From | To | |
Extract And Move Method public refreshPeerState(peerId String) : PeerState extracted from public disablePeer(peerId String) : void in class org.apache.hadoop.hbase.replication.regionserver.PeerProcedureHandlerImpl & moved to class org.apache.hadoop.hbase.replication.ReplicationPeers | From | To | |
Rename Parameter | 1 | ||
Rename Parameter id : String to peerId : String in method public isPeerEnabled(peerId String) : boolean in class org.apache.hadoop.hbase.replication.ReplicationPeers | From | To |