e3ffa5cdc4891265fcb1118d768033602cd98750
Files Diff
- Added: 0
- Removed: 0
- Renamed: 0
- Modified: 11
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Change Variable Type | 4 | ||
Change Variable Type reserved : MemoryPool to reserved : Optional<MemoryPool> in method public testOutOfMemoryKiller() : void in class com.facebook.presto.memory.TestMemoryManager | From | To | |
Change Variable Type reserved : MemoryPool to reserved : Optional<MemoryPool> in method private testNoLeak(query String) : void in class com.facebook.presto.memory.TestMemoryManager | From | To | |
Change Variable Type reserved : MemoryPool to reserved : Optional<MemoryPool> in method public testClusterPools() : void in class com.facebook.presto.memory.TestMemoryManager | From | To | |
Extract Variable | 1 | ||
Extract Variable assignmentsRequest : MemoryPoolAssignmentsRequest in method public process(runningQueries Iterable<QueryExecution>, allQueryInfoSupplier Supplier<List<BasicQueryInfo>>) : void from class com.facebook.presto.memory.ClusterMemoryManager | From | To | |
Extract Method | 3 | ||
Extract Method private waitForQueryToBeKilled(queryRunner DistributedQueryRunner) : void extracted from public testOutOfMemoryKiller() : void in class com.facebook.presto.memory.TestMemoryManager | From | To | |
Extract Method private createClusterMemoryPools(systemPoolEnabled boolean, reservedPoolEnabled boolean) : Map<MemoryPoolId,ClusterMemoryPool> extracted from public ClusterMemoryManager(httpClient HttpClient, nodeManager InternalNodeManager, locationFactory LocationFactory, exporter MBeanExporter, memoryInfoCodec JsonCodec<MemoryInfo>, assignmentsRequestJsonCodec JsonCodec<MemoryPoolAssignmentsRequest>, queryIdGenerator QueryIdGenerator, lowMemoryKiller LowMemoryKiller, serverConfig ServerConfig, config MemoryManagerConfig, nodeMemoryConfig NodeMemoryConfig, schedulerConfig NodeSchedulerConfig) in class com.facebook.presto.memory.ClusterMemoryManager | From | To | |
Extract Method private toSuccessfulResponse(memoryInfo MemoryPoolInfo) : Response extracted from public getMemoryInfo(poolId String) : Response in class com.facebook.presto.memory.MemoryResource | From | To |