Examples of LuceneServer


Examples of net.sf.katta.lib.lucene.LuceneServer

    Gateway gateway = new Gateway(GATEWAY_PORT, _zk.getServerPort());
    gateway.start();
    final ZkClient zkGatewayClient = ZkKattaUtil.startZkClient(gatewayConf, 30000);
    InteractionProtocol gatewayProtocol = new InteractionProtocol(zkGatewayClient, gatewayConf);
    FileUtil.deleteFolder(new NodeConfiguration().getShardFolder());
    final Node node = new Node(gatewayProtocol, new LuceneServer());
    node.start();

    // check node-master link
    master.start();
    TestUtil.waitUntilLeaveSafeMode(master);
View Full Code Here

Examples of net.sf.katta.lib.lucene.LuceneServer

public class NodeZkTest extends AbstractZkTest {

  @Test
  public void testShutdown_shouldCleanupZkClientSubscriptions() {
    int numberOfListeners = _zk.getZkClient().numberOfListeners();
    Node node = new Node(_zk.getInteractionProtocol(), new LuceneServer());
    node.start();
    node.shutdown();
    assertEquals(numberOfListeners, _zk.getZkClient().numberOfListeners());
  }
View Full Code Here

Examples of net.sf.katta.lib.lucene.LuceneServer

    assertEquals(numberOfListeners, _zk.getZkClient().numberOfListeners());
  }

  @Test(timeout = 10000)
  public void testNodeOperationPickup() throws Exception {
    Node node = new Node(_zk.getInteractionProtocol(), new LuceneServer());
    node.start();

    NodeOperation operation1 = mock(NodeOperation.class, withSettings().serializable());
    NodeOperation operation2 = mock(NodeOperation.class, withSettings().serializable());
View Full Code Here

Examples of net.sf.katta.lib.lucene.LuceneServer

    node.shutdown();
  }

  @Test(timeout = 20000)
  public void testNodeOperationPickup_AfterReconnect() throws Exception {
    Node node = new Node(_zk.getInteractionProtocol(), new LuceneServer());
    node.start();

    node.disconnect();
    node.reconnect();
    NodeOperation operation1 = mock(NodeOperation.class, withSettings().serializable());
View Full Code Here

Examples of net.sf.katta.lib.lucene.LuceneServer

    node.shutdown();
  }

  @Test(timeout = 2000000)
  public void testNodeReconnectWithInterruptSwallowingOperation() throws Exception {
    Node node = new Node(_zk.getInteractionProtocol(), new LuceneServer());
    node.start();
    _protocol.addNodeOperation(node.getName(), new InterruptSwallowingOperation());
    Thread.sleep(200);
    node.disconnect();
    node.reconnect();
View Full Code Here

Examples of net.sf.katta.lib.lucene.LuceneServer

  }

  @Test(timeout = 10000)
  public void testNodeOperationException() throws Exception {
    Node node = new Node(_zk.getInteractionProtocol(), new LuceneServer());
    node.start();

    NodeOperation operation1 = mock(NodeOperation.class, withSettings().serializable());
    NodeOperation operation2 = mock(NodeOperation.class, withSettings().serializable());
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.