044ba40650a67262fad4936914d3c31602dc552d
Files Diff
- Added: 0
- Removed: 0
- Renamed: 0
- Modified: 6
Refactorings reported:
| Refactoring Name | Occurences | ||
|---|---|---|---|
| Change Parameter Type | 2 | ||
| Change Parameter Type workers : List<String> to workers : Set<String> in method public schedule(unassignedFunctionInstances List<Instance>, currentAssignments List<Assignment>, workers Set<String>) : List<Assignment> in class org.apache.pulsar.functions.worker.scheduler.IScheduler | From | To | |
| Change Parameter Type workers : List<String> to workers : Set<String> in method public schedule(unassignedFunctionInstances List<Instance>, currentAssignments List<Assignment>, workers Set<String>) : List<Assignment> in class org.apache.pulsar.functions.worker.scheduler.RoundRobinScheduler | From | To | |
| Move Method | 1 | ||
| Move Method private checkHeartBeatFunction(funInstance Instance) : String from class org.apache.pulsar.functions.worker.scheduler.RoundRobinScheduler to public checkHeartBeatFunction(funInstance Instance) : String from class org.apache.pulsar.functions.worker.SchedulerManager | From | To | |
| Rename Variable | 1 | ||
| Rename Variable needsAssignment : List<Function.Instance> to unassignedInstances : Pair<List<Function.Instance>,List<Assignment>> in method public invokeScheduler() : void in class org.apache.pulsar.functions.worker.SchedulerManager | From | To | |
| Change Return Type | 1 | ||
| Change Return Type List<Function.Instance> to Pair<List<Function.Instance>,List<Assignment>> in method private getUnassignedFunctionInstances(currentAssignments Map<String,Map<String,Assignment>>, functionInstances Map<String,Function.Instance>) : Pair<List<Function.Instance>,List<Assignment>> in class org.apache.pulsar.functions.worker.SchedulerManager | From | To | |
| Move Attribute | 2 | ||
| Move Attribute public HEARTBEAT_TENANT : String from class org.apache.pulsar.functions.worker.scheduler.RoundRobinScheduler to public HEARTBEAT_TENANT : String from class org.apache.pulsar.functions.worker.SchedulerManager | From | To | |
| Move Attribute public HEARTBEAT_NAMESPACE : String from class org.apache.pulsar.functions.worker.scheduler.RoundRobinScheduler to public HEARTBEAT_NAMESPACE : String from class org.apache.pulsar.functions.worker.SchedulerManager | From | To | |
| Change Variable Type | 2 | ||
| Change Variable Type currentMembership : List<String> to currentMembership : Set<String> in method public invokeScheduler() : void in class org.apache.pulsar.functions.worker.SchedulerManager | From | To | |
| Change Variable Type needsAssignment : List<Function.Instance> to unassignedInstances : Pair<List<Function.Instance>,List<Assignment>> in method public invokeScheduler() : void in class org.apache.pulsar.functions.worker.SchedulerManager | From | To |