Пример #1
0
  /** {@inheritDoc} */
  @Override
  public void testRemoteNodes() throws Exception {
    int size = remoteNodeIds().size();

    String name = "oneMoreGrid";

    try {
      Ignite g = startGrid(name);

      UUID joinedId = g.cluster().localNode().id();

      assert projection().forRemotes().nodes().size() == size + 1;

      assert F.nodeIds(projection().forRemotes().nodes()).contains(joinedId);
    } finally {
      stopGrid(name);
    }
  }
Пример #2
0
 /** {@inheritDoc} */
 @Override
 protected Collection<UUID> remoteNodeIds() {
   return F.nodeIds(grid(0).cluster().forRemotes().nodes());
 }