Ejemplo n.º 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);
    }
  }
Ejemplo n.º 2
0
 /** {@inheritDoc} */
 @Override
 protected Collection<UUID> remoteNodeIds() {
   return F.nodeIds(grid(0).cluster().forRemotes().nodes());
 }