Package net.sf.katta

Examples of net.sf.katta.DefaultNameSpaceImpl


  public static ZkServer startZkServer(ZkConfiguration conf) {
    return startZkServer(conf, DEFAULT_PORT);
  }

  public static ZkServer startZkServer(ZkConfiguration conf, int port) {
    ZkServer zkServer = new ZkServer(conf.getZKDataDir(), conf.getZKDataLogDir(), new DefaultNameSpaceImpl(conf), port,
            conf.getZKTickTime());
    zkServer.start();
    return zkServer;
  }
View Full Code Here


  public InteractionProtocol(ZkClient zkClient, ZkConfiguration zkConfiguration) {
    _zkClient = zkClient;
    _zkConf = zkConfiguration;
    LOG.debug("Using ZK root path: " + _zkConf.getZkRootPath());
    new DefaultNameSpaceImpl(_zkConf).createDefaultNameSpace(_zkClient);
  }
View Full Code Here

    String dataDir = baseDir + "/data";
    String logDir = baseDir + "/log";
    _conf = new ZkConfiguration();
    _conf.setZKServers("localhost:" + PORT);
    _conf.setZKRootPath("/zk_testsystem");
    _zkServer = new ZkServer(dataDir, logDir, new DefaultNameSpaceImpl(_conf), PORT);
    _zkServer.start();
    LOG.info("~~~~~~~~~~~~~~~ zk system started ~~~~~~~~~~~~~~~");
  }
View Full Code Here

  }

  private void cleanupZk() {
    LOG.info("cleanup zk namespace");
    getZkClient().deleteRecursive(_conf.getZkRootPath());
    new DefaultNameSpaceImpl(_conf).createDefaultNameSpace(getZkClient());
    LOG.info("unsubscribing " + getZkClient().numberOfListeners() + " listeners");
    getZkClient().unsubscribeAll();
  }
View Full Code Here

TOP

Related Classes of net.sf.katta.DefaultNameSpaceImpl

Copyright © 2018 www.massapicom. 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.