Package com.linkedin.helix.tools

Source Code of com.linkedin.helix.tools.ZkClientPerfTest

package com.linkedin.helix.tools;

import com.linkedin.helix.manager.zk.ZNRecordSerializer;
import com.linkedin.helix.manager.zk.ZkClient;

public class ZkClientPerfTest
{

  public static void main(String[] args)
  {
    if (args.length < 1)
    {
      System.err.println("USAGE: ZkClientPerfTest zkServer");
      System.exit(1);
    }

    String zkServer = args[0];
    ZkClient zkclient = new ZkClient(zkServer, ZkClient.DEFAULT_SESSION_TIMEOUT,
        ZkClient.DEFAULT_CONNECTION_TIMEOUT, new ZNRecordSerializer());
   
    final int n = 40;
    String clusterName = "ZkClientPerfTest";
    zkclient.deleteRecursive("/" + clusterName);
   
    for (int i = 0; i < n; i++)
    {
     
    }
  }
}
TOP

Related Classes of com.linkedin.helix.tools.ZkClientPerfTest

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.