Examples of QNode


Examples of com.caucho.xml.QNode

    try {
      _currentBuilder.set(this);

      if (top instanceof QNode) {
        QNode qNode = (QNode) top;

        _baseUri = qNode.getBaseURI();
      }

      _dependList = getDependencyList(top);

      ConfigType<?> type = TypeFactory.getType(bean);
View Full Code Here

Examples of com.caucho.xml.QNode

    try {
      _currentBuilder.set(this);

      if (top instanceof QNode) {
        QNode qNode = (QNode) top;

        _baseUri = qNode.getBaseURI();
      }

      _dependList = getDependencyList(top);

      ConfigType<?> type = TypeFactory.getType(bean);
View Full Code Here

Examples of com.splout.db.qnode.QNode

  public void runForever() throws Exception {
    SploutConfiguration config = SploutConfiguration.getTestConfig();
    DNode dnode = new DNode(config, new DNodeHandler());
    dnode.init();
    QNode qnode = new QNode();
    qnode.start(config, new QNodeHandler());
  }
View Full Code Here

Examples of com.splout.db.qnode.QNode

    final AtomicReference<QNode> reference = new AtomicReference<QNode>();
    CatchAndRetry qNodeInit = new CatchAndRetry(java.net.BindException.class, 50) {

      @Override
      public void businessLogic() throws Throwable {
        QNode qNode = new QNode();
        qNode.start(testConfig, handler);
        reference.set(qNode);
      }

      @Override
      public void retryLogic() {
View Full Code Here

Examples of com.splout.db.qnode.QNode

      config.setProperty(DNodeProperties.DATA_FOLDER, config.getString(DNodeProperties.DATA_FOLDER) + "-" + i);
      config.setProperty(FetcherProperties.TEMP_DIR, config.getString(FetcherProperties.TEMP_DIR) + "-" + i);
      DNode dnode = new DNode(config, new DNodeHandler());
      dnode.init();
    }
    QNode qnode = new QNode();
    qnode.start(config, new QNodeHandler());
  }
View Full Code Here

Examples of com.splout.db.qnode.QNode

    }
  };
 
  @Test
  public void test() throws Exception {
    QNode qnode = new QNode();
    try {
      qnode.start(SploutConfiguration.getTestConfig(), QNODE_HANDLER);
     
      SploutClient client = new SploutClient(qnode.getAddress());
     
      QueryStatus queryStatus = client.query("t1", "k1", "SELECT * FROM foo;", null);
      assertEquals("t1 k1 SELECT * FROM foo;", queryStatus.getError());
     
      queryStatus = client.queryPost("t1", "k1", "SELECT * FROM foo;", null);
      assertEquals("t1 k1 SELECT * FROM foo;", queryStatus.getError());

      List<String> dnodes = client.dNodeList();
      assertEquals("ok", dnodes.get(0));

      DeployInfo info = client.deploy("t1", PartitionMap.oneShardOpenedMap(), ReplicationMap.oneToOneMap("http://localhost:4444"), new URI("file:///foo"));
      assertEquals("ok", info.getError());
     
    } finally {
      qnode.close();
    }
  }
View Full Code Here

Examples of com.splout.db.qnode.QNode

    SploutConfiguration testConfig = SploutConfiguration.getTestConfig();
    testConfig.setProperty(DNodeProperties.HANDLE_TEST_COMMANDS, true);
    final DNode dnode = new DNode(testConfig, new DNodeHandler());
    dnode.init();
   
    final QNode qnode = new QNode();
    qnode.start(testConfig, new QNodeHandler());

    // Wait until the QNode has 1 Dnode in the list
    waitUntilThereAreThatManyDNodes(qnode, 1);
   
    dnode.testCommand(TestCommands.SHUTDOWN.toString());
View Full Code Here

Examples of com.splout.db.qnode.QNode

    /*
     * Create an ensemble of QNodes
     */
    for(int i = 0; i < nQnodes; i++) {
      SploutConfiguration qNodeConfig = SploutConfiguration.getTestConfig();
      QNode qnode = TestUtils.getTestQNode(qNodeConfig, new QNodeHandler());
      qNodes.add(qnode);
    }

    /*
     * Create an ensemble of DNodes
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.