b8dc025bd2753cc15aa906e7b67ab01a4eac3ad2
Files Diff
- Added: 5
- Removed: 4
- Renamed: 0
- Modified: 14
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Rename Method | 5 | ||
Rename Method public getAllGraylogIndexNames() : String[] renamed to public getManagedIndicesNames() : String[] in class org.graylog2.indexer.MongoIndexSet | From | To | |
Rename Method public buildName(prefix String) : String renamed to public getWriteIndexAlias() : String in class org.graylog2.indexer.MongoIndexSet | From | To | |
Rename Method public getAllGraylogDeflectorIndices() : Map<String,Set<String>> renamed to public getAllDeflectorAliases() : Map<String,Set<String>> in class org.graylog2.indexer.MongoIndexSet | From | To | |
Rename Method public isGraylogIndex(indexName String) : boolean renamed to public isManagedIndex(index String) : boolean in class org.graylog2.indexer.MongoIndexSet | From | To | |
Rename Method public testDontPerformRotationIfClusterIsDown() : void renamed to public testDoNotPerformRotationIfClusterIsDown() : void in class org.graylog2.periodical.IndexRotationThreadTest | From | To | |
Change Parameter Type | 1 | ||
Change Parameter Type indexSet : LegacyDeflectorIndexSet to indexSetRegistry : IndexSetRegistry in method public StreamServiceImpl(mongoConnection MongoConnection, streamRuleService StreamRuleService, alertService AlertService, outputService OutputService, indexSetRegistry IndexSetRegistry, notificationService NotificationService) in class org.graylog2.streams.StreamServiceImpl | From | To | |
Rename Variable | 3 | ||
Rename Variable deflector : Deflector to mongoIndexSet : MongoIndexSet in method public testCleanupAliases() : void in class org.graylog2.indexer.MongoIndexSetTest | From | To | |
Rename Variable indices : Set<String> to indexSet : IndexSet in method public testGetOldestIndices() : void in class org.graylog2.indexer.IndexHelperTest | From | To | |
Rename Variable deflector : Deflector to mongoIndexSet : MongoIndexSet in method public getNewestTargetNumber() : void in class org.graylog2.indexer.MongoIndexSetTest | From | To | |
Change Return Type | 1 | ||
Change Return Type int to Optional<Integer> in method public extractIndexNumber(indexName String) : Optional<Integer> in class org.graylog2.indexer.MongoIndexSet | From | To | |
Move Attribute | 1 | ||
Move Attribute private indexSet : IndexSet from class org.graylog2.indexer.counts.CountsTest to private indexSet : IndexSet from class org.graylog2.indexer.IndexSet.IndexNameComparator | From | To | |
Rename Class | 2 | ||
Rename Class org.graylog2.indexer.Deflector renamed to org.graylog2.indexer.MongoIndexSet | From | To | |
Rename Class org.graylog2.indexer.DeflectorTest renamed to org.graylog2.indexer.MongoIndexSetTest | From | To | |
Parameterize Variable | 1 | ||
Parameterize Variable oldTarget : String to indexName : String in method private setIndexReadOnlyAndCalculateRange(indexName String) : void in class org.graylog2.indexer.MongoIndexSet | From | To | |
Rename Attribute | 4 | ||
Rename Attribute indexSets : Set<IndexSet> to indexSetRegistry : IndexSetRegistry in class org.graylog2.streams.StreamServiceImpl | From | To | |
Rename Attribute indexSet : IndexSet to indexSetRegistry : IndexSetRegistry in class org.graylog2.indexer.counts.CountsTest | From | To | |
Rename Attribute deflector : Deflector to mongoIndexSet : MongoIndexSet in class org.graylog2.indexer.MongoIndexSetTest | From | To | |
Rename Attribute setIndexReadOnlyAndCalculateRangeJobFactory : SetIndexReadOnlyAndCalculateRangeJob.Factory to jobFactory : SetIndexReadOnlyAndCalculateRangeJob.Factory in class org.graylog2.indexer.MongoIndexSet | From | To | |
Change Variable Type | 3 | ||
Change Variable Type deflector : Deflector to mongoIndexSet : MongoIndexSet in method public testCleanupAliases() : void in class org.graylog2.indexer.MongoIndexSetTest | From | To | |
Change Variable Type indices : Set<String> to indexSet : IndexSet in method public testGetOldestIndices() : void in class org.graylog2.indexer.IndexHelperTest | From | To | |
Change Variable Type deflector : Deflector to mongoIndexSet : MongoIndexSet in method public getNewestTargetNumber() : void in class org.graylog2.indexer.MongoIndexSetTest | From | To | |
Extract Method | 1 | ||
Extract Method private setIndexReadOnlyAndCalculateRange(indexName String) : void extracted from public cycle() : void in class org.graylog2.indexer.MongoIndexSet | From | To | |
Change Attribute Type | 4 | ||
Change Attribute Type deflector : Deflector to mongoIndexSet : MongoIndexSet in class org.graylog2.indexer.MongoIndexSetTest | From | To | |
Change Attribute Type indexSet : IndexSet to indexSetRegistry : IndexSetRegistry in class org.graylog2.indexer.counts.CountsTest | From | To | |
Change Attribute Type activityWriter : SystemMessageActivityWriter to activityWriter : ActivityWriter in class org.graylog2.indexer.MongoIndexSetTest | From | To | |
Change Attribute Type indexSets : Set<IndexSet> to indexSetRegistry : IndexSetRegistry in class org.graylog2.streams.StreamServiceImpl | From | To | |
Rename Parameter | 7 | ||
Rename Parameter indexName : String to index : String in method public isDeflectorAlias(index String) : boolean in class org.graylog2.indexer.MongoIndexSet | From | To | |
Rename Parameter newIndex : String to indexName : String in method private pointTo(indexName String) : void in class org.graylog2.indexer.MongoIndexSet | From | To | |
Rename Parameter indexSet : LegacyDeflectorIndexSet to indexSetRegistry : IndexSetRegistry in method public StreamServiceImpl(mongoConnection MongoConnection, streamRuleService StreamRuleService, alertService AlertService, outputService OutputService, indexSetRegistry IndexSetRegistry, notificationService NotificationService) in class org.graylog2.streams.StreamServiceImpl | From | To | |
Rename Parameter indexName : String to index : String in method public isManagedIndex(index String) : boolean in class org.graylog2.indexer.MongoIndexSet | From | To | |
Rename Parameter newIndex : String to newIndexName : String in method public pointTo(newIndexName String, oldIndexName String) : void in class org.graylog2.indexer.MongoIndexSet | From | To | |
Rename Parameter newTarget : String to indexName : String in method private addDeflectorIndexRange(indexName String) : void in class org.graylog2.indexer.MongoIndexSet | From | To | |
Rename Parameter oldIndex : String to oldIndexName : String in method public pointTo(newIndexName String, oldIndexName String) : void in class org.graylog2.indexer.MongoIndexSet | From | To |