fdfb38a74d465fab36279188055f66c44fa96b37
Files Diff
- Added: 3
- Removed: 2
- Renamed: 0
- Modified: 18
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Rename Method | 1 | ||
Rename Method public timestampStatsOfIndex(index String) : TimestampStats renamed to public indexRangeStatsOfIndex(index String) : IndexRangeStats in class org.graylog2.indexer.indices.Indices | From | To | |
Move Method | 7 | ||
Move Method public determineAffectedIndicesWithRangesDoesNotIncludesDeflectorTargetIfMissing() : void from class org.graylog2.indexer.IndexHelperTest to public determineAffectedIndicesWithRangesDoesNotIncludesDeflectorTargetIfMissing() : void from class org.graylog2.indexer.searches.SearchesTest | From | To | |
Move Method public determineAffectedIndicesWithRangesIncludesDeflectorTarget() : void from class org.graylog2.indexer.IndexHelperTest to public determineAffectedIndicesWithRangesIncludesDeflectorTarget() : void from class org.graylog2.indexer.searches.SearchesTest | From | To | |
Move Method public determineAffectedIndicesIncludesDeflectorTarget() : void from class org.graylog2.indexer.IndexHelperTest to public determineAffectedIndicesIncludesDeflectorTarget() : void from class org.graylog2.indexer.searches.SearchesTest | From | To | |
Move Method public getTimestampRangeFilterReturnsRangeQueryWithGivenTimeRange() : void from class org.graylog2.indexer.IndexHelperTest to public getTimestampRangeFilterReturnsRangeQueryWithGivenTimeRange() : void from class org.graylog2.indexer.searches.SearchesTest | From | To | |
Move Method public getTimestampRangeFilterReturnsNullIfTimeRangeIsNull() : void from class org.graylog2.indexer.IndexHelperTest to public getTimestampRangeFilterReturnsNullIfTimeRangeIsNull() : void from class org.graylog2.indexer.searches.SearchesTest | From | To | |
Move Method public determineAffectedIndicesFilterIndexPrefix() : void from class org.graylog2.indexer.IndexHelperTest to public determineAffectedIndicesFilterIndexPrefix() : void from class org.graylog2.indexer.searches.SearchesTest | From | To | |
Move Method public determineAffectedIndicesDoesNotIncludesDeflectorTargetIfMissing() : void from class org.graylog2.indexer.IndexHelperTest to public determineAffectedIndicesDoesNotIncludesDeflectorTargetIfMissing() : void from class org.graylog2.indexer.searches.SearchesTest | From | To | |
Rename Variable | 3 | ||
Rename Variable indices : String[] to managedIndicesNames : String[] in method public execute() : void in class org.graylog2.indexer.ranges.RebuildIndexRangesJob | From | To | |
Rename Variable index : String to indexSet : IndexSet in method public execute() : void in class org.graylog2.indexer.ranges.RebuildIndexRangesJob | From | To | |
Rename Variable timestampStats : TimestampStats to indexRangeStats : IndexRangeStats in method public testCreate() : void in class org.graylog2.indexer.searches.IndexRangeStatsTest | From | To | |
Change Return Type | 6 | ||
Change Return Type TimestampStats to IndexRangeStats in method public indexRangeStatsOfIndex(index String) : IndexRangeStats in class org.graylog2.indexer.indices.Indices | From | To | |
Change Return Type void to WriteResult<MongoIndexRange,ObjectId> in method public save(indexRange IndexRange) : WriteResult<MongoIndexRange,ObjectId> in class org.graylog2.indexer.ranges.MongoIndexRangeService | From | To | |
Change Return Type TimestampStats to IndexRangeStats in method public create(min DateTime, max DateTime) : IndexRangeStats in class org.graylog2.indexer.searches.IndexRangeStats | From | To | |
Change Return Type void to WriteResult<MongoIndexRange,ObjectId> in method public save(indexRange IndexRange) : WriteResult<MongoIndexRange,ObjectId> in class org.graylog2.indexer.ranges.EsIndexRangeService | From | To | |
Change Return Type void to WriteResult<MongoIndexRange,ObjectId> in method public save(indexRange IndexRange) : WriteResult<MongoIndexRange,ObjectId> in class org.graylog2.indexer.ranges.LegacyMongoIndexRangeService | From | To | |
Change Return Type void to WriteResult<MongoIndexRange,ObjectId> in method public save(indexRange IndexRange) : WriteResult<MongoIndexRange,ObjectId> in class org.graylog2.indexer.ranges.IndexRangeService | From | To | |
Rename Class | 2 | ||
Rename Class org.graylog2.indexer.searches.TimestampStatsTest renamed to org.graylog2.indexer.searches.IndexRangeStatsTest | From | To | |
Rename Class org.graylog2.indexer.searches.TimestampStats renamed to org.graylog2.indexer.searches.IndexRangeStats | From | To | |
Change Variable Type | 5 | ||
Change Variable Type index : String to indexSet : IndexSet in method public execute() : void in class org.graylog2.indexer.ranges.RebuildIndexRangesJob | From | To | |
Change Variable Type timestampStats : TimestampStats to indexRangeStats : IndexRangeStats in method public testCreate() : void in class org.graylog2.indexer.searches.IndexRangeStatsTest | From | To | |
Change Variable Type stats : TimestampStats to stats : IndexRangeStats in method public testTimestampStatsOfIndexWithEmptyIndex() : void in class org.graylog2.indexer.indices.IndicesTest | From | To | |
Change Variable Type stats : TimestampStats to stats : IndexRangeStats in method public testTimestampStatsOfIndex() : void in class org.graylog2.indexer.indices.IndicesTest | From | To | |
Change Variable Type stats : TimestampStats to stats : IndexRangeStats in method public calculateRange(index String) : IndexRange in class org.graylog2.indexer.ranges.MongoIndexRangeService | From | To | |
Extract Variable | 1 | ||
Extract Variable request : SearchRequest in method public indexRangeStatsOfIndex(index String) : IndexRangeStats from class org.graylog2.indexer.indices.Indices | From | To | |
Change Attribute Type | 1 | ||
Change Attribute Type EMPTY : TimestampStats to EMPTY : IndexRangeStats in class org.graylog2.indexer.searches.IndexRangeStats | From | To | |
Extract Method | 4 | ||
Extract Method public create(indexName String, begin DateTime, end DateTime, calculatedAt DateTime, calculationDuration int, streamIds List<String>) : MongoIndexRange extracted from public create(indexRange IndexRange) : MongoIndexRange in class org.graylog2.indexer.ranges.MongoIndexRange | From | To | |
Extract Method public create(id ObjectId, indexName String, begin DateTime, end DateTime, calculatedAt DateTime, calculationDuration int, streamIds List<String>) : MongoIndexRange extracted from public create(id ObjectId, indexName String, beginMillis long, endMillis long, calculatedAtMillis long, calculationDuration int) : MongoIndexRange in class org.graylog2.indexer.ranges.MongoIndexRange | From | To | |
Extract Method public create(id ObjectId, indexName String, begin DateTime, end DateTime, calculatedAt DateTime, calculationDuration int, streamIds List<String>) : MongoIndexRange extracted from public create(id ObjectId, indexName String, begin DateTime, end DateTime, calculatedAt DateTime, calculationDuration int) : MongoIndexRange in class org.graylog2.indexer.ranges.MongoIndexRange | From | To | |
Extract Method public create(indexName String, begin DateTime, end DateTime, calculatedAt DateTime, calculationDuration int, streamIds List<String>) : EsIndexRange extracted from public create(indexName String, begin DateTime, end DateTime, calculatedAt DateTime, calculationDuration int) : EsIndexRange in class org.graylog2.indexer.ranges.EsIndexRange | From | To |