package com.et.monotone;

import com.netflix.curator.RetryPolicy;
import com.netflix.curator.framework.CuratorFramework;
import com.netflix.curator.framework.CuratorFrameworkFactory;
import com.netflix.curator.retry.RetryNTimes;

public class Driver {

	public static void main(String[] args) {
		RetryPolicy policy = new RetryNTimes(1, 100);
		CuratorFramework client = CuratorFrameworkFactory.newClient("localhost:2181", 3000, 3000, policy);
		client.start();
		ZKGenerator gen = ZKGenerator.newBuilder(client).setCounterName("mark_test").setMaxIdsToFetch(50)
				.setRootPath("/id_gen").build();

		System.out.println("Starting");
		long start = System.currentTimeMillis();
		for (int i = 0; i < 5000; i++) {
			
			long id = gen.nextId();
			System.out.println(id);
		}

		System.out.println("Took : " + String.valueOf(System.currentTimeMillis() - start));
	}

}

@@ -19,16 +19,55 @@
 otone;%0A%0A
+import com.et.monotone.zk.ZKGenerator;%0A
 import c
@@ -496,18 +496,18 @@
 rt();%0A%09%09
-ZK
+Id
 Generato
@@ -590,17 +590,19 @@
 ToFetch(
-5
+100
 0)%0A%09%09%09%09.
@@ -737,16 +737,17 @@
 i %3C 5000
+0
 ; i++) %7B
@@ -778,16 +778,18 @@
 xtId();%0A
+//
 %09%09%09Syste

fix compile errors