@Test public void testIsTargetNode() { RemoveNodeTask task = new RemoveNodeTask( new WaitableGroupConfigChangeTaskContext(), NodeId.of("D") ); Assert.assertTrue(task.isTargetNode(NodeId.of("D"))); Assert.assertFalse(task.isTargetNode(NodeId.of("E"))); }
@Override public boolean isTargetNode(NodeId nodeId) { return this.nodeId.equals(nodeId); }
RemoveNodeTask extends AbstractGroupConfigChangeTask { @Override public boolean isTargetNode(NodeId nodeId) { return this.nodeId.equals(nodeId); } }
RemoveNodeTask extends AbstractGroupConfigChangeTask { @Override public boolean isTargetNode(NodeId nodeId) { return this.nodeId.equals(nodeId); } RemoveNodeTask(GroupConfigChangeTaskContext context, NodeId nodeId); }
RemoveNodeTask extends AbstractGroupConfigChangeTask { @Override public boolean isTargetNode(NodeId nodeId) { return this.nodeId.equals(nodeId); } RemoveNodeTask(GroupConfigChangeTaskContext context, NodeId nodeId); @Override boolean isTargetNode(NodeId nodeId); @Override synchronized void onLogCommitted(); @Override String toString(); }
RemoveNodeTask extends AbstractGroupConfigChangeTask { @Override public boolean isTargetNode(NodeId nodeId) { return this.nodeId.equals(nodeId); } RemoveNodeTask(GroupConfigChangeTaskContext context, NodeId nodeId); @Override boolean isTargetNode(NodeId nodeId); @Override synchronized void onLogCommitted(); @Override String toString();  }