Examples of PathDef


Examples of net.sf.katta.util.ZkConfiguration.PathDef

  @Test(timeout = 7000)
  public void testChildListener() throws Exception {
    ConnectedComponent component = mock(ConnectedComponent.class);
    IAddRemoveListener listener = mock(IAddRemoveListener.class);
    PathDef pathDef = PathDef.NODES_LIVE;

    _zk.getZkClient().createPersistent(_zk.getZkConf().getZkPath(pathDef, "node1"));
    List<String> existingChilds = _protocol.registerChildListener(component, pathDef, listener);
    assertEquals(1, existingChilds.size());
    assertTrue(existingChilds.contains("node1"));
View Full Code Here

Examples of net.sf.katta.util.ZkConfiguration.PathDef

  @Test(timeout = 70000)
  public void testDataListener() throws Exception {
    ConnectedComponent component = mock(ConnectedComponent.class);
    IZkDataListener listener = mock(IZkDataListener.class);
    PathDef pathDef = PathDef.INDICES_METADATA;
    String zkPath = _zk.getZkConf().getZkPath(pathDef, "index1");

    Long serializable = new Long(1);
    _zk.getZkClient().createPersistent(zkPath, serializable);
    _protocol.registerDataListener(component, pathDef, "index1", listener);
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.