7f39baf0f4572ff209837d7de5d37554851ecbb7
Files Diff
- Added: 3
- Removed: 0
- Renamed: 0
- Modified: 30
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Rename Method | 1 | ||
Rename Method public startTableCFsTracker(zookeeper ZooKeeperWatcher, tableCFsNode String) : void renamed to public startPeerConfigTracker(peerConfigNode String) : void in class org.apache.hadoop.hbase.replication.ReplicationPeerZKImpl | From | To | |
Pull Up Method | 2 | ||
Pull Up Method private getTableCFsNode(id String) : String from class org.apache.hadoop.hbase.replication.ReplicationPeersZKImpl to protected getTableCFsNode(id String) : String from class org.apache.hadoop.hbase.replication.ReplicationStateZKBase | From | To | |
Pull Up Method private getPeerStateNode(id String) : String from class org.apache.hadoop.hbase.replication.ReplicationPeersZKImpl to protected getPeerStateNode(id String) : String from class org.apache.hadoop.hbase.replication.ReplicationStateZKBase | From | To | |
Move And Inline Method | 14 | ||
Move And Inline Method public addPeer(id String, clusterKey String) : void moved from class org.apache.hadoop.hbase.client.replication.ReplicationAdmin to class org.apache.hadoop.hbase.client.replication.TestReplicationAdmin & inlined to public testAddRemovePeer() : void | From | To | |
Move And Inline Method public addPeer(id String, clusterKey String) : void moved from class org.apache.hadoop.hbase.client.replication.ReplicationAdmin to class org.apache.hadoop.hbase.client.replication.TestReplicationAdmin & inlined to public testAppendPeerTableCFs() : void | From | To | |
Move And Inline Method public addPeer(id String, clusterKey String) : void moved from class org.apache.hadoop.hbase.client.replication.ReplicationAdmin to class org.apache.hadoop.hbase.security.visibility.TestVisibilityLabelReplicationWithExpAsString & inlined to public setup() : void | From | To | |
Move And Inline Method public addPeer(id String, clusterKey String) : void moved from class org.apache.hadoop.hbase.client.replication.ReplicationAdmin to class org.apache.hadoop.hbase.security.visibility.TestVisibilityLabelsReplication & inlined to public setup() : void | From | To | |
Move And Inline Method public addPeer(id String, clusterKey String) : void moved from class org.apache.hadoop.hbase.client.replication.ReplicationAdmin to class org.apache.hadoop.hbase.client.TestReplicaWithCluster & inlined to public testReplicaAndReplication() : void | From | To | |
Move And Inline Method public addPeer(id String, clusterKey String) : void moved from class org.apache.hadoop.hbase.client.replication.ReplicationAdmin to class org.apache.hadoop.hbase.client.replication.TestReplicationAdmin & inlined to public testEnableDisable() : void | From | To | |
Move And Inline Method public addPeer(id String, clusterKey String) : void moved from class org.apache.hadoop.hbase.client.replication.ReplicationAdmin to class org.apache.hadoop.hbase.replication.TestReplicationSyncUpTool & inlined to protected setupReplication() : void | From | To | |
Move And Inline Method public addPeer(id String, clusterKey String) : void moved from class org.apache.hadoop.hbase.client.replication.ReplicationAdmin to class org.apache.hadoop.hbase.client.replication.TestReplicationAdmin & inlined to public testRemovePeerTableCFs() : void | From | To | |
Move And Inline Method public addPeer(id String, clusterKey String) : void moved from class org.apache.hadoop.hbase.client.replication.ReplicationAdmin to class org.apache.hadoop.hbase.client.replication.TestReplicationAdmin & inlined to public testAddPeerWithUnDeletedQueues() : void | From | To | |
Move And Inline Method public addPeer(id String, clusterKey String) : void moved from class org.apache.hadoop.hbase.client.replication.ReplicationAdmin to class org.apache.hadoop.hbase.replication.TestReplicationBase & inlined to public setUpBeforeClass() : void | From | To | |
Move And Inline Method public addPeer(id String, clusterKey String) : void moved from class org.apache.hadoop.hbase.client.replication.ReplicationAdmin to class org.apache.hadoop.hbase.replication.TestReplicationWithTags & inlined to public setUpBeforeClass() : void | From | To | |
Move And Inline Method public addPeer(id String, clusterKey String) : void moved from class org.apache.hadoop.hbase.client.replication.ReplicationAdmin to class org.apache.hadoop.hbase.replication.TestMultiSlaveReplication & inlined to public testMultiSlaveReplication() : void | From | To | |
Move And Inline Method public addPeer(id String, clusterKey String) : void moved from class org.apache.hadoop.hbase.client.replication.ReplicationAdmin to class org.apache.hadoop.hbase.replication.TestReplicationSmallTests & inlined to public testAddAndRemoveClusters() : void | From | To | |
Move And Inline Method public addPeer(id String, clusterKey String) : void moved from class org.apache.hadoop.hbase.client.replication.ReplicationAdmin to class org.apache.hadoop.hbase.util.TestHBaseFsckOneRS & inlined to public testCheckReplication() : void | From | To | |
Move Method | 4 | ||
Move Method private toByteArray(peerConfig ReplicationPeerConfig) : byte[] from class org.apache.hadoop.hbase.replication.ReplicationPeersZKImpl to public toByteArray(peerConfig ReplicationPeerConfig) : byte[] from class org.apache.hadoop.hbase.client.replication.ReplicationSerDeHelper | From | To | |
Move Method private convert(peerConfig ReplicationPeerConfig) : ZooKeeperProtos.ReplicationPeer from class org.apache.hadoop.hbase.replication.ReplicationPeersZKImpl to public convert(peerConfig ReplicationPeerConfig) : ZooKeeperProtos.ReplicationPeer from class org.apache.hadoop.hbase.client.replication.ReplicationSerDeHelper | From | To | |
Move Method private parsePeerFrom(bytes byte[]) : ReplicationPeerConfig from class org.apache.hadoop.hbase.replication.ReplicationPeersZKImpl to public parsePeerFrom(bytes byte[]) : ReplicationPeerConfig from class org.apache.hadoop.hbase.client.replication.ReplicationSerDeHelper | From | To | |
Move Method private convert(peer ZooKeeperProtos.ReplicationPeer) : ReplicationPeerConfig from class org.apache.hadoop.hbase.replication.ReplicationPeersZKImpl to public convert(peer ZooKeeperProtos.ReplicationPeer) : ReplicationPeerConfig from class org.apache.hadoop.hbase.client.replication.ReplicationSerDeHelper | From | To | |
Pull Up Attribute | 1 | ||
Pull Up Attribute private tableCFsNodeName : String from class org.apache.hadoop.hbase.replication.ReplicationPeersZKImpl to protected tableCFsNodeName : String from class org.apache.hadoop.hbase.replication.ReplicationStateZKBase | From | To | |
Change Return Type | 2 | ||
Change Return Type String to Map<TableName,List<String>> in method public getPeerTableCFsConfig(peerId String) : Map<TableName,List<String>> in class org.apache.hadoop.hbase.replication.ReplicationPeers | From | To | |
Change Return Type String to Map<TableName,List<String>> in method public getPeerTableCFsConfig(id String) : Map<TableName,List<String>> in class org.apache.hadoop.hbase.replication.ReplicationPeersZKImpl | From | To | |
Extract Class | 1 | ||
Extract Class org.apache.hadoop.hbase.client.replication.ReplicationSerDeHelper from class org.apache.hadoop.hbase.replication.ReplicationPeersZKImpl | From | To | |
Rename Class | 1 | ||
Rename Class org.apache.hadoop.hbase.replication.ReplicationPeerZKImpl.TableCFsTracker renamed to org.apache.hadoop.hbase.replication.ReplicationPeerZKImpl.PeerConfigTracker | From | To | |
Rename Attribute | 1 | ||
Rename Attribute tableCFsTracker : TableCFsTracker to peerConfigTracker : PeerConfigTracker in class org.apache.hadoop.hbase.replication.ReplicationPeerZKImpl | From | To | |
Change Attribute Type | 1 | ||
Change Attribute Type tableCFsTracker : TableCFsTracker to peerConfigTracker : PeerConfigTracker in class org.apache.hadoop.hbase.replication.ReplicationPeerZKImpl | From | To | |
Extract And Move Method | 1 | ||
Extract And Move Method protected getPeerNode(id String) : String extracted from public getReplicationPeerConfig(peerId String) : ReplicationPeerConfig in class org.apache.hadoop.hbase.replication.ReplicationPeersZKImpl & moved to class org.apache.hadoop.hbase.replication.ReplicationStateZKBase | From | To | |
Rename Parameter | 2 | ||
Rename Parameter tableCFsZNode : String to peerConfigNode : String in method public PeerConfigTracker(peerConfigNode String, watcher ZooKeeperWatcher, abortable Abortable) in class org.apache.hadoop.hbase.replication.ReplicationPeerZKImpl.PeerConfigTracker | From | To | |
Rename Parameter tableCFsNode : String to peerConfigNode : String in method public startPeerConfigTracker(peerConfigNode String) : void in class org.apache.hadoop.hbase.replication.ReplicationPeerZKImpl | From | To |