8347ebbb53c39c7149cdfddced7c6bad27881622
Files Diff
- Added: 3
- Removed: 2
- Renamed: 0
- Modified: 8
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Extract Subclass | 1 | ||
Extract Subclass io.atomix.protocols.raft.RaftService from class io.atomix.protocols.raft.RaftStateMachine | From | To | |
Change Parameter Type | 3 | ||
Change Parameter Type executor : RaftServerStateMachineExecutor to context : RaftServerStateMachineContext in method public RaftSessionContext(id SessionId, member MemberId, name String, type String, readConsistency ReadConsistency, timeout long, context RaftServerStateMachineContext, server RaftServerContext) in class io.atomix.protocols.raft.session.impl.RaftSessionContext | From | To | |
Change Parameter Type executor : StateMachineExecutor to context : StateMachineContext in method public init(context StateMachineContext) : void in class io.atomix.protocols.raft.RaftService | From | To | |
Change Parameter Type executor : StateMachineExecutor to executor : RaftOperationExecutor in method protected configure(executor RaftOperationExecutor) : void in class io.atomix.protocols.raft.RaftTest.TestStateMachine | From | To | |
Push Down Attribute | 1 | ||
Push Down Attribute private context : StateMachineContext from class io.atomix.protocols.raft.RaftStateMachine to private context : StateMachineContext from class io.atomix.protocols.raft.RaftService | From | To | |
Rename Class | 2 | ||
Rename Class io.atomix.protocols.raft.StateMachineExecutor renamed to io.atomix.protocols.raft.RaftOperationExecutor | From | To | |
Rename Class io.atomix.protocols.raft.impl.RaftServerStateMachineExecutor renamed to io.atomix.protocols.raft.impl.DefaultRaftOperationExecutor | From | To | |
Move And Rename Class | 1 | ||
Move And Rename Class io.atomix.protocols.raft.impl.RaftServerStateMachineExecutor.ServerScheduledTask moved and renamed to io.atomix.protocols.raft.impl.DefaultRaftOperationExecutor.ScheduledTask | From | To | |
Change Variable Type | 3 | ||
Change Variable Type stateMachineExecutor : RaftServerStateMachineExecutor to stateMachineExecutor : RaftServerStateMachineContext in method private applyOpenSession(entry Indexed<OpenSessionEntry>) : CompletableFuture<Long> in class io.atomix.protocols.raft.impl.RaftServerStateMachineManager | From | To | |
Change Variable Type stateMachineExecutor : RaftServerStateMachineExecutor to stateMachineExecutor : RaftServerStateMachineContext in method private applyCloseSession(entry Indexed<CloseSessionEntry>) : CompletableFuture<Void> in class io.atomix.protocols.raft.impl.RaftServerStateMachineManager | From | To | |
Change Variable Type stateMachineExecutor : RaftServerStateMachineExecutor to stateMachineExecutor : RaftServerStateMachineContext in method private compactLog() : void in class io.atomix.protocols.raft.impl.RaftServerStateMachineManager | From | To | |
Extract Method | 3 | ||
Extract Method private checkOperation(type OperationType, message String) : void extracted from public schedule(delay Duration, callback Runnable) : Scheduled in class io.atomix.protocols.raft.impl.DefaultRaftOperationExecutor | From | To | |
Extract Method private checkOperation(type OperationType, message String) : void extracted from public schedule(initialDelay Duration, interval Duration, callback Runnable) : Scheduled in class io.atomix.protocols.raft.impl.DefaultRaftOperationExecutor | From | To | |
Extract Method private checkOperation(type OperationType, message String) : void extracted from public execute(callback Runnable) : void in class io.atomix.protocols.raft.impl.DefaultRaftOperationExecutor | From | To | |
Rename Method | 4 | ||
Rename Method private complete(timestamp long) : boolean renamed to private isRunnable(timestamp long) : boolean in class io.atomix.protocols.raft.impl.DefaultRaftOperationExecutor.ScheduledTask | From | To | |
Rename Method public getStateMachineExecutor() : RaftServerStateMachineExecutor renamed to public getStateMachineContext() : RaftServerStateMachineContext in class io.atomix.protocols.raft.session.impl.RaftSessionContext | From | To | |
Rename Method private commit() : void renamed to private runTasks() : void in class io.atomix.protocols.raft.impl.DefaultRaftOperationExecutor | From | To | |
Rename Method public getOperationType() : OperationType renamed to public currentOperation() : OperationType in class io.atomix.protocols.raft.impl.RaftServerStateMachineContext | From | To | |
Push Down Method | 11 | ||
Push Down Method protected getSessions() : RaftSessions from class io.atomix.protocols.raft.RaftStateMachine to protected getSessions() : RaftSessions from class io.atomix.protocols.raft.RaftService | From | To | |
Push Down Method public init(executor StateMachineExecutor) : void from class io.atomix.protocols.raft.RaftStateMachine to public init(context StateMachineContext) : void from class io.atomix.protocols.raft.RaftService | From | To | |
Push Down Method protected getScheduler() : Scheduler from class io.atomix.protocols.raft.RaftStateMachine to protected getScheduler() : Scheduler from class io.atomix.protocols.raft.RaftService | From | To | |
Push Down Method protected getStateMachineName() : String from class io.atomix.protocols.raft.RaftStateMachine to protected getStateMachineName() : String from class io.atomix.protocols.raft.RaftService | From | To | |
Push Down Method public onExpire(session RaftSession) : void from class io.atomix.protocols.raft.RaftStateMachine to public onExpire(session RaftSession) : void from class io.atomix.protocols.raft.RaftService | From | To | |
Push Down Method protected getCurrentIndex() : long from class io.atomix.protocols.raft.RaftStateMachine to protected getCurrentIndex() : long from class io.atomix.protocols.raft.RaftService | From | To | |
Push Down Method public onClose(session RaftSession) : void from class io.atomix.protocols.raft.RaftStateMachine to public onClose(session RaftSession) : void from class io.atomix.protocols.raft.RaftService | From | To | |
Push Down Method public onOpen(session RaftSession) : void from class io.atomix.protocols.raft.RaftStateMachine to public onOpen(session RaftSession) : void from class io.atomix.protocols.raft.RaftService | From | To | |
Push Down Method protected getStateMachineId() : StateMachineId from class io.atomix.protocols.raft.RaftStateMachine to protected getStateMachineId() : StateMachineId from class io.atomix.protocols.raft.RaftService | From | To | |
Push Down Method protected getLogicalClock() : LogicalClock from class io.atomix.protocols.raft.RaftStateMachine to protected getLogicalClock() : LogicalClock from class io.atomix.protocols.raft.RaftService | From | To | |
Push Down Method protected getWallClock() : WallClock from class io.atomix.protocols.raft.RaftStateMachine to protected getWallClock() : WallClock from class io.atomix.protocols.raft.RaftService | From | To | |
Change Return Type | 3 | ||
Change Return Type RaftServerStateMachineSessions to RaftSessions in method public sessions() : RaftSessions in class io.atomix.protocols.raft.impl.RaftServerStateMachineContext | From | To | |
Change Return Type RaftServerStateMachineExecutor to RaftServerStateMachineContext in method public getStateMachineContext() : RaftServerStateMachineContext in class io.atomix.protocols.raft.session.impl.RaftSessionContext | From | To | |
Change Return Type RaftServerStateMachineContext to StateMachineContext in method public getContext() : StateMachineContext in class io.atomix.protocols.raft.impl.DefaultRaftOperationExecutor | From | To | |
Extract Superclass | 1 | ||
Extract Superclass io.atomix.protocols.raft.RaftService from classes [io.atomix.protocols.raft.RaftTest.TestStateMachine, io.atomix.protocols.raft.RaftPerformanceTest.PerformanceStateMachine] | From | To | |
Rename Attribute | 3 | ||
Rename Attribute executor : RaftServerStateMachineExecutor to context : RaftServerStateMachineContext in class io.atomix.protocols.raft.session.impl.RaftSessionContext | From | To | |
Rename Attribute id : StateMachineId to stateMachineId : StateMachineId in class io.atomix.protocols.raft.impl.RaftServerStateMachineContext | From | To | |
Rename Attribute index : long to currentIndex : long in class io.atomix.protocols.raft.impl.RaftServerStateMachineContext | From | To | |
Change Attribute Type | 5 | ||
Change Attribute Type complete : List<ServerScheduledTask> to complete : List<ScheduledTask> in class io.atomix.protocols.raft.impl.DefaultRaftOperationExecutor | From | To | |
Change Attribute Type stateMachines : Map<String,RaftServerStateMachineExecutor> to stateMachines : Map<String,RaftServerStateMachineContext> in class io.atomix.protocols.raft.impl.RaftServerStateMachineManager | From | To | |
Change Attribute Type context : RaftServerStateMachineContext to context : StateMachineContext in class io.atomix.protocols.raft.impl.DefaultRaftOperationExecutor | From | To | |
Change Attribute Type scheduledTasks : List<ServerScheduledTask> to scheduledTasks : List<ScheduledTask> in class io.atomix.protocols.raft.impl.DefaultRaftOperationExecutor | From | To | |
Change Attribute Type executor : RaftServerStateMachineExecutor to context : RaftServerStateMachineContext in class io.atomix.protocols.raft.session.impl.RaftSessionContext | From | To | |
Rename Parameter | 2 | ||
Rename Parameter executor : StateMachineExecutor to context : StateMachineContext in method public init(context StateMachineContext) : void in class io.atomix.protocols.raft.RaftService | From | To | |
Rename Parameter executor : RaftServerStateMachineExecutor to context : RaftServerStateMachineContext in method public RaftSessionContext(id SessionId, member MemberId, name String, type String, readConsistency ReadConsistency, timeout long, context RaftServerStateMachineContext, server RaftServerContext) in class io.atomix.protocols.raft.session.impl.RaftSessionContext | From | To |