byte to io.atomix.cluster.NodeId
No. of Instances - 3
No. of Commits - 1
No. of Projects - {'atomix'}
Hierarchy/Composition: -
Primitive Info: -
NameSpace: Jdk -> Internal
Mapping:
- Add or Remove Method invocation
- elector2 to election2.run(node2)
- elector2.run(node2) to election2
- listener1.nextEvent().thenAccept(result -> { assertArrayEquals(node2,result.newLeadership().leader().id()); assertEquals(2,result.newLeadership().leader().term()); assertEquals(1,result.newLeadership().candidates().size()); assertArrayEquals(node2,result.newLeadership().candidates().get(0)); } ) to listener1.nextEvent().thenAccept(result -> { assertEquals(node2,result.newLeadership().leader().id()); assertEquals(2,result.newLeadership().leader().term()); assertEquals(1,result.newLeadership().candidates().size()); assertEquals(node2,result.newLeadership().candidates().get(0)); } )
- listener2.nextEvent().thenAccept(result -> { assertArrayEquals(node2,result.newLeadership().leader().id()); assertEquals(2,result.newLeadership().leader().term()); assertEquals(1,result.newLeadership().candidates().size()); assertArrayEquals(node2,result.newLeadership().candidates().get(0)); } ) to listener2.nextEvent().thenAccept(result -> { assertEquals(node2,result.newLeadership().leader().id()); assertEquals(2,result.newLeadership().leader().term()); assertEquals(1,result.newLeadership().candidates().size()); assertEquals(node2,result.newLeadership().candidates().get(0)); } )
- listener1.nextEvent().thenAccept(result -> { assertArrayEquals(node2,result.newLeadership().leader().id()); assertEquals(2,result.newLeadership().candidates().size()); assertArrayEquals(node1,result.newLeadership().candidates().get(0)); assertArrayEquals(node2,result.newLeadership().candidates().get(1)); } ) to listener1.nextEvent().thenAccept(result -> { assertEquals(node2,result.newLeadership().leader().id()); assertEquals(2,result.newLeadership().candidates().size()); assertEquals(node1,result.newLeadership().candidates().get(0)); assertEquals(node2,result.newLeadership().candidates().get(1)); } )
- listener2.nextEvent().thenAccept(result -> { assertArrayEquals(node2,result.newLeadership().leader().id()); assertEquals(2,result.newLeadership().candidates().size()); assertArrayEquals(node1,result.newLeadership().candidates().get(0)); assertArrayEquals(node2,result.newLeadership().candidates().get(1)); } ) to listener2.nextEvent().thenAccept(result -> { assertEquals(node2,result.newLeadership().leader().id()); assertEquals(2,result.newLeadership().candidates().size()); assertEquals(node1,result.newLeadership().candidates().get(0)); assertEquals(node2,result.newLeadership().candidates().get(1)); } )
- listener3.nextEvent().thenAccept(result -> { assertArrayEquals(node2,result.newLeadership().leader().id()); assertEquals(2,result.newLeadership().candidates().size()); assertArrayEquals(node1,result.newLeadership().candidates().get(0)); assertArrayEquals(node2,result.newLeadership().candidates().get(1)); } ) to listener3.nextEvent().thenAccept(result -> { assertEquals(node2,result.newLeadership().leader().id()); assertEquals(2,result.newLeadership().candidates().size()); assertEquals(node1,result.newLeadership().candidates().get(0)); assertEquals(node2,result.newLeadership().candidates().get(1)); } )
- listener.nextEvent().thenAccept(result -> { assertArrayEquals(node2,result.newLeadership().leader().id()); assertEquals(1,result.newLeadership().candidates().size()); assertArrayEquals(node2,result.newLeadership().candidates().get(0)); } ) to listener.nextEvent().thenAccept(result -> { assertEquals(node2,result.newLeadership().leader().id()); assertEquals(1,result.newLeadership().candidates().size()); assertEquals(node2,result.newLeadership().candidates().get(0)); } )
- elector1 to election1.getLeadership()
- elector1.getLeadership() to election1
- elector2 to election2.getLeadership()
- elector2.getLeadership() to election2
- listener1.nextEvent().thenAccept(result -> { assertArrayEquals(node3,result.newLeadership().candidates().get(2)); } ) to listener1.nextEvent().thenAccept(result -> { assertEquals(node3,result.newLeadership().candidates().get(2)); } )
- listener2.nextEvent().thenAccept(result -> { assertArrayEquals(node3,result.newLeadership().candidates().get(2)); } ) to listener2.nextEvent().thenAccept(result -> { assertEquals(node3,result.newLeadership().candidates().get(2)); } )
- listener3.nextEvent().thenAccept(result -> { assertArrayEquals(node3,result.newLeadership().candidates().get(2)); } ) to listener3.nextEvent().thenAccept(result -> { assertEquals(node3,result.newLeadership().candidates().get(2)); } )
- listener1.nextEvent().thenAccept(result -> { assertArrayEquals(node3,result.newLeadership().candidates().get(0)); } ) to listener1.nextEvent().thenAccept(result -> { assertEquals(node3,result.newLeadership().candidates().get(0)); } )
- listener2.nextEvent().thenAccept(result -> { assertArrayEquals(node3,result.newLeadership().candidates().get(0)); } ) to listener2.nextEvent().thenAccept(result -> { assertEquals(node3,result.newLeadership().candidates().get(0)); } )
- listener3.nextEvent().thenAccept(result -> { assertArrayEquals(node3,result.newLeadership().candidates().get(0)); } ) to listener3.nextEvent().thenAccept(result -> { assertEquals(node3,result.newLeadership().candidates().get(0)); } )
- elector1 to election1.run(node1)
- elector1.run(node1) to election1
- elector2 to election2.run(node2)
- elector2.run(node2) to election2
- listener1.nextEvent().thenAccept(result -> { assertArrayEquals(node2,result.newLeadership().leader().id()); assertEquals(2,result.newLeadership().candidates().size()); assertArrayEquals(node1,result.newLeadership().candidates().get(0)); assertArrayEquals(node2,result.newLeadership().candidates().get(1)); } ) to listener1.nextEvent().thenAccept(result -> { assertEquals(node2,result.newLeadership().leader().id()); assertEquals(2,result.newLeadership().candidates().size()); assertEquals(node1,result.newLeadership().candidates().get(0)); assertEquals(node2,result.newLeadership().candidates().get(1)); } )
- listener2.nextEvent().thenAccept(result -> { assertArrayEquals(node2,result.newLeadership().leader().id()); assertEquals(2,result.newLeadership().candidates().size()); assertArrayEquals(node1,result.newLeadership().candidates().get(0)); assertArrayEquals(node2,result.newLeadership().candidates().get(1)); } ) to listener2.nextEvent().thenAccept(result -> { assertEquals(node2,result.newLeadership().leader().id()); assertEquals(2,result.newLeadership().candidates().size()); assertEquals(node1,result.newLeadership().candidates().get(0)); assertEquals(node2,result.newLeadership().candidates().get(1)); } )
- listener3.nextEvent().thenAccept(result -> { assertArrayEquals(node2,result.newLeadership().leader().id()); assertEquals(2,result.newLeadership().candidates().size()); assertArrayEquals(node1,result.newLeadership().candidates().get(0)); assertArrayEquals(node2,result.newLeadership().candidates().get(1)); } ) to listener3.nextEvent().thenAccept(result -> { assertEquals(node2,result.newLeadership().leader().id()); assertEquals(2,result.newLeadership().candidates().size()); assertEquals(node1,result.newLeadership().candidates().get(0)); assertEquals(node2,result.newLeadership().candidates().get(1)); } )
- listener.nextEvent().thenAccept(result -> { assertArrayEquals(node1,result.newLeadership().leader().id()); assertEquals(1,result.newLeadership().candidates().size()); assertArrayEquals(node1,result.newLeadership().candidates().get(0)); } ) to listener.nextEvent().thenAccept(result -> { assertEquals(node1,result.newLeadership().leader().id()); assertEquals(1,result.newLeadership().candidates().size()); assertEquals(node1,result.newLeadership().candidates().get(0)); } )
- elector1 to election1.getLeadership()
- elector1.getLeadership() to election1
- elector2 to election2.getLeadership()
- elector2.getLeadership() to election2
- Rename Method invocation