public class clonecli2 {
private static Map<String, kvsimple> kvMap = new HashMap<String, kvsimple>();
public void run() {
Context ctx = ZMQ.context(1);
Socket snapshot = ctx.socket(ZMQ.DEALER);
snapshot.connect("tcp://localhost:5556");
Socket subscriber = ctx.socket(ZMQ.SUB);
subscriber.connect("tcp://localhost:5557");
subscriber.subscribe("".getBytes());