Package org.apache.helix.manager.zk

Examples of org.apache.helix.manager.zk.ByteArraySerializer


  }

  public ZKDumper(String zkAddress) {
    client = new ZkClient(zkAddress, ZkClient.DEFAULT_CONNECTION_TIMEOUT);

    ZkSerializer zkSerializer = new ByteArraySerializer();
    client.setZkSerializer(zkSerializer);
    filter = new FilenameFilter() {

      @Override
      public boolean accept(File dir, String name) {
View Full Code Here


      try {
        if (srcZkAddr.equals(dstZkAddr)) {
          srcClient =
              dstClient =
                  new ZkClient(srcZkAddr, ZkClient.DEFAULT_SESSION_TIMEOUT,
                      ZkClient.DEFAULT_CONNECTION_TIMEOUT, new ByteArraySerializer());
        } else {
          srcClient =
              new ZkClient(srcZkAddr, ZkClient.DEFAULT_SESSION_TIMEOUT,
                  ZkClient.DEFAULT_CONNECTION_TIMEOUT, new ByteArraySerializer());
          dstClient =
              new ZkClient(dstZkAddr, ZkClient.DEFAULT_SESSION_TIMEOUT,
                  ZkClient.DEFAULT_CONNECTION_TIMEOUT, new ByteArraySerializer());
        }
        String srcPath = srcUri.getPath();
        String dstPath = dstUri.getPath();
        zkCopy(srcClient, srcPath, dstClient, dstPath);
      } finally {
View Full Code Here

TOP

Related Classes of org.apache.helix.manager.zk.ByteArraySerializer

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.