Package com.splout.db.dnode

Examples of com.splout.db.dnode.DNode.stop()


        assertEquals("DNode" + i, resultObj.get(i).getResult().get(0));
      }
    } finally {
      handler.close();
      for(DNode dnode : dNodes) {
        dnode.stop();
      }
      Hazelcast.shutdownAll();
    }
  }
}
View Full Code Here


      // everything OK
    } finally {
      handler.close();
      dnode1.stop();
      dnode2.stop();
      Hazelcast.shutdownAll();
    }
  }
}
View Full Code Here

      Assert.assertEquals(new Integer(0), qStatus.getShard());
      Assert.assertEquals("[1]", qStatus.getResult().toString());
    } finally {
      handler.close();
      dnode1.stop();
      dnode2.stop();
      Hazelcast.shutdownAll();
    }
  }
}
View Full Code Here

      // everything OK
    } finally {
      handler.close();
      dnode1.stop();
      dnode2.stop();
      Hazelcast.shutdownAll();
    }
  }
}
View Full Code Here

      assertEquals((long) handler.getContext().getTablespaceVersionsMap().keySet().iterator().next()
          .getVersion(), (long) handler.getContext().getCurrentVersionsMap().values().iterator().next());
      // everything OK
    } finally {
      handler.close();
      dnode.stop();
      Hazelcast.shutdownAll();
    }
  }

  @Test
View Full Code Here

      QueryStatus qStatus = handler.query("tablespace1", "2", "SELECT 1;", null);
      Assert.assertEquals(new Integer(0), qStatus.getShard());
      Assert.assertEquals("[1]", qStatus.getResult().toString());
    } finally {
      handler.close();
      dnode.stop();
      Hazelcast.shutdownAll();
    }
  }

  @Test
View Full Code Here

      Assert.assertEquals(new Integer(0), qStatus.getShard());
      Assert.assertEquals("[1]", qStatus.getResult().toString());

    } finally {
      handler.close();
      dnode.stop();
      Hazelcast.shutdownAll();
    }
  }

  @Test
View Full Code Here

      handler.deploy(l);
    } finally {
      handler.close();
      dnode1.stop();
      dnode2.stop();
      Hazelcast.shutdownAll();
    }
  }

  @Test
View Full Code Here

      List<DeployRequest> l = new ArrayList<DeployRequest>();
      l.add(deployRequest);
      handler.deploy(l);
    } finally {
      handler.close();
      dnode.stop();
      Hazelcast.shutdownAll();
    }
  }

  @Test
View Full Code Here

          return handler.getContext().getThriftClientCache().get(dnode1Address) != null
              && handler.getContext().getThriftClientCache().get(dnode1Address).size() == 40;
        }
      }.waitAtMost(5000);

      dnode1.stop();

      assertEquals(handler.getDNodeList().size(), 0);
      assertNull(handler.getContext().getThriftClientCache().get(dnode1.getAddress()));

      dnode1 = TestUtils.getTestDNode(config, dNodeHandler1, "dnode-" + this.getClass().getName() + "-2");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.