Toggle navigation
Home
net.kuujo.copycat.raft.protocol.ReplicaInfo to net.kuujo.copycat.raft.RaftMember
No. of Instances - 15
No. of Commits - 1
No. of Projects - {'atomix'}
Hierarchy/Composition: -
Primitive Info: -
NameSpace: Internal -> Internal
Mapping:
Add or Remove Method invocation
member.getUri()
to
member.uri()
Assert.isNotNull(uri,"uri")
to
uri
member.getUri()
to
member.uri()
synchronizing.remove(member.getUri())
to
synchronizing.remove(member.uri())
synchronizing.add(member.getUri())
to
synchronizing.add(member.uri())
Math.max(member.getIndex() != null ? member.getIndex() + 1 : context.log().firstIndex(),context.log().lastIndex())
to
Math.max(member.index() != null ? member.index() + 1 : context.log().firstIndex(),context.log().lastIndex())
SyncRequest.builder().withUri(member.getUri()).withLeader(context.getLeader()).withTerm(context.getTerm()).withLogIndex(member.getIndex()).withFirstIndex(firstIndex != null && firstIndex.equals(context.log().firstIndex())).withMembers(context.getMemberInfo()).withEntries(entries)
to
SyncRequest.builder().withUri(member.uri()).withLeader(context.getLeader()).withTerm(context.getTerm()).withLogIndex(member.index()).withFirstIndex(firstIndex != null && firstIndex.equals(context.log().firstIndex())).withMembers(context.getMembers()).withEntries(entries)
context.setMemberInfo(response.members())
to
context.updateMembers(response.members())
LOGGER.warn("{} - Received error response from {}",context.getLocalMember(),member.getUri())
to
LOGGER.warn("{} - Received error response from {}",context.getLocalMember().uri(),member.uri())
LOGGER.warn("{} - Sync to {} failed: {}",context.getLocalMember(),member,error.getMessage())
to
LOGGER.warn("{} - Sync to {} failed: {}",context.getLocalMember().uri(),member,error.getMessage())
member.getUri()
to
member.uri()
member.getUri()
to
member.uri()
Rename Variable
getMemberInfo
to
getMember
record
to
m
record
to
m
record
to
m
Cascading Type Change (Similar)
ReplicaInfo
to
RaftMember
ReplicaInfo
to
RaftMember