Toggle navigation
Home
io.atomix.utils.net.Address to io.atomix.cluster.Node
No. of Instances - 27
No. of Commits - 2
No. of Projects - {'atomix'}
Hierarchy/Composition: Composition
Primitive Info: -
NameSpace: Internal -> Internal
Mapping:
Add or Remove Method invocation
localAddress
to
localNode.address()
locations
to
nodes.values()
locations
to
nodes.values()
memberIds.stream().map(memberId -> Address.from("localhost",BASE_PORT + memberId))
to
memberIds.stream().map(memberId -> Node.builder().withId(String.valueOf(id)).withAddress(Address.from("localhost",BASE_PORT + memberId)).build())
new BootstrapDiscoveryProvider.Config().setLocations(bootstrap)
to
new BootstrapDiscoveryProvider.Config().setNodes(bootstrap)
new Config().setLocations(bootstrapLocations)
to
new Config().setNodes(bootstrapNodes)
IntStream.range(1,nodes + 1).mapToObj(id -> Address.from("localhost",id))
to
IntStream.range(1,nodes + 1).mapToObj(id -> Node.builder().withId(String.valueOf(id)).withAddress(Address.from("localhost",id)).build())
ImmutableSet.copyOf(config.getLocations())
to
ImmutableSet.copyOf(config.getNodes())
this.bootstrapLocations.stream()
to
this.bootstrapNodes.stream().filter(node -> !node.address().equals(localNode.address()) && !nodes.containsKey(node.address()))
location.equals(localNode.address())
to
nodes.containsKey(node.address())
new Config().setLocations(bootstrapLocations)
to
new Config().setNodes(bootstrapNodes)
IntStream.range(1,nodes + 1).mapToObj(id -> Address.from("localhost",id))
to
IntStream.range(1,nodes + 1).mapToObj(id -> Node.builder().withId(String.valueOf(id)).withAddress(Address.from("localhost",id)).build())
Rename Variable
localAddress
to
localNode
localAddress
to
localNode
address
to
node
address
to
node
address
to
localNode
getLocations
to
getNodes
getLocations
to
getNodes
address
to
localNode
address
to
localNode
address
to
localNode
address
to
localNode
address
to
localNode
address
to
localNode
address
to
localNode
address
to
localNode
address
to
localNode
address
to
node
address
to
localNode
locations
to
nodes
locations
to
nodes
getLocations
to
getNodes
bootstrapLocations
to
bootstrapNodes
bootstrapLocations
to
bootstrapNodes
buildBootstrapLocations
to
buildBootstrapNodes
bootstrapLocations
to
bootstrapNodes
bootstrapLocations
to
bootstrapNodes
bootstrapLocations
to
bootstrapNodes
bootstrapLocations
to
bootstrapNodes
locations
to
nodes
locations
to
nodes
locations
to
nodes
buildBootstrapLocations
to
buildBootstrapNodes
Cascading Type Change (Different)
MemberLocationEvent
to
NodeDiscoveryEvent
MemberLocationEvent.Type
to
NodeDiscoveryEvent.Type
MemberLocationEvent
to
NodeDiscoveryEvent
MemberLocationEvent.Type
to
NodeDiscoveryEvent.Type
MemberLocationEvent
to
NodeDiscoveryEvent
MemberLocationEvent.Type
to
NodeDiscoveryEvent.Type
MemberLocationEvent
to
NodeDiscoveryEvent
MemberLocationEvent.Type
to
NodeDiscoveryEvent.Type
MemberLocationEvent
to
NodeDiscoveryEvent
MemberLocationEvent.Type
to
NodeDiscoveryEvent.Type
MemberLocationEvent
to
NodeDiscoveryEvent
MemberLocationEvent.Type
to
NodeDiscoveryEvent.Type
Cascading Type Change (Similar)
Collection<Address>
to
Collection<Node>
Rename Method invocation
setLocations
to
setNodes