b6e7d1369690eaf50ce9ea7968f91a72ecb74de0
Files Diff
- Added: 0
- Removed: 0
- Renamed: 0
- Modified: 26
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Change Parameter Type | 1 | ||
Change Parameter Type rleVector : RLESparseResourceAllocation to resourceCalculator : ResourceCalculator in method public PeriodicRLESparseResourceAllocation(resourceCalculator ResourceCalculator) in class org.apache.hadoop.yarn.server.resourcemanager.reservation.PeriodicRLESparseResourceAllocation | From | To | |
Rename Variable | 4 | ||
Rename Variable reservations : SortedMap<ReservationInterval,Set<InMemoryReservationAllocation>> to res : SortedMap<ReservationInterval,Set<InMemoryReservationAllocation>> in method public getReservations(reservationID ReservationId, interval ReservationInterval, user String) : Set<ReservationAllocation> in class org.apache.hadoop.yarn.server.resourcemanager.reservation.InMemoryPlan | From | To | |
Rename Variable reservationEntries : Set<InMemoryReservationAllocation> to res : Set<InMemoryReservationAllocation> in method public getAllReservations() : Set<ReservationAllocation> in class org.apache.hadoop.yarn.server.resourcemanager.reservation.InMemoryPlan | From | To | |
Rename Variable reservationEntries : Set<InMemoryReservationAllocation> to resEntries : Set<InMemoryReservationAllocation> in method public getReservations(reservationID ReservationId, interval ReservationInterval, user String) : Set<ReservationAllocation> in class org.apache.hadoop.yarn.server.resourcemanager.reservation.InMemoryPlan | From | To | |
Rename Variable res : InMemoryReservationAllocation to reservation : InMemoryReservationAllocation in method public getReservations(reservationID ReservationId, interval ReservationInterval, user String) : Set<ReservationAllocation> in class org.apache.hadoop.yarn.server.resourcemanager.reservation.InMemoryPlan | From | To | |
Extract Method | 5 | ||
Extract Method private gcUserRLEResourceAllocation(user String, period long) : void extracted from private decrementAllocation(reservation ReservationAllocation) : void in class org.apache.hadoop.yarn.server.resourcemanager.reservation.InMemoryPlan | From | To | |
Extract Method public createSimpleReservationDefinition(arrival long, deadline long, duration long, parallelism int, recurrenceExpression String) : ReservationDefinition extracted from public createSimpleReservationDefinition(arrival long, deadline long, duration long, parallelism int) : ReservationDefinition in class org.apache.hadoop.yarn.server.resourcemanager.reservation.ReservationSystemTestUtil | From | To | |
Extract Method private getUserRLEResourceAllocation(user String, period long) : RLESparseResourceAllocation extracted from private incrementAllocation(reservation ReservationAllocation) : void in class org.apache.hadoop.yarn.server.resourcemanager.reservation.InMemoryPlan | From | To | |
Extract Method private createReservationAllocation(reservationID ReservationId, start int, alloc int[], isStep boolean, recurrenceExp String) : ReservationAllocation extracted from private createReservationAllocation(reservationID ReservationId, start int, alloc int[], isStep boolean) : ReservationAllocation in class org.apache.hadoop.yarn.server.resourcemanager.reservation.TestInMemoryPlan | From | To | |
Extract Method public generateAllocation(startTime long, step long, alloc int[], recurrenceExpression String) : Map<ReservationInterval,Resource> extracted from public generateAllocation(startTime long, step long, alloc int[]) : Map<ReservationInterval,Resource> in class org.apache.hadoop.yarn.server.resourcemanager.reservation.ReservationSystemTestUtil | From | To | |
Rename Parameter | 1 | ||
Rename Parameter rleVector : RLESparseResourceAllocation to resourceCalculator : ResourceCalculator in method public PeriodicRLESparseResourceAllocation(resourceCalculator ResourceCalculator) in class org.apache.hadoop.yarn.server.resourcemanager.reservation.PeriodicRLESparseResourceAllocation | From | To |